bcc
bcc copied to clipboard
GC issue / Structs issue?
I have a flaw somewhere in my code - so I tried to run it as "debug build" in MaxIDE. It runs there until I interacted the way it makes it crash (whatever makes it crash ...). I see the debug tree for a very short amount end then the output lists "segmentation fault" - am pretty sure it has to with structs.
Then I tried to execute the exact same binary in gdb (as I built with GDB information) - there it does not even do a proper startup...
(gdb) r
Starting program: /home/ronny/Arbeit/Share/Dig-master/samples/guisamples/textarea.debug
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00000000007a1b8b in GC_find_limit_with_bound (bound=0x0, up=0,
p=<optimized out>)
at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/os_dep.c:1008
1008 GC_noop1((word)(*result));
(gdb) bt
#0 0x00000000007a1b8b in GC_find_limit_with_bound (bound=0x0, up=0, p=<optimized out>) at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/os_dep.c:1008
#1 0x00000000007a1dd9 in GC_find_limit (up=0, p=<optimized out>) at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/os_dep.c:1020
#2 GC_init_linux_data_start () at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/os_dep.c:459
#3 0x000000000079caf4 in GC_init () at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/misc.c:1202
#4 0x000000000079d2a5 in GC_init () at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/bdwgc/misc.c:1370
#5 0x0000000000799306 in bbGCStartup (spTop=<optimized out>) at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/blitz_gc.c:76
#6 0x0000000000782d69 in bbStartup (argc=1, argv=0x7fffffffe198, dummy1=<optimized out>, dummy2=<optimized out>) at /home/ronny/Arbeit/Tools/BlitzMaxNG/mod/brl.mod/blitz.mod/blitz_app.c:494
#7 0x00000000004078b8 in main ()
Any idea what to do? how to narrow it down ?