From bug-octave-request at bevo dot che dot wisc dot edu Wed Feb 4 09:43:53 2004 Subject: tf2zp causes segfault (error in __sysdefstname__.m) From: johannes To: bug-octave at bevo dot che dot wisc dot edu Date: Wed, 4 Feb 2004 07:43:10 -0600 Bug report for Octave 2.1.53 configured for i386-pc-linux-gnu Description: ----------- tf2zp causes segmentation fault and complaints about /usr/share/octave/2.1.53/m/control/system/__sysdefstname__.m near line 28, column 10 "warning: list objects are deprecated; use cell arrays instead" below contents of that file ## -*- texinfo -*- ## at deftypefn {Function File} {} __sysdefstname__ (@var{n}, @var{nz}) ## return default state names given at var{n}, @var{nz} ## ## used internally, minimal argument checking ## at end deftypefn function stname = __sysdefstname__ (n, nz) stname = list (); if (n > 0) for ii = 1:n stname(ii) = sprintf ("x_%d", ii); endfor endif ## Set default names for discrete states if (nz > 0) for ii = (n+1):(n+nz) stname(ii) = sprintf ("xd_%d", ii); endfor endif endfunction Repeat-By: --------- octave:1> num=[ 0 0 4 16 12 ]; octave:2> den=[ 1 12 44 48 0 ]; octave:3> [zer,pol,k] = tf2zp(num,den) warning: in /usr/share/octave/2.1.53/m/control/system/__sysdefstname__.m near line 28, column 10: warning: list objects are deprecated; use cell arrays instead panic: Segmentation fault -- stopping myself... attempting to save variables to `octave-core'... save to `octave-core' complete Segmentation fault i'm using the debian package so this what the people from debian did: octave2.1 (2.1.53-3) unstable; urgency=low * debian/rules: Run configure with DEFAULT_PAGER=pager (Closes: #230524) * debian/control: No longer Depends: on less as /etc/alternatives for /usr/bin/pager must be present, and allows user to override locally * debian/control: Added "libreadline4-dev, libncurses5-dev, libhdf5-serial-dev" to Depends for octave2.1-headers -- Dirk Eddelbuettel Mon, 2 Feb 2004 18:53:58 -0600 octave2.1 (2.1.53-2) unstable; urgency=low * debian/rules: Run configure again --with-hdf5 * debian/control: Add libhdf5-serial-dev to Build-Depends * liboctave/Array-flags.h: Apply patch by Jakub Bogusz which stops both a segfault on Sparc and unaligned traps on Alpha. * emacs/octave-mod.el: Apply patch by John Eaton to correct octave mode error with very recent XEmacs versions (Closes: #229336) -- Dirk Eddelbuettel Fri, 30 Jan 2004 23:00:00 -0600 octave2.1 (2.1.53-1) unstable; urgency=low * New upstream version 2.1.53 released today * This new version contains upstream fixes for the pending Debian bugs: - octave-config echoes an empty path (Closes: #222225) - online docs of plot contains non-working example (Closes: #223473) -- Dirk Eddelbuettel Thu, 22 Jan 2004 23:33:21 -0600 ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------