[Scipy-tickets] [SciPy] #1745: fftconvolve crashes with 0-length input

SciPy Trac scipy-tickets@scipy....
Sun Oct 28 12:02:44 CDT 2012


#1745: fftconvolve crashes with 0-length input
--------------------------+-------------------------------------------------
 Reporter:  endolith      |       Owner:  cdavid     
     Type:  defect        |      Status:  new        
 Priority:  low           |   Milestone:  Unscheduled
Component:  scipy.signal  |     Version:  0.10.1     
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by warren.weckesser):

 Reproduced with scipy trunk (version '0.12.0.dev-141ebeb'), using numpy
 1.6.1 and numpy master ('1.8.0.dev-a890a85'), on 64 bit Ubuntu 12.04.
 Python crashes with a floating point exception.

 {{{
 In [6]: fftconvolve(array([0]),array([]))
 /home/warren/local_scipy/lib/python2.7/site-
 packages/scipy/signal/signaltools.py:145: RuntimeWarning: divide by zero
 encountered in log2
   fsize = 2 ** np.ceil(np.log2(size))
 Floating point exception
 $
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1745#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