[SciPy-dev] a.resize() segfaults

Travis Oliphant oliphant at ee.byu.edu
Fri Nov 18 14:28:03 EST 2005


Ed Schofield wrote:

>I've found another segfault:
>
>  
>
>>>>a = arange(10)
>>>>a
>>>>        
>>>>
>array([[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0]])
>  
>
>>>>a.resize(1,11)
>>>>        
>>>>
>
>  
>
Thanks for another catch.  The PyArray_Resize function was throwing an 
exception (because the object had references) as it should.  However, 
the method call was not doing the right thing when an exception was thrown.

Segfaults are never acceptable behavior.

-Travis






More information about the SciPy-Dev mailing list