Re: [ILUG] detecting memory leaks

From: Mel (mel at domain csn.ul.ie)
Date: Tue 09 Jul 2002 - 17:55:04 IST


On Tue, 9 Jul 2002, Conor Lennon wrote:

> I'm looking for a linux application like purify that detects memory
> leaks, unitialised memory reads, out-of-bounds errors, etc. in an
> application.

There isn't a specific application freely available like purify but there
is a few simple steps you can take. Linking with Electric Fence (-lefence)
will trap out of bounds errors

checker I hear is good at finding memory leaks and is available from
http://www.gnu.org/directory/checker.html

I'm not sure on the unitialised memory reads front but if you compile with
-Wall, it'll catch a few of them

-- 
Mel Gorman
MSc Student, University of Limerick
http://www.csn.ul.ie/~mel


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:17:46 GMT