[Gc] Occasionally crash with GraphicsMagick, ImageMagick.

Shi Jie Gung ksc91u_fr at yahoo.fr
Wed May 5 02:42:08 PDT 2010

If build gc with --enable-gc-debug

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000008
0x000000010025e0c3 in GC_remove_from_fl ()
(gdb) bt
#0  0x000000010025e0c3 in GC_remove_from_fl ()
#1  0x000000010025ef07 in GC_freehblk ()
#2  0x0000000100267523 in GC_free ()
#3  0x00000001002627f4 in GC_debug_free ()
#4  0x000000010008f57a in DestroyCacheNexus ()
#5  0x000000010008f5cb in CloseCacheView ()
#6  0x000000010008f684 in DestroyThreadViewSet ()
#7  0x000000010007db8a in DestroyImage ()
#8  0x00000001000aba5f in ResizeImage ()
#9  0x0000000100000eb3 in main (argc=2, argv=0x7fff5fbff240) at main.cpp:77

though this happen not so often... less than 10 crash in 200 runs.

and I try to link libgc.a instead of libgc.dylib and it crash 2-3 times in 200 runs.

What is the different link with static library and dynamic library?


More information about the Gc mailing list