bugGNU Octave - Bugs: bug #37543, x=A\b produces "bus...

 
 

bug #37543: x=A\b produces "bus error" and crash

Submitter:  None
Submitted:  Thu 11 Oct 2012 06:38:17 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Works For Me Assigned to:  None
Originator Name:  Mahesh Sivasambu Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.6.2
Operating System:  * Mac OS Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 Oct 2012 12:19:41 PM UTC, comment #2: 



The suggestion that linking to the Apple-supplied framework Accelerate is broken seems to be right because the problem vanished if framework Accelerate was substituted by GotoBLAS (keeping all else the same). Thanks very much for this suggestion.

For speed though, it seems better to link to framework Accelerate. The suggestion to force m32 did not work ... configure encountered some troubles and stopped.

Thanks very much again.


Mahesh Sivasambu <smahesh>
Thu 11 Oct 2012 08:48:17 AM UTC, comment #1: 

your example works for me in both Octave 3.6.x
and 3.7.x on MacOSX 10.6.8.


>> load Axbx.mat
>> x = Ax \ bx;
>> version
ans = 3.7.0+


This does not look like an Octave bug.

I suspect the problem is with your local installation, most likely incorrect blas/lapack linking.

You might want to try building a 32 bit binary with something like


./configure OPTFLAGS="-m32 ..." LDFLAGS="-m32 ..." ...


If the above does not work, please move this discussion to the help list <help@octave.org> and post more info about how you built Octave.

Carlo de Falco <cdf>
Group Member
Thu 11 Oct 2012 06:38:17 AM UTC, original submission:  

The following matrix operation causes octave to crash:


abc:~> octave
GNU Octave, version 3.6.2
Copyright (C) 2012 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "x86_64-apple-darwin10.2.0".

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

Read http://www.octave.org/bugs.html to learn how to submit bug reports.

For information about changes from previous versions, type `news'.

Thu Oct 11 11:15:44 zemme2.local octave[48271] <Error>: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
warning: no graphical display found
octave:1> load "Axbx.mat"
octave:2> Ax \ bx
panic: Bus error -- stopping myself...
attempting to save variables to `octave-core'...
save to `octave-core' complete
Bus error


Axbx.mat is also attached with this bug report. This problem does not arise if Ax were replaced by some other matrix, i.e., Ax\bx works just fine for most matrices Ax.

octave run within gdb produces the following output:

octave:1> load "Axbx.mat"
octave:2> x = Ax \ bx

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00007fff5fc00000
0x00007fff801e6cba in s_cat ()
(gdb)


I am running octave-3.6.2 compiled from source. The configure command was:

$ sudo ./configure LDFLAGS=-L/usr/local/lib/ -lmetis -lgfortran -lf2c CFLAGS=-I/usr/local/include CPPFLAGS=-pthread -I/usr/local/include FF=gfortran --with-blas=-ldotwrp -Wl,-framework -Wl,Accelerate --with-lapack=-ldotwrp -Wl,-framework -Wl,Accelerate --disable-docs --without-hdf5 --without-opengl


and uname -a produces
Darwin zemme2.local 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov  3 23:08:29 PST 2009; root:xnu-1486.2.11~3/RELEASE_I386 i386

I would greatly appreciate any help with this problem.

Mahesh

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26736:  Axbx.mat added by None (5KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by smahesh (Posted a comment)
  • -email is unavailable- added by cdf (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-10-11 cdf StatusNone Works For Me
        Open/ClosedOpen Closed
        Summaryx=A\\b produces &quot;bus error&quot; and crash x=A\b produces "bus error" and crash
    2012-10-11 None Attached File- Added Axbx.mat, #26736

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code