[Numpy-discussion] Interesting memory leak

Robert Kern robert.kern at gmail.com
Thu Aug 17 18:30:23 CDT 2006


David Grant wrote:
> Hello all,
> 
> I had a massive memory leak in some of my code. It would basically end 
> up using up all 1GB of my RAM or more if I don't kill the application. I 
> managed to finally figure out which portion of the code was causing the 
> leak (with great difficulty) and have a little example which exposes the 
> leak. I am using numpy-0.9.8 and I'm wondering if perhaps this is 
> already fixed in 1.0b2. Run this through valgrind with appropriate 
> options (I used the recommended valgrind_py.sh that I found on scipy's 
> site somewhere) and this will leak 100kB. Increase the xrange on the big 
> loop and you can watch the memory increase over time in top.

I don't see a leak in 1.0b2.dev3002.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco





More information about the Numpy-discussion mailing list