[cairo] Getting SIGSEGV, Segmentation fault with 1.12.0

Hakki Dogusan dogusanh at tr.net
Thu Mar 29 02:47:03 PDT 2012


Hi,

(Win32, MinGW, gcc-4.6.2)

- I'm getting Program received signal SIGSEGV, Segmentation fault,
at cairo-win32-device.c (_cairo_atomic_ptr_cmpxchg)

Compiled with:
-march=pentium-mmx
HAVE_UINT64_T
HAVE_W32API_H
USE_MMX=1
CAIRO_HAS_WIN32_SURFACE
CAIRO_HAS_WIN32_FONT
CAIRO_WIN32_STATIC_BUILD=0
CAIRO_NO_MUTEX=0

(1.10.2 was ok, only added HAVE_UINT64_T flag for 1.12.0)

Where should I have to look?


- I think there is an error is_win98 function in cairo-win32-device.c

It uses:
     return (VER_PLATFORM_WIN32_WINDOWS != os.dwPlatformId &&
	    os.dwMajorVersion != 4 &&
	    os.dwMinorVersion != 10);

IMHO, this line should be as:
     return (VER_PLATFORM_WIN32_WINDOWS == os.dwPlatformId &&
	    os.dwMajorVersion == 4 &&
	    os.dwMinorVersion == 10);



--
Regards,
Hakki Dogusan


More information about the cairo mailing list