[cairo-bugs] [Bug 27344] New: _cairo_atomic_mutex not initialized
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Mar 27 08:50:11 PDT 2010
http://bugs.freedesktop.org/show_bug.cgi?id=27344
Summary: _cairo_atomic_mutex not initialized
Product: cairo
Version: 1.9.6
Platform: x86 (IA32)
OS/Version: Windows (All)
Status: NEW
Severity: normal
Priority: medium
Component: general
AssignedTo: cworth at cworth.org
ReportedBy: gillen.christian at gmail.com
QAContact: cairo-bugs at cairographics.org
Hi,
I compiled a static build of cairo on Windows with MSVC9.
I'm using only the svg surface. If the the cairo_create call fails (because I
set an invalid filename) _cairo_set_error is called which results in an access
violation in the _cairo_atomic_int_cmpxchg function. The reason is that
_cairo_atomic_mutex hasn't been initialized at that point.
If I call CAIRO_MUTEX_INIT(_cairo_atomic_mutex) or CAIRO_MUTEX_INITIALIZE()
before that point everything works as expected.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the cairo-bugs
mailing list