Re: [Boost-bugs] [Boost C++ Libraries] #2347: 'Bus error' on OS X when combining ublas and thread

Subject: Re: [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-29 23:35:40


#2347: 'Bus error' on OS X when combining ublas and thread
-------------------------------+--------------------------------------------
  Reporter: dphilp_at_[hidden] | Owner: vladimir_prus
      Type: Bugs | Status: new
 Milestone: Boost 1.37.0 | Component: build
   Version: Boost 1.36.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment(by Dave Philp <dphilp_at_[hidden]>):

> Do I understand correctly that if you build in debug mode, application
 works, but if you strip it with just 'strip', it crashes?

 Correct.

> What happens if you strip with "strip -u -r"?

 Bus error.

> Does the application actually work if stripped with "strip -S -x"?

 Well, the application above doesn't actually do much! But it doesn't
 crash. If I add in a few headers and send the cm matrix to std::cout,
 everything works as expected:

 {{{
 #include <boost/thread.hpp>
 #include <boost/numeric/ublas/matrix_sparse.hpp>
 #include <boost/numeric/ublas/io.hpp>
 #include <iostream>

 int main (int argc, char * argv[])
 {
   boost::numeric::ublas::coordinate_matrix<double> cm;
   cm.resize(3, 3, false);
   cm(0, 0) = 1;
   cm(1, 1) = 2;
   cm(2, 2) = 3;
   std::cout << cm << std::endl;
   return 0;
 }
 }}}

 In the above, if you compile and run with bjam debug and strip (no
 options), it crashes before giving any output. (If you comment out
 #include boost/thread.hpp, it works as expected.)

-- 
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2347#comment:5>
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