[Scipy-tickets] [SciPy] #1194: interp2d segfault in SciPy 0.7.0

SciPy Trac scipy-tickets@scipy....
Tue Jun 8 05:10:05 CDT 2010


#1194: interp2d segfault in SciPy 0.7.0
-------------------------------+--------------------------------------------
 Reporter:  andrew.clegg       |       Owner:  somebody
     Type:  defect             |      Status:  new     
 Priority:  normal             |   Milestone:  0.8.0   
Component:  scipy.interpolate  |     Version:  0.7.0   
 Keywords:  crash              |  
-------------------------------+--------------------------------------------
 Reproducible every time on a Fedora 10 box with Python 2.5.2, SciPy 0.7.0,
 numpy 1.2.0. Running the following script gives a segfault:

 {{{
 import numpy
 import scipy.interpolate

 indices_1 = numpy.array([0.0, 5.0])
 indices_2 = numpy.array([-3., -2., -1.,  0.,  1.])

 data = numpy.array([
    [ 0.19,  0.19,  0.19,  0.18,  0.16],
    [ 0.19,  0.19,  0.18,  0.16,  0.16],
 ])

 interpolator = scipy.interpolate.interp2d(indices_1, indices_2, data)
 }}}

 I was able to get a backtrace:

 {{{
 (gdb) bt
 #0  0x00007fffef733412 in fprank_ () from /usr/lib64/python2.5/site-
 packages/scipy/interpolate/_fitpack.so
 #1  0x00007fffef717f2d in fpsurf_ () from /usr/lib64/python2.5/site-
 packages/scipy/interpolate/_fitpack.so
 #2  0x00007fffef710294 in surfit_ () from /usr/lib64/python2.5/site-
 packages/scipy/interpolate/_fitpack.so
 #3  0x00007fffef70c996 in splev_ () from /usr/lib64/python2.5/site-
 packages/scipy/interpolate/_fitpack.so
 #4  0x00000036170bed1c in call_function () at Python/ceval.c:3573
 #5  PyEval_EvalFrameEx (f=0xcc7520, throwflag=<value optimized out>) at
 Python/ceval.c:2272
 #6  0x00000036170c0865 in PyEval_EvalCodeEx (co=0xae14e0, globals=<value
 optimized out>, locals=<value optimized out>, args=0xcc7730, argcount=3,
 kws=0xcc6b78, kwcount=3,
     defs=0xa57d58, defcount=16, closure=0x0) at Python/ceval.c:2836
 #7  0x00000036170befdc in fast_function () at Python/ceval.c:3669
 #8  call_function () at Python/ceval.c:3594
 #9  PyEval_EvalFrameEx (f=0xcc6990, throwflag=<value optimized out>) at
 Python/ceval.c:2272
 #10 0x00000036170c0865 in PyEval_EvalCodeEx (co=0xa03a80, globals=<value
 optimized out>, locals=<value optimized out>, args=0xcc6b48, argcount=4,
 kws=0x0, kwcount=0,
     defs=0xa70900, defcount=4, closure=0x0) at Python/ceval.c:2836
 #11 0x000000361705be72 in function_call (func=0xae1938,
 arg=0x7ffff7f59b50, kw=0x0) at Objects/funcobject.c:517
 #12 0x000000361703d493 in PyObject_Call (func=0x1, arg=0x1, kw=0x10) at
 Objects/abstract.c:1861
 #13 0x0000003617044740 in instancemethod_call (func=0xae1938,
 arg=0x7ffff7f59b50, kw=0x0) at Objects/classobject.c:2519
 #14 0x000000361703d493 in PyObject_Call (func=0x1, arg=0x1, kw=0x10) at
 Objects/abstract.c:1861
 #15 0x000000361708890e in slot_tp_init (self=<value optimized out>,
 args=0xc25eb0, kwds=0x0) at Objects/typeobject.c:4943
 #16 0x000000361708734e in type_call (type=<value optimized out>,
 args=0xc25eb0, kwds=0x0) at Objects/typeobject.c:436
 #17 0x000000361703d493 in PyObject_Call (func=0x1, arg=0x1, kw=0x10) at
 Objects/abstract.c:1861
 #18 0x00000036170bcfd3 in do_call (na=2) at Python/ceval.c:3784
 #19 call_function () at Python/ceval.c:3596
 #20 PyEval_EvalFrameEx (f=0x61ab00, throwflag=<value optimized out>) at
 Python/ceval.c:2272
 #21 0x00000036170c0865 in PyEval_EvalCodeEx (co=0x7ffff7f71300,
 globals=<value optimized out>, locals=<value optimized out>, args=0x0,
 argcount=0, kws=0x0, kwcount=0, defs=0x0,
     defcount=0, closure=0x0) at Python/ceval.c:2836
 #22 0x00000036170c0aa2 in PyEval_EvalCode (co=0x1, globals=0x1,
 locals=0x10) at Python/ceval.c:494
 #23 0x00000036170dc931 in run_mod (mod=<value optimized out>,
 filename=<value optimized out>, globals=0x624640, locals=0x624640,
 flags=<value optimized out>,
     arena=<value optimized out>) at Python/pythonrun.c:1273
 #24 0x00000036170dca06 in PyRun_FileExFlags (fp=0x601010,
 filename=0x7fffffffdbda "testcase.py", start=257, globals=0x624640,
 locals=0x624640, closeit=1, flags=0x7fffffffd6a0) at
 Python/pythonrun.c:1259
 #25 0x00000036170ddfed in PyRun_SimpleFileExFlags (fp=0x601010,
 filename=0x7fffffffdbda "testcase.py", closeit=1, flags=0x7fffffffd6a0) at
 Python/pythonrun.c:879
 #26 0x00000036170e7ef1 in Py_Main (argc=1, argv=<value optimized out>) at
 Modules/main.c:523
 #27 0x000000360421e576 in __libc_start_main (main=0x400710 <main>, argc=2,
 ubp_av=0x7fffffffd7b8, init=0x400730 <__libc_csu_init>, fini=<value
 optimized out>,
     rtld_fini=<value optimized out>, stack_end=0x7fffffffd7a8) at libc-
 start.c:220
 #28 0x0000000000400649 in _start ()
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1194>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list