[Scipy-tickets] [SciPy] #338: scipy.test() memory leaks

SciPy scipy-tickets at scipy.net
Sun Dec 24 12:13:49 CST 2006


#338: scipy.test() memory leaks
--------------------------+-------------------------------------------------
 Reporter:  darren.weber  |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  normal        |   Milestone:          
Component:  Other         |     Version:          
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
 I see memory leaks in __main__ during the scipy.test() using an SVN co
 from trunk.  I would like to use a relatively new stable version of scipy
 that passes all tests using numpy 1.0.1 - my goal is to work with nipy.
 I'm using Ubuntu 6.10 packages for most dependencies, except for numpy
 (SVN tag 1.0.1) and matplotlib (SVN trunk).


 root at dnlweber:/usr/src# python
 Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
 [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import scipy
 >>> scipy.test()
   Found 6 tests for scipy.linsolve.umfpack.umfpack
   Found 4 tests for scipy.io.array_import
   Found 1 tests for scipy.cluster.vq
   Found 128 tests for scipy.linalg.fblas
   Found 397 tests for scipy.ndimage
   Found 10 tests for scipy.integrate.quadpack
   Found 98 tests for scipy.stats.stats
   Found 53 tests for scipy.linalg.decomp
   Found 3 tests for scipy.integrate.quadrature
   Found 96 tests for scipy.sparse.sparse
   Found 20 tests for scipy.fftpack.pseudo_diffs
   Found 6 tests for scipy.optimize.optimize
   Found 6 tests for scipy.interpolate.fitpack
   Found 6 tests for scipy.interpolate
   Found 70 tests for scipy.stats.distributions
   Found 12 tests for scipy.io.mmio
   Found 10 tests for scipy.stats.morestats
   Found 4 tests for scipy.linalg.lapack
   Found 18 tests for scipy.fftpack.basic
   Found 4 tests for scipy.io.recaster
   Found 4 tests for scipy.optimize.zeros
   Found 28 tests for scipy.io.mio
   Found 41 tests for scipy.linalg.basic
   Found 2 tests for scipy.maxentropy.maxentropy
   Found 358 tests for scipy.special.basic
   Found 128 tests for scipy.lib.blas.fblas
   Found 7 tests for scipy.linalg.matfuncs
   Found 42 tests for scipy.lib.lapack
   Found 1 tests for scipy.optimize.cobyla
   Found 16 tests for scipy.lib.blas
   Found 1 tests for scipy.integrate
   Found 14 tests for scipy.linalg.blas
   Found 4 tests for scipy.fftpack.helper
   Found 4 tests for scipy.signal.signaltools
   Found 0 tests for __main__
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 .swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 .swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 .Use minimum degree ordering on A'+A.
 .swig/python detected a memory leak of type 'void *', no destructor found.
 swig/python detected a memory leak of type 'void *', no destructor found.
 .Use minimum degree ordering on A'+A.
 .
 Don't worry about a warning regarding the number of bytes read.
 Warning: 1000000 bytes requested, 20 bytes read.
 ........caxpy:n=4
 ..caxpy:n=3
 ....ccopy:n=4
 ..ccopy:n=3
 .............cscal:n=4
 ....cswap:n=4
 ..cswap:n=3
 .....daxpy:n=4
 ..daxpy:n=3
 ....dcopy:n=4
 ..dcopy:n=3
 .............dscal:n=4
 ....dswap:n=4
 ..dswap:n=3
 .....saxpy:n=4
 ..saxpy:n=3
 ....scopy:n=4
 ..scopy:n=3
 .............sscal:n=4
 ....sswap:n=4
 ..sswap:n=3
 .....zaxpy:n=4
 ..zaxpy:n=3
 ....zcopy:n=4
 ..zcopy:n=3
 .............zscal:n=4
 ....zswap:n=4
 ..zswap:n=3
 ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................Took
 13 points.
 ............Resizing... 16 17 24
 Resizing... 20 7 35
 Resizing... 23 7 47
 Resizing... 24 25 58
 Resizing... 28 7 68
 Resizing... 28 27 73
 .....Use minimum degree ordering on A'+A.
 ........................Use minimum degree ordering on A'+A.
 ...................Resizing... 16 17 24
 Resizing... 20 7 35
 Resizing... 23 7 47
 Resizing... 24 25 58
 Resizing... 28 7 68
 Resizing... 28 27 73
 .....Use minimum degree ordering on A'+A.
 .................Resizing... 16 17 24
 Resizing... 20 7 35
 Resizing... 23 7 47
 Resizing... 24 25 58
 Resizing... 28 7 68
 Resizing... 28 27 73
 .....Use minimum degree ordering on A'+A.
 ....................................../usr/lib/python2.4/site-
 packages/scipy/interpolate/fitpack2.py:457: UserWarning:
 The coefficients of the spline returned have been computed as the
 minimal norm least-squares solution of a (numerically) rank deficient
 system (deficiency=7). If deficiency is large, the results may be
 inaccurate. Deficiency may strongly depend on the value of eps.
   warnings.warn(message)
 ................................................................................................Ties
 preclude use of exact statistic.
 ..Ties preclude use of exact statistic.
 ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................caxpy:n=4
 ..caxpy:n=3
 ....ccopy:n=4
 ..ccopy:n=3
 .............cscal:n=4
 ....cswap:n=4
 ..cswap:n=3
 .....daxpy:n=4
 ..daxpy:n=3
 ....dcopy:n=4
 ..dcopy:n=3
 .............dscal:n=4
 ....dswap:n=4
 ..dswap:n=3
 .....saxpy:n=4
 ..saxpy:n=3
 ....scopy:n=4
 ..scopy:n=3
 .............sscal:n=4
 ....sswap:n=4
 ..sswap:n=3
 .....zaxpy:n=4
 ..zaxpy:n=3
 ....zcopy:n=4
 ..zcopy:n=3
 .............zscal:n=4
 ....zswap:n=4
 ..zswap:n=3
 ...Result may be inaccurate, approximate err = 6.9146240846e-09
 ...Result may be inaccurate, approximate err = 1.38604496001e-10
 ..............................................................Residual:
 1.05006950608e-07
 .......................
 ----------------------------------------------------------------------
 Ran 1602 tests in 11.282s

 OK
 <unittest.TextTestRunner object at 0xb4f2062c>
 >>> scipy.__version__
 '0.5.3.dev2465'
 >>> numpy.__version__
 '1.0.1'

 root at dnlweber:/usr/src# swig -version

 SWIG Version 1.3.28
 Copyright (c) 1995-1998
 University of Utah and the Regents of the University of California
 Copyright (c) 1998-2005
 University of Chicago
 Compiled with g++ [i686-pc-linux-gnu]

 Please see http://www.swig.org for reporting bugs and further information
 root at dnlweber:/usr/src#

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


More information about the Scipy-tickets mailing list