documentation for reporting memory leaks

Malcolm malcolm.parsons at gmail.com
Sat Dec 16 09:11:29 UTC 2006


On 12/16/06, t u <towsonu2003 at gmail.com> wrote:

> if we have anyone who knows something about diagnosing memory leaks, can
> s/he/them look at this spec:

The best memory leak detector for linux seems to be valgrind:
http://www.cs.utexas.edu/users/jpmartin/memCheckers.html


I think this would be a good method for using valgrind on packaged programs:

Install the debug symbol packages for the program you want to find
leaks in, and for the libraries it uses.

Install valgrind.

Run "valgrind --leak-check=full programname".



valgrind can make programs run a lot slower, so you might also want to
look at the other tools mentioned, like dmalloc.

-- 
Malcolm Parsons




More information about the ubuntu-doc mailing list