|
From: John R.
|
> Also there are link library replacements for the malloc/free functions, > which allow the tracking you want to a certain degree (don't remember the > name, "electric fence"?) Don't overlook the simple export MALLOC_CHECK_=2 (with a trailing underscore) which causes the normal glibc to check for overrun and double free. This does not catch use of uninitialized memory or other cases that memcheck does, but MALLOC_CHECK_=2 sometimes is enough, and it runs close to normal speed. See "info libc". -- John Reiser, jreiser@BitWagon.com |