[Scipy-tickets] [SciPy] #1523: another Arpack crash on OS X python 2.7, 64-bit

SciPy Trac scipy-tickets@scipy....
Fri Oct 7 16:56:29 CDT 2011


#1523: another Arpack crash on OS X python 2.7, 64-bit
---------------------------------+------------------------------------------
 Reporter:  rgommers             |       Owner:  wnbell
     Type:  defect               |      Status:  new   
 Priority:  highest              |   Milestone:  0.10.0
Component:  scipy.sparse.linalg  |     Version:  0.9.0 
 Keywords:  arpack, segfault     |  
---------------------------------+------------------------------------------

Comment(by rgommers):

 The last function in the traceback is cnaupd, which calls slamch.
 http://developer.apple.com/hardwaredrivers/ve/errata.html#fortran_conventions
 has a note on this:
 {{{
 In MacOS X Release 10.3, LAPACK thread-safety is greatly enhanced.
 Applications that intend to call the LAPACK APIs from multiple threads
 must ensure that the following two initialization calls are completed
 before commencing simultaneous execution of LAPACK routines.

 In C:

     extern double slamch_(char *), dlamch_(char *);

     (void) slamch_("e");
     (void) dlamch_("e");

 In FORTRAN:

     REAL A, SLAMCH
     DOUBLE PRECISION D, DLAMCH
     EXTERNAL SLAMCH, DLAMCH

     A = SLAMCH('e')
     D = DLAMCH('e')
 }}}
 Looks like this isn't done and the SWIG wrappers in sparse seem to allow
 threaded calls.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1523#comment:10>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list