[Numpy-tickets] [NumPy] #378: NumPy or Python crashing with segfault

NumPy numpy-tickets at scipy.net
Sat Nov 11 13:58:01 CST 2006


#378: NumPy or Python crashing with segfault
------------------------+---------------------------------------------------
 Reporter:  tecki       |       Owner:  somebody          
     Type:  defect      |      Status:  new               
 Priority:  normal      |   Milestone:                    
Component:  numpy.core  |     Version:                    
 Severity:  normal      |    Keywords:  segfault vectorize
------------------------+---------------------------------------------------
 I just ran the following little python script:

 {{{
 import numpy

 a = numpy.arange(100 * 100)
 a = a.reshape(100, 100)
 b = a

 def p(x, y):
         print x, y
         return x

 v = numpy.vectorize(p)
 print v(a,b)
 }}}

 and I god a segmentation fault. I considered this strange, since there
 should
 be no segfaults using python, but exceptions, no?

 OK, I am using slackware linux on an i386, tried their packages
 python-2.4.1, python-2.4.3 and a self-compiled python-2.5, all with
 numpy-1.0. Since the
 python version doesn't matter, I guessed it is the numpy package which
 makes problems.

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


More information about the Numpy-tickets mailing list