[Numpy-discussion] segfault on searchsorted (1.6.2.dev-396dbb9)
Adam Klein
adam at lambdafoundry.com
Tue Jan 17 10:57:29 EST 2012
Hello,
I get a segfault here:
In [1]: x = np.array([1,2,3], dtype='M')
In [2]: x.searchsorted(2, side='left')
But it's fine here:
In [1]: x = np.array([1,2,3], dtype='M')
In [2]: x.view('i8').searchsorted(2, side='left')
Out[2]: 1
This segfaults again:
x.view('i8').searchsorted(np.datetime64(2), side='left')
GDB gets me this far:
Program received signal SIGSEGV, Segmentation fault.
PyArray_SearchSorted (op1=0x1b8dd70, op2=0x17dfac0, side=NPY_SEARCHLEFT) at
numpy/core/src/multiarray/item_selection.c:1463
1463 Py_INCREF(dtype);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20120117/90b3ac63/attachment.html>
More information about the NumPy-Discussion
mailing list