c - gdb backtrace shows malloc -
i debugging process crash ,& backtrace looks kind of below. process crashing @ different points in code time backtrace comes down malloc.
i tried increasing heap 128 m 256 m, didn't either. size of core dump around 164 m, & while running process uses same virt memory.
can guys please point me in right direction. appreciate help.
#0 #1 #2 #5 0xb7fc7966 in malloc (size=141858520) . . . #16 0x0805ef69 in main (argc=1, argv=0xbffffa64) .
bt 2: 2nd backtrace got. same process crashed @ different point in code.
#0 #1 #2 #5 0xb7fc7677 in realloc (p=0xe01fd8, size=139629112) . . . #18 0x0805ef69 in main (argc=1, argv=0xbffffa64)
any crash inside malloc
guaranteed sign of heap corruption.
on linux, the tools finding such heap corruption valgrind , address sanitizer.
see this page understand differences between two.
Comments
Post a Comment