[NumPy-Tickets] [NumPy] #2066: np.searchsorted segfaults when input is a recarray
NumPy Trac
numpy-tickets@scipy....
Wed Apr 11 13:10:29 CDT 2012
#2066: np.searchsorted segfaults when input is a recarray
--------------------------------------------------------+-------------------
Reporter: josh.ayers | Owner: somebody
Type: defect | Status: new
Priority: high | Milestone: 1.7.0
Component: numpy.core | Version: 1.6.1
Keywords: searchsorted, segfault, segmentation fault |
--------------------------------------------------------+-------------------
Comment(by claumann):
Standard structured arrays segfault on Mac OSX with Enthought's python
2.7.2, but github numpy 2.0.0.dev-26aa3cf.
Using Fonnesbeck's current superpack (Apple Python 2.7.1 from Lion, numpy
1.7.0.dev-3503cf), the same code raises an type promotion error. Don't
know if this is related to enthought or if the github master doesn't have
the same type checking that 1.7.0.dev seems to have..
Python 2.7.2 |EPD 7.1-1 (64-bit)| (default, Jul 3 2011, 15:56:02)
Type "copyright", "credits" or "license" for more information.
IPython 0.13.dev -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Welcome to pylab, a matplotlib-based Python environment [backend: MacOSX].
For more information, type 'help(pylab)'.
In [1]: np.__version__
Out[1]: '2.0.0.dev-26aa3cf'
In [2]: dtype = np.format_parser(['i4', 'i4'], [], [])
In [3]: a = np.array([(2,2),(2,2)], dtype)
In [4]: np.searchsorted(a, r_[1])
Segmentation fault: 11
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2066#comment:4>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list