[Scipy-tickets] [SciPy] #1452: lfilter segfaults when filtering object arrays

SciPy Trac scipy-tickets@scipy....
Sat Jun 4 03:43:43 CDT 2011


#1452: lfilter segfaults when filtering object arrays
--------------------------+-------------------------------------------------
 Reporter:  jpaalasm      |       Owner:  somebody
     Type:  defect        |      Status:  new     
 Priority:  high          |   Milestone:          
Component:  scipy.signal  |     Version:  0.9.0   
 Keywords:                |  
--------------------------+-------------------------------------------------
 Scipy is 0.9.0 and Numpy 1.5.1.

 {{{
 $ gdb --args python -c "import scipy.signal; scipy.signal.lfilter([1.0],
 [1.0], [None])"
 GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
 Copyright (C) 2010 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later
 <http://gnu.org/licenses/gpl.html>
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 and "show warranty" for details.
 This GDB was configured as "x86_64-linux-gnu".
 For bug reporting instructions, please see:
 <http://www.gnu.org/software/gdb/bugs/>...
 Reading symbols from /usr/bin/python...Reading symbols from
 /usr/lib/debug/usr/bin/python2.7...done.
 done.
 (gdb) run
 Starting program: /usr/bin/python -c import\ scipy.signal\;\
 scipy.signal.lfilter\(\[1.0\],\ \[1.0\],\ \[None\]\)
 [Thread debugging using libthread_db enabled]

 Program received signal SIGSEGV, Segmentation fault.
 binary_op1 (v=0x0, w=<float at remote 0x8c9620>, op_slot=24) at
 ../Objects/abstract.c:929
 929     ../Objects/abstract.c: No such file or directory.
         in ../Objects/abstract.c
 (gdb) bt
 #0  binary_op1 (v=0x0, w=<float at remote 0x8c9620>, op_slot=24) at
 ../Objects/abstract.c:929
 #1  0x000000000045c0fe in binary_op (v=<value optimized out>, w=<float at
 remote 0x8c9620>) at ../Objects/abstract.c:997
 #2  PyNumber_Divide (v=<value optimized out>, w=<float at remote
 0x8c9620>) at ../Objects/abstract.c:1179
 #3  0x00007ffff313ec30 in OBJECT_filt (b=<value optimized out>,
 a=0x13bcc30 " \226\214", x=<value optimized out>, y=<value optimized out>,
 Z=0x13988c0 "(2\323\366\377\177",
     len_b=<value optimized out>, len_x=1, stride_X=8, stride_Y=8) at
 scipy/signal/lfilter.c.src:583
 #4  0x00007ffff313dc80 in RawFilter (__NPY_UNUSED_TAGGEDdummy=<value
 optimized out>, args=<value optimized out>) at
 scipy/signal/lfilter.c.src:348
 #5  scipy_signal_sigtools_linear_filter (__NPY_UNUSED_TAGGEDdummy=<value
 optimized out>, args=<value optimized out>) at
 scipy/signal/lfilter.c.src:180
 #6  0x00000000004965f1 in call_function (f=<value optimized out>,
 throwflag=<value optimized out>) at ../Python/ceval.c:4013
 #7  PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value
 optimized out>) at ../Python/ceval.c:2666
 #8  0x000000000049d325 in PyEval_EvalCodeEx (co=0x1383f30, globals=<value
 optimized out>, locals=<value optimized out>, args=<value optimized out>,
     argcount=<value optimized out>, kws=<value optimized out>, kwcount=0,
 defs=0x1264f08, defcount=2, closure=0x0) at ../Python/ceval.c:3253
 #9  0x0000000000496a92 in fast_function (f=<value optimized out>,
 throwflag=<value optimized out>) at ../Python/ceval.c:4109
 #10 call_function (f=<value optimized out>, throwflag=<value optimized
 out>) at ../Python/ceval.c:4034
 #11 PyEval_EvalFrameEx (f=<value optimized out>, throwflag=<value
 optimized out>) at ../Python/ceval.c:2666
 #12 0x000000000049d325 in PyEval_EvalCodeEx (co=0x9b48b0, globals=<value
 optimized out>, locals=<value optimized out>, args=<value optimized out>,
     argcount=<value optimized out>, kws=<value optimized out>, kwcount=0,
 defs=0x0, defcount=0, closure=0x0) at ../Python/ceval.c:3253
 #13 0x00000000004ecb02 in PyEval_EvalCode (co=<value optimized out>,
 globals=<value optimized out>, locals=<value optimized out>) at
 ../Python/ceval.c:667
 #14 0x00000000004fdc74 in run_mod (mod=<value optimized out>,
 filename=<value optimized out>, globals=
     {'__builtins__': <module at remote 0x7ffff7fa3ad0>, '__name__':
 '__main__', 'scipy': <module at remote 0xa16750>, '__doc__': None,
 '__package__': None}, locals=
     {'__builtins__': <module at remote 0x7ffff7fa3ad0>, '__name__':
 '__main__', 'scipy': <module at remote 0xa16750>, '__doc__': None,
 '__package__': None},
     flags=<value optimized out>, arena=<value optimized out>) at
 ../Python/pythonrun.c:1346
 #15 0x00000000004fdeb5 in PyRun_StringFlags (str=0x8a9010 "import
 scipy.signal; scipy.signal.lfilter([1.0], [1.0], [None])\n", start=<value
 optimized out>, globals=
     {'__builtins__': <module at remote 0x7ffff7fa3ad0>, '__name__':
 '__main__', 'scipy': <module at remote 0xa16750>, '__doc__': None,
 '__package__': None}, locals=
     {'__builtins__': <module at remote 0x7ffff7fa3ad0>, '__name__':
 '__main__', 'scipy': <module at remote 0xa16750>, '__doc__': None,
 '__package__': None}, flags=
     0x7fffffffe150) at ../Python/pythonrun.c:1309
 #16 0x000000000042c832 in PyRun_SimpleStringFlags (command=0x8a9010
 "import scipy.signal; scipy.signal.lfilter([1.0], [1.0], [None])\n",
 flags=0x7fffffffe150)
     at ../Python/pythonrun.c:962
 #17 0x0000000000418945 in Py_Main (argc=<value optimized out>,
 argv=0x7fffffffe278) at ../Modules/main.c:543
 #18 0x00007ffff69c2eff in __libc_start_main () from /lib/x86_64-linux-
 gnu/libc.so.6
 #19 0x00000000004c62b1 in _start ()
 }}}

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


More information about the Scipy-tickets mailing list