What it's telling you is that you called free() on a memory block, and it detected a problem.
Determining the actual cause of the problem is another matter. Where you corrupted the memory could be a long way from where you free the memory.
If it's a small program you've written, then you need to post it here - don't forget the [code][/code] tags.
If you're on Linux, then you could try
Code:
gcc prog.c -lefence
to link with the electric fence memory debug library. When run inside the debugger (say gdb or ddd), it should take you to the point where the corruption happens.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.