panic: Bus error -- stopping myself...

John W. Eaton jwe at bevo.che.wisc.edu
Mon Feb 4 11:15:33 CST 2008


On  4-Feb-2008, David Bateman wrote:

| Michael Friedlander wrote:
| > Thanks for the quick response, David.  Below is some code that
| > consistently generates a panic error.  In case it helps, this version
| > of Octave was compiled by Fink.
| >
| > Michael
| >
| > -------------------
| > m = 100;
| > A = [];
| > for  i = 1:100
| >    a = randn(m,1);
| >    b = randn(m,1);
| >    A = [A a];
| >    x = A \ b;
| > end
| > -------------------
| >
| > >> test
| > octave(5703) malloc: *** error for object 0x3b7d200: incorrect
| > checksum for freed object - object was probably modified after being
| > freed.
| > *** set a breakpoint in malloc_error_break to debug
| > octave(5703) malloc: *** error for object 0x3b7d200: incorrect
| > checksum for freed object - object was probably modified after being
| > freed.
| > *** set a breakpoint in malloc_error_break to debug
| > panic: Bus error -- stopping myself...
| > Bus error
| 
| Ok, I can generate the error from this.. I'll try and debug it later tonight

First, see:

  https://www.cae.wisc.edu/pipermail/bug-octave/2008-January/004634.html

I think the problem is that the size of the workspace returned from
the query call to Lapack is wrong.  There is no clear statement of
what the workspace requirement is for the function we are using.  So
someone needs to dig that information out of the code so we can
calculate the size instead of asking Lapack to give us the value.  I
have no patience for doing that, so I'm waiting for a patch.

jwe


More information about the Bug-octave mailing list