[NumPy-Tickets] [NumPy] #2066: np.searchsorted segfaults when input is a recarray
NumPy Trac
numpy-tickets@scipy....
Sun Feb 26 15:21:26 CST 2012
#2066: np.searchsorted segfaults when input is a recarray
--------------------------------------------------------+-------------------
Reporter: josh.ayers | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.6.2
Component: numpy.core | Version: 1.6.1
Keywords: searchsorted, segfault, segmentation fault |
--------------------------------------------------------+-------------------
The following code segfaults. I'm running NumPy 1.6.1 on Windows 7.
{{{
import numpy as np
dtype = np.format_parser(['i4', 'i4'], [], [])
a = np.recarray((2, ), dtype)
np.searchsorted(a, 1)
}}}
The gdb output is below:
{{{
(gdb) run -c "import crash; crash.run()"
Starting program: c:\python27\python.exe -c "import crash; crash.run()"
[New Thread 3520.0x9cc]
Program received signal SIGSEGV, Segmentation fault.
0x673982ac in PyArray_SearchSorted ()
from c:\python27\lib\site-packages\numpy\core\multiarray.pyd
(gdb) bt
#0 0x673982ac in PyArray_SearchSorted ()
from c:\python27\lib\site-packages\numpy\core\multiarray.pyd
#1 0x673986e8 in array_searchsorted ()
from c:\python27\lib\site-packages\numpy\core\multiarray.pyd
#2 0x1e0887c7 in python27!PyCFunction_Call () from
c:\python27\python27.dll
#3 0x1e0bf781 in python27!PyEval_GetFuncDesc () from
c:\python27\python27.dll
#4 0x0262abe8 in ?? ()
#5 0x1e1d57f8 in python27!PySuper_Type () from c:\python27\python27.dll
#6 0x00000002 in ?? ()
#7 0x01cedf30 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
(gdb)
}}}
--
Ticket URL: <http://projects.scipy.org/numpy/ticket/2066>
NumPy <http://projects.scipy.org/numpy>
My example project
More information about the NumPy-Tickets
mailing list