[NumPy-Tickets] [NumPy] #1737: numpy.test() seg faults

NumPy Trac numpy-tickets@scipy....
Tue Feb 8 15:02:07 CST 2011


#1737: numpy.test() seg faults
------------------------+---------------------------------------------------
 Reporter:  sienkiew    |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  high        |   Milestone:  2.0.0   
Component:  numpy.core  |     Version:  devel   
 Keywords:              |  
------------------------+---------------------------------------------------
 numpy.test() has been seg faulting for about a week.  Today, I narrowed it
 down to the sequence shown here.

 With python 2.7.1 on 32 and 64 bit Red Hat Enterprise 4 :

 {{{
 >>> import numpy as np
 >>> shape = (2,4,3)
 >>> rand = np.random.random
 >>> x = rand(shape).astype(np.complex)*1j
 >>> import numpy as np
 >>>
 >>> shape = (2,4,3)
 >>> rand = np.random.random
 >>> x = rand(shape).astype(np.complex)*1j

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread -1208502592 (LWP 16307)]
 0x002a4a94 in ufunc_loop_matches () from
 /usr/stsci/pyssgdev/2.7/numpy/core/umath.so
 (gdb) where
 #0  0x002a4a94 in ufunc_loop_matches () from
 /usr/stsci/pyssgdev/2.7/numpy/core/umath.so
 #1  0x002a519f in find_best_ufunc_inner_loop () from
 /usr/stsci/pyssgdev/2.7/numpy/core/umath.so
 #2  0x002a74a0 in PyUFunc_GenericFunction () from
 /usr/stsci/pyssgdev/2.7/numpy/core/umath.so
 #3  0x002aa02e in ufunc_generic_call () from
 /usr/stsci/pyssgdev/2.7/numpy/core/umath.so
 #4  0x080708a4 in PyObject_Call ()
 #5  0x08070974 in call_function_tail ()
 #6  0x08070a46 in _PyObject_CallFunction_SizeT ()
 #7  0x00f54a7f in PyArray_GenericBinaryFunction () from
 /usr/stsci/pyssgdev/2.7/numpy/core/multiarray.so
 #8  0x00f54bb2 in array_multiply () from
 /usr/stsci/pyssgdev/2.7/numpy/core/multiarray.so
 #9  0x0806df95 in binary_op1 ()
 #10 0x0806e7fa in PyNumber_Multiply ()
 #11 0x080ccc13 in PyEval_EvalFrameEx ()
 #12 0x080d04a3 in PyEval_EvalCodeEx ()
 #13 0x080cc4ec in PyEval_EvalCode ()
 #14 0x080ecac8 in run_mod ()
 #15 0x080eb9c0 in PyRun_InteractiveOneFlags ()
 #16 0x080eb7dc in PyRun_InteractiveLoopFlags ()
 #17 0x080eb6d5 in PyRun_AnyFileExFlags ()
 #18 0x08069892 in Py_Main ()
 #19 0x08068a80 in main ()
 }}}

 I got this reproduce-by by trimming down one of the setUp functions in
 core/tests/test_multiarray.py

 It does not appear to happen on RHE 5 (in python 2.7.1, 2.6.1 or 2.5.4) or
 on a Mac (in python 2.7).

 Unfortunately, I do not currently have a python with debugging symbols.
 If I have an opportunity to re-compile python, I will post more details.

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


More information about the NumPy-Tickets mailing list