Boost C++ Libraries: Ticket #5535: Assert after reloading multiple times a .so linked with the static build of Boost.Thread https://svn.boost.org/trac10/ticket/5535 <p> 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). </p> <p> 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. </p> <p> Test program output: </p> <p> ./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(&amp;internal_mutex)' failed. Aborted </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5535 Trac 1.4.3 sorin.fetche@… Thu, 12 May 2011 12:55:12 GMT attachment set https://svn.boost.org/trac10/ticket/5535 https://svn.boost.org/trac10/ticket/5535 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_program.zip</span> </li> </ul> Ticket viboes Sun, 11 Dec 2011 16:41:20 GMT keywords set https://svn.boost.org/trac10/ticket/5535#comment:1 https://svn.boost.org/trac10/ticket/5535#comment:1 <ul> <li><strong>keywords</strong> module added </li> </ul> Ticket viboes Sun, 11 Dec 2011 18:31:25 GMT keywords changed https://svn.boost.org/trac10/ticket/5535#comment:2 https://svn.boost.org/trac10/ticket/5535#comment:2 <ul> <li><strong>keywords</strong> leak added </li> </ul> Ticket Sorin Fetche <sorin.fetche@…> Fri, 06 Sep 2013 01:28:25 GMT <link>https://svn.boost.org/trac10/ticket/5535#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5535#comment:3</guid> <description> <p> In case it helps, the problem can be avoided, at least in boost 1.51, by compiling Boost.Thread with BOOST_THREAD_PATCH defined. That's because a fix for the issue is in the code already but is not enabled by default. </p> <p> If it doesn't cause any side effects, could this fix be enabled by default? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 07 Sep 2013 12:21:27 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5535#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5535#comment:4</guid> <description> <p> The patch was suggested for <a class="reopened ticket" href="https://svn.boost.org/trac10/ticket/3926" title="#3926: Bugs: thread_specific_ptr + dlopen library causes a SIGSEGV. (reopened)">#3926</a>, but as discussed on this ticket the patch is not enough. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 10 Sep 2013 19:26:14 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5535#comment:5 https://svn.boost.org/trac10/ticket/5535#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket