[NumPy-Tickets] [NumPy] #2189: segfault on searchsorted of wrong dtype in structured array

NumPy Trac numpy-tickets@scipy....
Mon Jul 23 17:16:43 CDT 2012


#2189: segfault on searchsorted of wrong dtype in structured array
------------------------+---------------------------------------------------
 Reporter:  akhmerov    |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  1.7.0   
Component:  numpy.core  |     Version:  1.6.1   
 Keywords:              |  
------------------------+---------------------------------------------------
 numpy.searchsorted causes segfault when one searches in a structured array
 with a wrong dtype.

 Bug is reproduced by:
 python -c "import numpy as np; a = np.array([('a', 1)], dtype='S1, int');
 np.searchsorted(a, 1.2)"

 gdb traceback:
 #0  0x00007ffff5d63413 in ?? () from /usr/lib/python2.7/dist-
 packages/numpy/core/multiarray.so
 #1  0x00007ffff5d736a9 in ?? () from /usr/lib/python2.7/dist-
 packages/numpy/core/multiarray.so
 #2  0x000000000042a485 in PyEval_EvalFrameEx ()
 #3  0x00000000004317f2 in PyEval_EvalCodeEx ()
 #4  0x000000000042a998 in PyEval_EvalFrameEx ()
 #5  0x00000000004317f2 in PyEval_EvalCodeEx ()
 #6  0x000000000042a136 in PyRun_StringFlags ()
 #7  0x0000000000432209 in PyRun_SimpleStringFlags ()
 #8  0x000000000054c41a in Py_Main ()
 #9  0x00007ffff68e576d in __libc_start_main () from /lib/x86_64-linux-
 gnu/libc.so.6
 #10 0x000000000041b931 in _start ()

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/2189>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list