[Scipy-tickets] [SciPy] #1419: ndimage.zoom crash

SciPy Trac scipy-tickets@scipy....
Fri Apr 8 01:46:33 CDT 2011


#1419: ndimage.zoom crash
---------------------------+------------------------------------------------
 Reporter:  cjgohlke       |       Owner:  somebody
     Type:  defect         |      Status:  new     
 Priority:  normal         |   Milestone:          
Component:  scipy.ndimage  |     Version:  0.9.0   
 Keywords:                 |  
---------------------------+------------------------------------------------

Comment(by nils):

 I can reproduce the crash

 {{{
 >>> scipy.__version__
 '0.10.0.dev'
 >> numpy.__version__
 '2.0.0.dev-966038e'
 }}}


 {{{
 (gdb) run ticket_1419.py
 Starting program: /data/home/nwagner/local/bin/python ticket_1419.py
 [Thread debugging using libthread_db enabled]
 [New Thread 47377299749280 (LWP 9105)]
 /data/home/nwagner/local/lib/python2.5/site-
 packages/scipy/ndimage/interpolation.py:514: RuntimeWarning: divide by
 zero encountered in divide
   zoom = (numpy.array(input.shape)-1)/(numpy.array(output_shape,float)-1)

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 47377299749280 (LWP 9105)]
 0x00002b16e8b65a43 in NI_ZoomShift (input=0x18614f20, zoom_ar=<value
 optimized out>, shift_ar=<value optimized out>,
     output=0x183d95c0, order=3, mode=0, cval=0) at
 scipy/ndimage/src/ni_interpolation.c:784
 784                     zeros[jj][kk] = 1;
 (gdb) bt
 #0  0x00002b16e8b65a43 in NI_ZoomShift (input=0x18614f20, zoom_ar=<value
 optimized out>, shift_ar=<value optimized out>,
     output=0x183d95c0, order=3, mode=0, cval=0) at
 scipy/ndimage/src/ni_interpolation.c:784
 #1  0x00002b16e8b5c6fb in Py_ZoomShift (obj=<value optimized out>,
 args=<value optimized out>) at scipy/ndimage/src/nd_image.c:670
 #2  0x000000000048994b in PyEval_EvalFrameEx (f=0x1862f280,
 throwflag=<value optimized out>) at Python/ceval.c:3564
 #3  0x000000000048b791 in PyEval_EvalCodeEx (co=0x185e45d0, globals=<value
 optimized out>, locals=<value optimized out>,
     args=0x185d7b10, argcount=2, kws=0x17fbcc60, kwcount=1,
 defs=0x185d7ae8, defcount=5, closure=0x0) at Python/ceval.c:2831
 #4  0x00000000004894d1 in PyEval_EvalFrameEx (f=0x17fbcad0,
 throwflag=<value optimized out>) at Python/ceval.c:3659
 #5  0x000000000048b791 in PyEval_EvalCodeEx (co=0x2b16e3276af8,
 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:2831
 #6  0x000000000048b902 in PyEval_EvalCode (co=0x0, globals=0x0,
 locals=0x8) at Python/ceval.c:494
 #7  0x00000000004adc9e in PyRun_FileExFlags (fp=0x17f4d010,
 filename=0x7fffc78d75df "ticket_1419.py", start=<value optimized out>,
     globals=0x17f70630, locals=0x17f70630, closeit=1,
 flags=0x7fffc78d69fc) at Python/pythonrun.c:1271
 #8  0x00000000004aeb1f in PyRun_SimpleFileExFlags (fp=0x17f4d010,
 filename=0x7fffc78d75df "ticket_1419.py", closeit=1,
     flags=0x7fffc78d69fc) at Python/pythonrun.c:877
 #9  0x0000000000411f77 in Py_Main (argc=-947030561, argv=<value optimized
 out>) at Modules/main.c:523
 #10 0x000000383cc1d8b4 in __libc_start_main () from /lib64/libc.so.6
 #11 0x000000000041163a in _start ()
 }}}

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


More information about the Scipy-tickets mailing list