[Numpy-tickets] [NumPy] #816: Constructing numpy.object_ causes a crash

NumPy numpy-tickets@scipy....
Fri Aug 29 12:37:35 CDT 2008


#816: Constructing numpy.object_ causes a crash
---------------------------------------+------------------------------------
 Reporter:  pv                         |        Owner:  somebody
     Type:  defect                     |       Status:  reopened
 Priority:  normal                     |    Milestone:  1.2.0   
Component:  numpy.core                 |      Version:  devel   
 Severity:  normal                     |   Resolution:          
 Keywords:  crash object_ constructor  |  
---------------------------------------+------------------------------------
Changes (by chris.burns):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 test_for_object_scalar_creation in numpy/core/tests/test_regression.py
 causes a bus error on OSX (10.5, python 2.5.2).

 nosetests -sv
 test_regression:TestRegression.test_for_object_scalar_creation
 Ticket #816 ... Bus error


 Passing in lists works, scalars do not.

 In [1]: import numpy as np

 In [2]: np.__version__
 Out[2]: '1.2.0.dev5726'

 In [3]: c = np.object_([4,5])

 In [4]: c
 Out[4]: array([4, 5], dtype=object)

 In [5]: d = np.object_([None, {}, []])

 In [6]: d
 Out[6]: array([None, {}, []], dtype=object)

 In [7]: b2 = np.object_(3.0)
 Bus error
 cburns@~ 10:27:07 $

 These operations also cause a bus error:
 a = np.object_()
 b = np.object_(3)

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


More information about the Numpy-tickets mailing list