[Pkg-octave-devel] Bug#567975: FP error when filtering an empty vector

Bas Zoetekouw bas at debian.org
Mon Feb 1 15:37:18 UTC 2010


Package: octave3.2
Version: 3.2.4-1
Severity: important

Octave crashes when trying to filter() an empty vector:

| octave:1> a=1; b=ones(10,1)/10; foo=filter(b,a,[]);
| panic: Floating point exception -- stopping myself...
| attempting to save variables to `octave-core'...
| save to `octave-core' complete
| zsh: floating point exception  octave

and I'm dropped back into the shell...

Of course, filtering an empty vector doesnt make much sense, but it certainly
shouldn't cause a crash.
FWIT, Matlab simple returns an empty vector.

-- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash





More information about the Pkg-octave-devel mailing list