At 09:58 2000.07.26 +0530, Venkata Rajesh Velamakanni wrote:

>Can any one tell me from where I can get the source code
>of malloc.c
>I observed that malloc / calloc is giving Sigmentation fault.

A segfault in malloc() or free() is almost certainly due to the
heap being corrupt. It means that, before the last call to
malloc(), you have written in free()'d memory or beyond the
bounds of malloc()'d memory.

You could try linking you program with Electric Fence
(-lefence). It would help you to find the place where it
clobbers the heap.


Andr� Majorel <[EMAIL PROTECTED]>
http://www.teaser.fr/~amajorel/

Reply via email to