[Scipy-tickets] [SciPy] #535: scipy.stats.norm.stats() leaks memory

SciPy scipy-tickets@scipy....
Fri Nov 9 22:18:45 CST 2007

#535: scipy.stats.norm.stats() leaks memory
 Reporter:  foobaron     |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  0.7        
Component:  scipy.stats  |     Version:  0.5.2      
 Severity:  normal       |    Keywords:  memory leak
 Simply creating a stats.norm object and calling its stats() method
 repeatedly causes memory usage to increase without bound, on both OS X and
 linux 2.6.20-1.2962.fc6xen.  See version details below.  I don't know
 whether the problem is in scipy or in some dependency in numpy...

 I searched existing reports and didn't see anything matching this

 Python 2.4.2 (#1, Mar 22 2006, 18:15:19)
 [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from scipy import stats
 >>> pdf = stats.norm(1.,1.)
 >>> while True: x = pdf.stats() # RUN THIS AND WATCH MEMORY USAGE
 >>> import scipy
 >>> scipy.__version__
 >>> import numpy
 >>> numpy.__version__

Ticket URL: <http://scipy.org/scipy/scipy/ticket/535>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.

More information about the Scipy-tickets mailing list