[Gllug] Memory Leak Detecting

Nix nix at esperi.org.uk
Mon Aug 29 18:47:42 UTC 2005


On Sun, 28 Aug 2005, Daniel P. Berrange wrote:
> On Sat, Aug 27, 2005 at 09:51:10PM +0100, Peter Childs wrote:
>>     Does anyone know of any good tools for finding memory leaks other
>> than running it through Valgrind multiple times trying to follow as many
>> avenues as possible. I'm really lookin for some sort of Parser. As I
>> have quite a lot off C++/Qt code I know has leaks and I would really
>> love the find and plug them.
> 
> I can recommend trying out MPatrol, which not only replaces the traditional
> C malloc/free style functions, but also C++  new/delete, and also overrides
> core functions like memset, memcpy to protect & dectect invalid pointers
> and buffer overflows in their use.

GCC 4.1 will introduce -fmudflap, which tries to do similar things while
reducing erroneous warnings by applying compile-time analysis.

-- 
`... published last year in a limited edition... In one of the
 great tragedies of publishing, it was not a limited enough edition
 and so I have read it.' --- James Nicoll
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list