Boost C++ Libraries: Ticket #7292: exception thread_resource_error throw by boost_thread not seen exe (gcc-mingw-4.6.0) https://svn.boost.org/trac10/ticket/7292 <p> The following throw exception </p> <pre class="wiki"> boost::throw_exception(thread_resource_error(system::errc::resource_deadlock_would_occur, "boost thread: trying joining itself")); </pre><p> thrown by boost_thread when a thread tries to join itself is not seen by the executable associated to the test thread<span class="underline">join_p.test </span></p> <pre class="wiki">gcc.link ..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.exe testing.capture-output ..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.run ====== BEGIN OUTPUT ====== This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. terminate called after throwing an instance of 'boost::exception_detail::clone_impl&lt;boost::exception_detail::error_info_injector&lt;boost::thread_resource_error&gt; &gt;' what(): boost thread: trying joining itself: Trop de fichiers ouverts pour un partage EXIT STATUS: 3 ====== END OUTPUT ====== set PATH=d:\boost\trunk\bin.v2\libs\chrono\build\gcc-mingw-4.6.0\debug\threading-multi;d:\boost\trunk\bin.v2\libs\system\build\gcc-mingw-4.6.0\debug\threading-multi;d:\boost\trunk\bin.v2\libs\thread\build\gcc-mingw-4.6.0\debug\threading-multi;c:\MINGW\gcc-4.6.0S\bin;c:\MINGW\gcc-4.6.0S\lib;c:\MINGW\gcc-4.6.0S\lib32;c:\MINGW\gcc-4.6.0S\lib64;%PATH% "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.exe" &gt; "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.output" 2&gt;&amp;1 set status=%ERRORLEVEL% echo. &gt;&gt; "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.output" echo EXIT STATUS: %status% &gt;&gt; "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.output" if %status% EQU 0 ( copy "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.output" "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.run" ) set verbose=0 if %status% NEQ 0 ( set verbose=1 ) if %verbose% EQU 1 ( echo ====== BEGIN OUTPUT ====== type "..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.output" echo ====== END OUTPUT ====== ) exit %status% ...failed testing.capture-output ..\..\..\bin.v2\libs\thread\test\thread__join_p.test\gcc-mingw-4.6.0\debug\threading-multi\thread__join_p.run... </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7292 Trac 1.4.3 viboes Sun, 02 Sep 2012 08:41:09 GMT owner, status changed https://svn.boost.org/trac10/ticket/7292#comment:1 https://svn.boost.org/trac10/ticket/7292#comment:1 <ul> <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> </ul> Ticket viboes Fri, 02 Nov 2012 15:28:48 GMT status changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/7292#comment:2 https://svn.boost.org/trac10/ticket/7292#comment:2 <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">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> <p> This error has been fixed when moving the throw exception from the binary to the header files. </p> Ticket