[Numpy-tickets] [NumPy] #615: numpy.array([])[arange(10000)>=0] = 123 segfaults
NumPy
numpy-tickets@scipy....
Thu Nov 15 17:07:30 CST 2007
#615: numpy.array([])[arange(10000)>=0] = 123 segfaults
------------------------+---------------------------------------------------
Reporter: rauli | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.5
Component: numpy.core | Version: 1.0.1
Severity: normal | Keywords:
------------------------+---------------------------------------------------
array([])[arange(10000)>=0] = 123 segfaults; apparently boolean array
indices are used unchecked. array([])[arange(10000)] instead raises
IndexError as expected. This happens on
Ubuntu Feisty x86-32, numpy 1.0.1 as well as 1.0.4, and Ubuntu Gutsy
x86-64 with numpy 1.0.3.
I haven't tested it with the trunk.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/615>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list