Does anyone know of an equivalent of Rational Purify for GCC/Linux?  Purify
is a wonderful debugging tool for C/C++ that detects bugs such as freeing
memory twice, reading/writing past the end of an array, leaking memory, etc.
It accomplishes this by editing object code; inserting debugging
instructions directly into the .o's.  Last I was doing GCC/Linux development
several years ago, no such beast existed, but a lot has changed since then.
The best there was back then consisted of various drop in replacements for
malloc/free and other C library functions.  The fatal flaws with these tools
is that none of them produce full stack traces automatically and they
require a recompilation of the source code.  The problem with Purify is that
very few compiler/platform combinations are supported and GCC/Linux is not
one of them.

Mike