[Numpy-tickets] [NumPy] #466: Segmentation fault when reversing an array enough times

NumPy numpy-tickets@scipy....
Sat Mar 10 10:38:15 CST 2007


#466: Segmentation fault when reversing an array enough times
------------------------+---------------------------------------------------
 Reporter:  faltet      |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:          
Component:  numpy.core  |      Version:  devel   
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by albertstrasheim):

 Confirmed with 1.0.2.dev3572. I ran the provided code through Valgrind.
 After a while Valgrind crashes with:

 {{{
 ==3912== Stack overflow in thread 1: can't grow stack to 0xBE416FEC
 ==3912==
 ==3912== Process terminating with default action of signal 11 (SIGSEGV)
 ==3912==  Access not within mapped region at address 0xBE416FEC
 ==3912==    at 0x444CC9B: array_dealloc (arrayobject.c:1907)
 }}}

 Running under gdb, I get the following backtrace when it crashes:

 {{{
 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread -1208523072 (LWP 3998)]
 0x00262c9b in array_dealloc (self=0xa8c42a0) at
 numpy/core/src/arrayobject.c:1907
 1907    array_dealloc(PyArrayObject *self) {
 (gdb) bt
 #0  0x00262c9b in array_dealloc (self=0xa8c42a0) at
 numpy/core/src/arrayobject.c:1907
 #1  0x00262d32 in array_dealloc (self=0xa8c42e0) at
 numpy/core/src/arrayobject.c:1933
 #2  0x00262d32 in array_dealloc (self=0xa8c4320) at
 numpy/core/src/arrayobject.c:1933
 #3  0x00262d32 in array_dealloc (self=0xa8c4360) at
 numpy/core/src/arrayobject.c:1933
 ... many more of the same ...
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/466#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