This is what I get when I gdb the core dump:
Code:
Program terminated with signal 11, Segmentation fault.
#0 0x4053cebf in ?? ()
(gdb) bt
#0 0x4053cebf in ?? ()
Cannot access memory at address 0xbfffe824
(gdb) up
Initial frame selected; you cannot go up.
(gdb)
if I load the program and run it:
Code:
Program received signal SIGSEGV, Segmentation fault.
0x4053cebf in mallopt () from /lib/libc.so.6
(gdb) bt
#0 0x4053cebf in mallopt () from /lib/libc.so.6
#1 0x4053c64e in mallopt () from /lib/libc.so.6
#2 0x4053b871 in malloc () from /lib/libc.so.6
#3 0x4053ba9b in realloc () from /lib/libc.so.6
#4 0x40489c54 in g_realloc () from /usr/lib/libglib-2.0.so.0
(gdb) up
#1 0x4053c64e in mallopt () from /lib/libc.so.6
(gdb) up
#2 0x4053b871 in malloc () from /lib/libc.so.6
(gdb) up
#3 0x4053ba9b in realloc () from /lib/libc.so.6
(gdb) up
#4 0x40489c54 in g_realloc () from /usr/lib/libglib-2.0.so.0
(gdb) up
Initial frame selected; you cannot go up.
(gdb)
I'm kind of a noob at gdb, but I always thought that the initial frame was the main() function. Maybe this has something to do with the fact that gtk+ was compiled with -fomit-frame-pointer?
Btw, I don't call g_realloc() from anywhere in my program.