Subject: [Boost-bugs] [Boost C++ Libraries] #2347: 'Bus error' on OS X when combining ublas and thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-09-18 23:22:56
#2347: 'Bus error' on OS X when combining ublas and thread
------------------------------+---------------------------------------------
Reporter: dphilp_at_[hidden] | Type: Bugs
Status: new | Milestone: Boost 1.37.0
Component: None | Version: Boost 1.36.0
Severity: Problem | Keywords:
------------------------------+---------------------------------------------
The following code compiles but gives an error on OS X 10.5.5:
{{{
#include <boost/numeric/ublas/matrix_sparse.hpp>
#include <boost/thread.hpp>
int main (int argc, char * argv[])
{
boost::numeric::ublas::coordinate_matrix<double> cm;
cm.resize(3,3, false);
return 0;
}
}}}
Jamroot is:
{{{
lib boost_thread : : <file>/Users/djp/sg/sage-3.1.1/local/lib/boost
/libboost_thread-xgcc40-mt-1_36.a ;
exe ut
: main.cpp boost_thread
: <include>boost
;
}}}
The program does not crash if: (1) I don't link to boost.thread, or remove
boost/thread.hpp from main.cpp. (2) I don't 'strip' the executable before
running it.
The error is independent of whether I link statically or dynamically, and
whether I compile in 'debug' or 'release' mode. (Though it doesn't appear
in 'debug' mode unless I strip the executable myself.)
The error doesn't depend on coordinate matrix, it happens just the same if
I use a ublas::vector (and include the relevant header.)
Anyway, the above is about as small an example as I can figure out, and I
certainly don't have the skills to go any further.
-- Ticket URL: <http://svn.boost.org/trac/boost/ticket/2347> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC