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

NumPy numpy-tickets@scipy....
Thu Mar 8 06:16:25 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      |    Keywords:          
------------------------+---------------------------------------------------
 Hi,

 I'm getting a consistent seg fault by running this code:

 {{{
 import numpy

 print "numpy version-->", numpy.__version__
 N = 1000*1000
 a = numpy.array([1,2])
 for i in xrange(N):
     a = a[::-1]
 }}}

 and the output for my machine:

 {{{
 numpy version--> 1.0.2.dev3546
 Violació de segment
 }}}

 I need 1 million of iterations for getting the segfault, but your mileage
 may vary.

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


More information about the Numpy-tickets mailing list