Hi, I'm having 'random' segmentation fault, with my program. It's a server app, and normally runs with a fork() statement, to enable multible process'. But when I disable this, and just run 1 process at a time, I get ramdom segmentation faults. I want to fix this, and I'm using gdb for the first time (couldn't get anjuta to view stack ect.... also crashes now and then). I've run the program in gdb and typed bt to see the stack. But I'm having difficulty interpreting the output. Can anyone explain it to me?
Any information will be greatly appriciated
Regards Jnusa
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1073801472 (LWP 5604)]
0x4108e0ca in mallopt () from /lib/tls/libc.so.6
(gdb) bt
#0 0x4108e0ca in mallopt () from /lib/tls/libc.so.6
#1 0x41150fcc in ?? () from /lib/tls/libc.so.6
#2 0x0000000a in ?? ()
#3 0x41151988 in __after_morecore_hook () from /lib/tls/libc.so.6
#4 0x41151988 in __after_morecore_hook () from /lib/tls/libc.so.6
#5 0x0000000a in ?? ()
#6 0x41151940 in __after_morecore_hook () from /lib/tls/libc.so.6
#7 0x080555e0 in ?? ()
#8 0x00000048 in ?? ()
#9 0x41151940 in __after_morecore_hook () from /lib/tls/libc.so.6
#10 0x41150fcc in ?? () from /lib/tls/libc.so.6
#11 0x41151940 in __after_morecore_hook () from /lib/tls/libc.so.6
#12 0x00000001 in ?? ()
#13 0x0000003e in ?? ()
#14 0x4108d11d in malloc () from /lib/tls/libc.so.6
#15 0x41151940 in __after_morecore_hook () from /lib/tls/libc.so.6
#16 0x0000003e in ?? ()
#17 0x00000000 in ?? ()
#18 0xbffff8e0 in ?? ()
#19 0xbffffad0 in ?? ()
#20 0xbffff898 in ?? ()
#21 0x0804a5dc in read_header (fd=0, obj=0x0) at util.c:304
Previous frame inner to this frame (corrupt stack?)