[Numpy-tickets] [NumPy] #658: Segfault on reshape

NumPy numpy-tickets@scipy....
Tue Feb 12 10:20:59 CST 2008


#658: Segfault on reshape
------------------------+---------------------------------------------------
 Reporter:  stefan      |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:  1.0.5   
Component:  numpy.core  |      Version:  none    
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by nils):

 {{{
 >>> import numpy as np
 >>> np.indices((0,3,4)).T.reshape(-1,3)

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 1077176000 (LWP 10914)]
 0x404d074c in PyArray_Newshape (self=0x81f74a0, newdims=0xbfffe858,
 fortran_=NPY_CORDER) at multiarraymodule.c:516
 516                     np *= newdims[nj++];
 Current language:  auto; currently c
 (gdb)
 (gdb) bt
 #0  0x404d074c in PyArray_Newshape (self=0x81f74a0, newdims=0xbfffe858,
 fortran_=NPY_CORDER) at multiarraymodule.c:516
 #1  0x404d0bee in array_reshape (self=0x81f74a0, args=0x403979ac,
 kwds=0x0) at arraymethods.c:87
 }}}

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/658#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list