Getting SIGSEGV, Segmentation fault with 1.12.0

Hakki Dogusan <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.