Boost C++ Libraries: Ticket #4768: MinGW: SIGSEGV in refcount_ptr (exception.hpp:38) https://svn.boost.org/trac10/ticket/4768 <p> copy_exception_test fails (<a href="http://www.boost.org/development/tests/trunk/developer/output/MinGW-32%20jc-bell-com-boost-bin-v2-libs-exception-test-copy_exception_test-test-gcc-mingw-4-4-0-debug-link-static-threading-multi.html">see here</a>, current as of 2010/10/21): </p> <pre class="wiki">Run [2010-10-21 22:46:51 UTC]: fail pure virtual method called 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;err&gt;' what(): std::exception EXIT STATUS: 3 </pre><p> gdb shows me this: </p> <pre class="wiki">Program received signal SIGSEGV, Segmentation fault. [Switching to thread 4076.0x1278] 0x00415975 in refcount_ptr (this=0x38184, x=@0x4ca534) at ../boost/exception/exception.hpp:38 38 px_(x.px_) (gdb)bt [backtrace] #0 0x00415975 in refcount_ptr (this=0x38184, x=@0x4ca534) at ../boost/exception/exception.hpp:38 #1 0x00421cdb in exception (this=0x38180) at ../boost/exception/exception.hpp:199 #2 0x00413183 in clone_impl (this=0x38178) at ../boost/exception/exception.hpp:405 #3 0x004252c0 in boost::exception_detail::clone_impl&lt;err&gt;::clone ( this=0x3c200) at ../boost/exception/exception.hpp:424 #4 0x00417226 in boost::exception_detail::current_exception_impl () at ../boost/exception/detail/exception_ptr.hpp:302 #5 0x0041c521 in boost::current_exception () at ../boost/exception/detail/exception_ptr.hpp:403 #6 0x00411f54 in boost::copy_exception&lt;err&gt; (e=@0x2acfeb0) at ../boost/exception/detail/exception_ptr.hpp:48 #7 0x00401411 in producer (f=@0x16cfed8) at ..\libs\exception\test\copy_exception_test.cpp:81 #8 0x0041d523 in boost::_bi::list1&lt;boost::reference_wrapper&lt;future&gt; &gt;::operator ()&lt;void (*)(future&amp;), boost::_bi::list0&gt; (this=0x253244, f=@0x253240, a=@0x2acff27) at ../boost/bind/bind.hpp:253 #9 0x0041d57e in boost::_bi::bind_t&lt;void, void (*)(future&amp;), boost::_bi::list1&lt; boost::reference_wrapper&lt;future&gt; &gt; &gt;::operator() (this=0x253240) at ../boost/bind/bind_template.hpp:20 #10 0x0041d920 in boost::detail::thread_data&lt;boost::_bi::bind_t&lt;void, void (*)(f uture&amp;), boost::_bi::list1&lt;boost::reference_wrapper&lt;future&gt; &gt; &gt; &gt;::run ( this=0x253220) at ../boost/thread/detail/thread.hpp:61 #11 0x00401c25 in thread_start_function (param=0x253220) at ..\libs\thread\src\win32\thread.cpp:168 #12 0x77c3a3b0 in msvcrt!_endthreadex () from C:\WINDOWS\system32\msvcrt.dll #13 0x7c80b729 in KERNEL32!GetModuleFileNameA () from C:\WINDOWS\system32\kernel32.dll #14 0x00000000 in ?? () </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4768 Trac 1.4.3 Marshall Clow Fri, 12 Nov 2010 04:23:57 GMT <link>https://svn.boost.org/trac10/ticket/4768#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4768#comment:1</guid> <description> <p> Looking at the test matrix; this is passing for mingw-gcc 4.4.3, failing on 4.4.5, and passing on 4.5.1. </p> <p> [ The 4.4.3 and 4.4.5 tests are both run by the same tester, btw ] </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Fri, 12 Nov 2010 17:26:33 GMT</pubDate> <title>severity, milestone changed https://svn.boost.org/trac10/ticket/4768#comment:2 https://svn.boost.org/trac10/ticket/4768#comment:2 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">Boost-1.45.0</span> → <span class="trac-field-new">To Be Determined</span> </li> </ul> <p> Jim, it looks like we don't have a repro of this bug on the release branch. We're not testing that platform/compiler combination there. Can you see if you can reproduce the issue on release? As it stands, I can't justify holding up 1.45 for this issue, so I'm knocking it's severity down to "Problem" and changing the milestone to "TBD". </p> Ticket Emil Dotchevski Wed, 20 Jun 2012 00:12:26 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4768#comment:3 https://svn.boost.org/trac10/ticket/4768#comment:3 <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">fixed</span> </li> </ul> <p> Just tested on MinGW, gcc 4.6.1, all tests pass. Marking this bug as resolved, please reopen if the crash reoccurs (if I have to speculate it was a compiler bug.) </p> Ticket