Detecting Memory Leaks -- the right solution

Robert L Krawitz rlk at alum.mit.edu
Fri Jul 16 14:05:01 EDT 2004


   From: Jerry Feldman <gaf at blu.org>
   Date: Fri, 16 Jul 2004 13:58:06 -0400

   But, even if you do not successfully preempt malloc in the system run
   time libraries, the glibc malloc is still maintaining a separate
   freelist. But, the whole key to this is to look at memory allocations
   occuring in library code. Purify could instrument the libraries on some
   platforms, but I'm not sure that valgrind can. 

Valgrind doesn't seem to have any trouble with this -- it detects
memory leaks in the X libraries, for example.

-- 
Robert Krawitz                                     <rlk at alum.mit.edu>

Tall Clubs International  --  http://www.tall.org/ or 1-888-IM-TALL-2
Member of the League for Programming Freedom -- mail lpf at uunet.uu.net
Project lead for Gimp Print   --    http://gimp-print.sourceforge.net

"Linux doesn't dictate how I work, I dictate how Linux works."
--Eric Crampton



More information about the Discuss mailing list