[SciPy-user] integrate.quad memory leak in linux2 binary?

rhawkin2 rhawkin2 at earthlink.net
Sun Nov 10 16:54:36 EST 2002


Hello,

The ScipPy binary for linux2 [1] seems to have a memory leak in
integrate.quad.  I've attached a short example [2] that illustrates the
problem:  running the example and monitoring it with 'top' shows the
example to increase in memory usage over time.  It appears that the fix
to this memory leak [3] went into CVS on Aug. 8 which is one day after
the linux2 binaries were posted.  Is there a simple way to get the
post-fix version of this routine for linux2?

Thanks,

Ray

[1] SciPy-0.2.0_alpha_105.3699.linux2_py2.2.tar.gz

[2] Example:

#!/usr/bin/python2.2

from scipy import *
from scipy.integrate import quad

# ********************************************************

def prob(x):

    return exp(-x)

# ********************************************************

for i in range(100000):
    result = quad(prob,0.0,5.0)

[3] http://scipy.net/cgi-bin/viewcvsx.cgi/scipy/integrate/__quadpack.h




More information about the SciPy-User mailing list