[LCP]Segmentation Faults when calling free()

Kurian Abraham Kurian Abraham-A18108 kurian.abraham at motorola.com
Sun Feb 23 07:55:01 UTC 2003


hi chuck

what is hapenning is the internal data structure maintained by malloc is corrupted....so just verify
whether the next & prev pointers in the linked list are valid?somehow that list is corrupted....

debug on those line....

hope this helps!

kurian


-----Original Message-----
From: Chuck Martin [mailto:nrocinu at myrealbox.com]
Sent: Thursday, February 20, 2003 10:14 AM
To: Linux C Programming
Subject: [LCP]Segmentation Faults when calling free()


Could someone tell me what might cause free() to segfault?  I've
verified that the memory has been previously allocated (using malloc()),
the correct pointer is being passed to free(), and the memory hasn't
already been freed with a previous call to free(), so what else could
it be?

Chuck

_______________________________________________
This is the Linux C Programming List
:  http://lists.linux.org.au/listinfo/linuxcprogramming List



More information about the linuxCprogramming mailing list