07-19-04 10:57 PM
"pradeep" <pradeep_pvk@yahoo.co.in> writes:
> But the program is receiving SIGKILL within library routine malloc and
> finally the program exits with Segmentation fault dumping the core.
...
> This is the error i'm getting while backtracing in gdb.
>
> #0 0xff1c1d3c in _malloc_unlocked () from /usr/lib/libc.so.1
> #1 0xff1c1c48 in malloc () from /usr/lib/libc.so.1
> #2 0xff1b60ec in calloc () from /usr/lib/libc.so.1
> #3 0x115c4 in start ()
>
From the info you supplied, one can deduce that you are on Solaris.
Any crash inside heap routines indicates with 99.999% certainty
that you have corrupted heap at some point (possibly long time)
before crash, by either free()ing the same memory twice, writing
to already free()d blocks, or simply writing past the end of a
malloc()ed block.
There are free:
ccmalloc, dmalloc, mpatrol, efence
and commercial:
Purify, Insure++
tools that can help you find such bugs.
Also, the latest versions of 'dbx' have pretty strong debug
facilities built in: search for RTC in dbx documentation.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
[ Post a follow-up to this message ]
|