[Pkg-octave-devel] Bug#296375: [bill@givebillmoney.com: Bug#296375: octave2.1: strftime crashes with an invalid structure as an argument]

Rafael Laboissiere Rafael Laboissiere <rafael@debian.org>, 296375@bugs.debian.org
Tue, 22 Feb 2005 14:01:27 +0100


package octave2.1
forwarded 296375 bug@octave.org
thank


Dear Octave maintainers,

I confirm that the problem reported below against the octave2.1 Debian
package persists in Octave 2.1.65.

-- 
Rafael



----- Forwarded message from Bill Denney <bill@givebillmoney.com> -----

From: Bill Denney <bill@givebillmoney.com>
Subject: Bug#296375: octave2.1: strftime crashes with an invalid structure
    as an argument
Date: Mon, 21 Feb 2005 21:54:02 -0500
To: Debian Bug Tracking System <submit@bugs.debian.org>
Reply-To: Bill Denney <bill@givebillmoney.com>, 296375@bugs.debian.org

Package: octave2.1
Version: 2.1.64-1
Severity: normal

strftime crashes when given an incomplete structure as input.  The 
following will crash octave 2.1:

-- Begin Script
tm.year = 2000;
tm.mon = 1;
tm.day = 1;

strftime("%Y%m%d", tm)
-- End Script

The crash looks like this on my system (I named this script 
"octavebug"):
-- Begin Error
octave:1> octavebug
panic: Segmentation fault -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Segmentation fault
-- End Error

I'll attach the octave-core file that it created.

Bill

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages octave2.1 depends on:
ii  atlas3-base [liblapack.so.3 3.6.0-19     Automatically Tuned Linear Algebra
ii  fftw3                       3.0.1-11     Library for computing Fast Fourier
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libg2c0                     1:3.3.5-8    Runtime library for GNU Fortran 77
ii  libgcc1                     1:3.4.3-6    GCC support library
ii  libhdf5-serial-1.6.2-0 [lib 1.6.2-3      Hierarchical Data Format 5 (HDF5) 
ii  libncurses5                 5.4-4        Shared libraries for terminal hand
ii  libreadline4                4.3-11       GNU readline and history libraries
ii  libstdc++5                  1:3.3.5-8    The GNU Standard C++ Library v3
ii  texinfo                     4.7-2.2      Documentation system for on-line i
ii  zlib1g                      1:1.2.2-3    compression library - runtime

-- no debconf information



----- End forwarded message -----

-- 
Rafael