Boost C++ Libraries: Ticket #2470: Problem with threads started in a dynamically loaded bundle under Mac OS X https://svn.boost.org/trac10/ticket/2470 <p> The attached program (main.cpp) loads a bundle and calls the function exported herein. The code in the bundle (bundle.cpp) simply starts a thread, joins it and exits. Then the bundle is unloaded. After a few hundred of these cycles program crashes. </p> <p> To compile and create the bundle one might use the following command lines: </p> <pre class="wiki">g++ -x c++ -arch i386 -IPATH/TO/BOOST/HEADER -c bundle.cpp -o bundle.o mkdir -p bundle.plugin/Contents/MacOS g++ -o bundle.plugin/Contents/MacOS/bundle -LPATH/TO/BOOST/LIB -lboost_thread-xgcc40-mt-1_37 -arch i386 -bundle bundle.o </pre><p> and for the loader: </p> <pre class="wiki">g++ -x c++ -arch i386 -I/Developer/Headers/FlatCarbon/ -c main.cpp -o main.o g++ -o main -framework CoreFoundation -arch i386 main.o </pre><p> I reproduced this behavior with macosx 10.4 / 10.5 and boost 1.35/1.36/1.37/current trunk. My gcc version is 4.0.1. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2470 Trac 1.4.3 Daniel Fenner <dfenner@…> Mon, 03 Nov 2008 17:20:19 GMT attachment set https://svn.boost.org/trac10/ticket/2470 https://svn.boost.org/trac10/ticket/2470 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">main.cpp</span> </li> </ul> Ticket Daniel Fenner <dfenner@…> Mon, 03 Nov 2008 17:20:36 GMT attachment set https://svn.boost.org/trac10/ticket/2470 https://svn.boost.org/trac10/ticket/2470 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bundle.cpp</span> </li> </ul> Ticket viboes Sun, 11 Dec 2011 02:35:24 GMT <link>https://svn.boost.org/trac10/ticket/2470#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2470#comment:1</guid> <description> <p> Could we consider that this is a duplicate of <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> thread_specific_ptr + dlopen library causes a SIGSEGV, or vice versa? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 11 Dec 2011 02:35:46 GMT</pubDate> <title>owner, status, milestone changed; cc set https://svn.boost.org/trac10/ticket/2470#comment:2 https://svn.boost.org/trac10/ticket/2470#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">viboes</span> added </li> <li><strong>owner</strong> changed from <span class="trac-author">Anthony Williams</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.38.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> Ticket viboes Sun, 11 Dec 2011 18:19:12 GMT type changed https://svn.boost.org/trac10/ticket/2470#comment:3 https://svn.boost.org/trac10/ticket/2470#comment:3 <ul> <li><strong>type</strong> <span class="trac-field-old">Bugs</span> → <span class="trac-field-new">Feature Requests</span> </li> </ul> <p> Moved to Support request until resolution clarified </p> Ticket viboes Fri, 30 Dec 2011 23:19:39 GMT type changed https://svn.boost.org/trac10/ticket/2470#comment:4 https://svn.boost.org/trac10/ticket/2470#comment:4 <ul> <li><strong>type</strong> <span class="trac-field-old">Feature Requests</span> → <span class="trac-field-new">Support Requests</span> </li> </ul> Ticket viboes Sat, 07 Jan 2012 23:21:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/2470#comment:5 https://svn.boost.org/trac10/ticket/2470#comment:5 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> <p> Duplicate. <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> thread_specific_ptr + dlopen library causes a SIGSEGV, or vice versa? </p> Ticket