From: Colin P. A. <co...@co...> - 2007-12-24 11:31:58
|
>>>>> "Colin" =3D=3D Colin Paul Adams <co...@co...> writes: >>>>> "Eric" =3D=3D Eric Bezault <er...@go...> writes: Eric> Colin Paul Adams wrote: Eric> One other thing that I would be interested in, even if it Eric> does not crash at the same location each time, is to know at Eric> which stage in the execution trace the message "Unhandled Eric> exception" is printed. Could you try to put a break point Eric> in the C code at the beginning of the C function 'GE_raise' Eric> and see what the execution trace looks like? >>>=20 >>> How do I set a break point? Eric> I don't know. I guess it depends on the C debugger that is Eric> available under Linux. Under Windows I do that from Visual Eric> Studio. Colin> OK - I'm using gdb. Colin> I need to know which file to find GC_RAISE in. Is it part Colin> of gec or boehm? -- Colin Adams Preston Lancashire Never mind - when i spelt it right, gdb found it. But it doesn't break there: (gdb) break GE_raise Breakpoint 1 at 0x9afba75: file gestalt_test_driver48.c, line 24535. (gdb) run Starting program: /home/colin/gestalt/test/gestalt_test_driver --case=3Dacc= essor20_018_01 [Thread debugging using libthread_db enabled] [New Thread -1209092400 (LWP 17574)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1209092400 (LWP 17574)] GC_clear_fl_links (flp=3D0xb84ee50) at reclaim.c:469 469 *flp =3D 0; (gdb)=20 (gdb) backtrace #0 GC_clear_fl_links (flp=3D0xb84ee50) at reclaim.c:469 #1 0x09b02382 in GC_start_reclaim (report_if_found=3D0) at reclaim.c:504 #2 0x09b05c47 in GC_finish_collection () at alloc.c:680 #3 0x09b09415 in GC_alloc_large (lb=3D3016, k=3D1, flags=3D0) at malloc.c:= 53 #4 0x09b09719 in GC_generic_malloc (lb=3D3015, k=3D1) at malloc.c:171 #5 0x09b098ba in GC_core_malloc (lb=3D3015) at malloc.c:286 #6 0x0804ace6 in GE_ms ( s=3D0x9b50518 "%G=EF=BF=BD%@\204\215%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF= =BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF= =BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G= =EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\21= 0%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@= \210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF= =BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF= =BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD= =EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF= =BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF=BF=BD=EF=BF=BD%@\210%G=EF= =BF=BD%@\204\215$(CBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBeBe%G= =EF=BF=BD%@(B\204\215%G=EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@\200%G= =EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@\20= 0%G=EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@= \200%G=EF=BF=BD=EF=BF=BD%@\200%G=EF=BF=BD=EF=BF=BD%@"..., c=3D3003) at gest= alt_test_driver1.c:1882 #7 0x09afa725 in GE_const_init () at gestalt_test_driver48.c:21933 #8 0x09afba25 in main (argc=3DCannot access memory at address 0x0 ) at gestalt_test_driver48.c:24448 (gdb)=20 Where next? --=20 Colin Adams Preston Lancashire |