[Gc] Re: [bigloo] GC7.0 on Leopard (MacOS X 10.5)... again

Manuel.Serrano at sophia.inria.fr Manuel.Serrano at sophia.inria.fr
Wed Jan 9 10:02:43 PST 2008


PS: When the execution hangs, GDB shows the following stack frames:

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
$ gcc -O3 foo.c -I/opt/local/include/gc -I/opt/local/include/gc/gc /opt/local/lib/libgc.a
$ gdb a.out
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct  2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ... done

(gdb) run
Starting program: /Users/serrano/bgl/bigloo3.0d/a.out 
Reading symbols for shared libraries ++. done
avant init
^C
Program received signal SIGINT, Interrupt.
0xffff0292 in __spin_lock ()
(gdb) bt
#0  0xffff0292 in __spin_lock ()
#1  0x00000000 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xffff027f in __spin_lock ()
(gdb) bt
#0  0xffff027f in __spin_lock ()
#1  0x926ba539 in pthread_mutex_unlock ()
#2  0x00010e5b in GC_release_mark_lock ()
#3  0x00011465 in GC_stop_world ()
#4  0x000031e4 in GC_stopped_mark ()
#5  0x00003c9e in GC_try_to_collect_inner ()
#6  0x0000e014 in GC_init_inner ()
#7  0x0000e113 in GC_init ()
#8  0x00001f63 in main ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xffff0292 in __spin_lock ()
(gdb) bt
#0  0xffff0292 in __spin_lock ()
#1  0x00000000 in ?? ()
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0xffff027f in __spin_lock ()
(gdb) bt
#0  0xffff027f in __spin_lock ()
#1  0x926ba539 in pthread_mutex_unlock ()
#2  0x00010e5b in GC_release_mark_lock ()
#3  0x00011465 in GC_stop_world ()
#4  0x000031e4 in GC_stopped_mark ()
#5  0x00003c9e in GC_try_to_collect_inner ()
#6  0x0000e014 in GC_init_inner ()
#7  0x0000e113 in GC_init ()
#8  0x00001f63 in main ()
-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----


-- 
Manuel


More information about the Gc mailing list