[SciPy-dev] A stray pointer somwehere...

Travis Oliphant oliphant at ee.byu.edu
Thu Nov 3 20:12:08 CST 2005

Fernando Perez wrote:

>Here's the crash script for testing:
>phillips[~]> cat crash_scipy.py
>#!/usr/bin/env python
>import scipy
>level = 10
>verb  = 10
>for i in range(1,100):
>     print '*'*75
>     print '*'*30,'TEST PASS #',i,'*'*30
>     scipy.test(level,verb)
Not a bad script for testing long term effects.  I've found the 
problem.  There were two:  a scalar array object was not being incref'd 
when retrieved from a.dtype.  Also, and more relevevant to this issue 
was that .put for OBJECT arrays was not holding on to a reference to the 
objects placed in the array (nor was it DECREF'ing the current contents).

This bug is in Numeric as well, but was never discovered -- the put and 
putmask code came directly from Numeric.


More information about the Scipy-dev mailing list