[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38575] crash on lapack error if libraries bui
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #38575] crash on lapack error if libraries built with -Bsymbolic |
Date: |
Fri, 22 Mar 2013 23:56:26 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22 |
URL:
<http://savannah.gnu.org/bugs/?38575>
Summary: crash on lapack error if libraries built with
-Bsymbolic
Project: GNU Octave
Submitted by: mtmiller
Submitted on: Fri 22 Mar 2013 07:56:24 PM EDT
Category: Configuration and Build System
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Crash
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Octave crashes, or rather exits from within the BLAS or LAPACK libraries, when
those libraries are linked with the -Bsymbolic or -Bsymbolic-functions linker
options. The entire Ubuntu distribution is built by default with
-Bsymbolic-functions, for example.
The problem is that Octave expects to be able to override the XERBLA error
handler function by defining its own copy and linking it first so it takes
precedence over BLAS and LAPACK's own copies. This has no effect when the
LAPACK shared library is linked using -Bsymbolic-functions.
The attached program (modified from a snippet posted by jwe in a different bug
report) shows the difference between Debian and Ubuntu, both with LAPACK
version 3.4.2:
address@hidden:~$ gfortran -o xerbla-test xerbla-test.f -lblas -llapack
address@hidden:~$ ./xerbla-test
In do-nothing xerbla
-4
NaN 0.0000000000000000
NaN
address@hidden:~$ gfortran -o xerbla-test xerbla-test.f -lblas -llapack
address@hidden:~$ ./xerbla-test
** On entry to DLASCL parameter number 4 had an illegal value
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 22 Mar 2013 07:56:24 PM EDT Name: xerbla-test.f Size: 789B By:
mtmiller
<http://savannah.gnu.org/bugs/download.php?file_id=27663>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38575>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38575] crash on lapack error if libraries built with -Bsymbolic,
Mike Miller <=