--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: octave: crashes (glibc detected double free or corruption)
- From: Jochen Voss <voss@debian.org>
- Date: Tue, 30 May 2006 15:32:50 +0100
- Message-id: <20060530143250.9500.50191.reportbug@burmah.maths.warwick.ac.uk>
Package: octave
Version: 1:2.1.73-8
Severity: normal
Hello,
if I place the following script (needs ocatave-forge) in the current
directory
== laplace1.m starts here ============================================
function L = laplace1(n,du,alpha)
% LAPLACE1 Laplace operator with one-step Dirichlet boundary conditions
%L = diag(ones(n-1,1)/(du*du),-1) \
% + diag(-2*ones(n,1)/(du*du),0) \
% + diag(ones(n-1,1)/(du*du),+1);
B=[ones(n,1) (-2*ones(n,1)) ones(n,1)]/(du*du);
L=spdiags(B,[-1,0,1],n,n);
L(1,1)=-1/(du*du)+alpha/du;
L(n,n)=-1/(du*du);
======================================================================
and then try to call this function, octave crashes:
voss@burmah [~/project/kalman/assimilation/src/matlab] octave
GNU Octave, version 2.1.73 (i486-pc-linux-gnu).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
Additional information about Octave is available at http://www.octave.org.
Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html
Report bugs to <bug@octave.org> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).
octave:1> a=laplace1(6,0.1,0)
*** glibc detected *** double free or corruption (fasttop): 0x08ad1908 ***
panic: Aborted -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Aborted
This looks like a bug somewhere.
If I give the corresponding commands "by hand" instead, it seems to
work:
voss@burmah [~/project/kalman/assimilation/src/matlab] octave
GNU Octave, version 2.1.73 (i486-pc-linux-gnu).
[...]
octave:1> n=6
n = 6
octave:2> du=0.1
du = 0.10000
octave:3> alpha=0
alpha = 0
octave:4> B=[ones(n,1) (-2*ones(n,1)) ones(n,1)]/(du*du);
octave:5> L=spdiags(B,[-1,0,1],n,n);
octave:6> L(1,1)=-1/(du*du)+alpha/du;
octave:7> L(n,n)=-1/(du*du);
octave:8> L
L =
-100.00000 100.00000 0.00000 0.00000 0.00000 0.00000
100.00000 -200.00000 100.00000 0.00000 0.00000 0.00000
0.00000 100.00000 -200.00000 100.00000 0.00000 0.00000
0.00000 0.00000 100.00000 -200.00000 100.00000 0.00000
0.00000 0.00000 0.00000 100.00000 -200.00000 100.00000
0.00000 0.00000 0.00000 0.00000 100.00000 -100.00000
If you need more information, please let me know.
I hope this helps,
Jochen
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.18
Locale: LANG=en_GB.iso885915, LC_CTYPE=en_GB.iso885915 (charmap=ISO-8859-15)
Versions of packages octave depends on:
ii octave2.1 1:2.1.73-8 GNU Octave language for numerical
octave recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
- To: 369545-close@bugs.debian.org
- Subject: Bug#369545: fixed in octave2.9-forge 2006.07.09+dfsg1-1
- From: Dirk Eddelbuettel <edd@debian.org>
- Date: Mon, 07 Aug 2006 02:32:46 -0700
- Message-id: <E1GA1Ta-0006zA-Gf@spohr.debian.org>
Source: octave2.9-forge
Source-Version: 2006.07.09+dfsg1-1
We believe that the bug you reported is fixed in the latest version of
octave2.9-forge, which is due to be installed in the Debian FTP archive:
octave-forge_2006.07.09+dfsg1-1_all.deb
to pool/main/o/octave2.9-forge/octave-forge_2006.07.09+dfsg1-1_all.deb
octave2.9-forge_2006.07.09+dfsg1-1.diff.gz
to pool/main/o/octave2.9-forge/octave2.9-forge_2006.07.09+dfsg1-1.diff.gz
octave2.9-forge_2006.07.09+dfsg1-1.dsc
to pool/main/o/octave2.9-forge/octave2.9-forge_2006.07.09+dfsg1-1.dsc
octave2.9-forge_2006.07.09+dfsg1-1_i386.deb
to pool/main/o/octave2.9-forge/octave2.9-forge_2006.07.09+dfsg1-1_i386.deb
octave2.9-forge_2006.07.09+dfsg1.orig.tar.gz
to pool/main/o/octave2.9-forge/octave2.9-forge_2006.07.09+dfsg1.orig.tar.gz
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 369545@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Dirk Eddelbuettel <edd@debian.org> (supplier of updated octave2.9-forge package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Wed, 2 Aug 2006 22:18:41 -0500
Source: octave2.9-forge
Binary: octave-forge octave2.9-forge
Architecture: source i386 all
Version: 2006.07.09+dfsg1-1
Distribution: unstable
Urgency: low
Maintainer: Debian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Changed-By: Dirk Eddelbuettel <edd@debian.org>
Description:
octave-forge - Contributed functions for GNU Octave (2.1 branch)
octave2.9-forge - Contributed functions from the GNU Octave Repository
Closes: 29539 352150 369545 376215 378171
Changes:
octave2.9-forge (2006.07.09+dfsg1-1) unstable; urgency=low
.
[ Thomas Weber ]
* Repackaged the upstream source; removed nonfree/splines/gcvsplf.f and
its license file. This should not have any influence on end users, as
we never built this part. This change brought to you by
Joerg 'Eagle Eye' Jaspert ;)
* This upload still (Closes: #376215, #378171, #352150, #29539, #369545)
.
[ Dirk Eddelbuettel ]
* Built and uploaded while Rafael is travelling
* debian/control: Added myself to Uploaders, feel free to remove again
* Removed .svn directories from debian/ and debian/patches for lintian
Files:
22b7443aa201a1d76487c39969e150e9 1090 math optional octave2.9-forge_2006.07.09+dfsg1-1.dsc
62790494e09a9a4504f6ae4f1da9f99d 3347870 math optional octave2.9-forge_2006.07.09+dfsg1.orig.tar.gz
b1cb9a6a24a86bbebbdec99603dcfb7d 15083 math optional octave2.9-forge_2006.07.09+dfsg1-1.diff.gz
10efc234a99e226cc8447bafa0ffb0ae 115358 math optional octave-forge_2006.07.09+dfsg1-1_all.deb
4c7c84750ad097012cdf0c4f675b4f56 2653008 math optional octave2.9-forge_2006.07.09+dfsg1-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFE0XB+CZSR95Gw07cRAgBNAJ4+FP61vHL0uCWJjuDjFOP5yOPa0wCeNbYO
XVVqqssrMxAc5ShQFA71o5M=
=DIi6
-----END PGP SIGNATURE-----
--- End Message ---