[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: electric fence
On 2 Apr 2001, Nachiket wrote:
> Hello everybody
> Can someone tell me how to use electric fence.?
just link it with your executable with -lefence. So now at any malloc
corruption you will get a core dump. This helps a lot by preventing
crashes at a later stage, which are awfully painfull to debug.
but new glibc has a environment variable which makes malloc do sanity
checking. It was posted here a couple of days ago, and is on the malloc