[Boost-bugs] [Boost C++ Libraries] #5535: Assert after reloading multiple times a .so linked with the static build of Boost.Thread

Subject: [Boost-bugs] [Boost C++ Libraries] #5535: Assert after reloading multiple times a .so linked with the static build of Boost.Thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-12 12:54:38


#5535: Assert after reloading multiple times a .so linked with the static build of
Boost.Thread
------------------------------------+---------------------------------------
 Reporter: sorin.fetche@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.46.1 | Severity: Problem
 Keywords: |
------------------------------------+---------------------------------------
 The attached test program shows that after a few hundred reloads of a
 shared library linked with the static build of Boost.Thread, an assert
 will be raised (gcc 4.4; boost 1.46.1).

 As a note, the test program demonstrates the usage of a shared library
 that exposes a C interface and is implemented using statically linked
 Boost libraries.


 Test program output:

 ./a.out
 Call: 0
 Call: 100
 Call: 200
 Call: 300
 Call: 400
 Call: 500
 a.out:
 /home/sfetche/local/boost/src/boost_1_46_1/boost/thread/pthread/condition_variable_fwd.hpp:46:
 boost::condition_variable::~condition_variable(): Assertion
 `!pthread_mutex_destroy(&internal_mutex)' failed.
 Aborted

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5535>
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:50:06 UTC