Crash in garbage collector

Jan Hoogerbrugge hoogerbrugge@hotmail.com
Mon Apr 19 12:02:00 GMT 2004


Hi,

I encounter segmentation faults in my port when the garbage collector 
becomes
active, so I am in trouble. Can somebody give me hints on how I can debug 
this
and what could be wrong. I already figured out that I had to add GTY(()) 
annotations
and some things to mark roots for garbage collection. However after I did 
that
the crash is still there.

Jan



Program received signal SIGSEGV, Segmentation fault.
0x08328033 in lookup_page_table_entry (p=0x8555fb0) at ggc-page.c:588
588       return base[L1][L2];
(gdb) bt
#0  0x08328033 in lookup_page_table_entry (p=0x8555fb0) at ggc-page.c:588
#1  0x0832635a in ggc_set_mark (p=0x8555fb0) at ggc-page.c:1258
#2  0x080e6918 in gt_ggc_ma_alias_invariant (x_p=0x8555fb0) at 
gt-alias.h:413
#3  0x081ff8f2 in ggc_mark_roots () at ggc-common.c:115
#4  0x083272f5 in ggc_collect () at ggc-page.c:1995
#5  0x08378575 in cse_main (f=0x4064eee0, nregs=1273, after_loop=1, 
file=0x0)
    at cse.c:7009
#6  0x0832a77b in rest_of_handle_cse2 (decl=0x401a0ca8, insns=0x4064eee0)
    at passes.c:1329
#7  0x0832b4e1 in rest_of_compilation (decl=0x401a0ca8) at passes.c:1797
#8  0x08339354 in tree_rest_of_compilation (fndecl=0x401a0ca8, 
nested_p=false)
    at tree-optimize.c:202
#9  0x0807a54c in c_expand_body_1 (fndecl=0x401a0ca8, nested_p=0)
    at c-decl.c:6284
#10 0x0807a821 in c_expand_body (fndecl=0x401a0ca8) at c-decl.c:6316
#11 0x0833cbad in cgraph_expand_function (node=0x4022c654) at 
cgraphunit.c:791
#12 0x0833e8e0 in cgraph_expand_all_functions () at cgraphunit.c:1573
#13 0x0833ebc8 in cgraph_optimize () at cgraphunit.c:1663
#14 0x080d9dfe in c_objc_common_finish_file () at c-objc-common.c:241
#15 0x08055613 in finish_file () at c-lang.c:202
#16 0x080cb19c in c_common_parse_file (set_yydebug=0) at c-opts.c:1239
#17 0x082e44d5 in compile_file () at toplev.c:1595
#18 0x082e5df2 in do_compile () at toplev.c:2629
#19 0x082e5e52 in toplev_main (argc=20, argv=0xbfffd674) at toplev.c:2661
#20 0x080dd5f2 in main (argc=20, argv=0xbfffd674) at main.c:35
#21 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb)

_________________________________________________________________
Play online games with your friends with MSN Messenger 
http://messenger.msn.nl/



More information about the Gcc mailing list