Boost C++ Libraries: Ticket #2798: crash upon test framework deallocation on cygwin gcc3.4.4 https://svn.boost.org/trac10/ticket/2798 <p> Attached test file triggers a crash when built and run on cygwin using gcc 3.4.4. It seems it comes from the deallocation/unregistering of test cases in ~framework. Commenting out the code in framework::clear is the only workaround I found for now. </p> <p> Boost.Test is built from boost_1_38_0.tar.gz2 using : $ ./tools/jam/src/bin.cygwinx86/bjam.exe --toolset=gcc --build-type=complete link=static runtime-link=shared threading=multi stage --with-test </p> <p> And then the test case is built with : $ g++ -o crash.exe -I"path_to_boost" -L"path_to_boost/stage/lib" -lboost_unit_test_framework-gcc34-mt-d-1_38 crash.cpp </p> <p> And run : $./crash.exe Running 33 test cases... </p> <p> <strong>* No errors detected </strong></p> <blockquote> <p> 10 [main] crash 2812 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack) </p> </blockquote> <p> Segmentation fault (core dumped) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2798 Trac 1.4.3 m.champlon@… Wed, 25 Feb 2009 11:55:57 GMT attachment set https://svn.boost.org/trac10/ticket/2798 https://svn.boost.org/trac10/ticket/2798 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">crash.cpp</span> </li> </ul> Ticket anonymous Wed, 25 Feb 2009 11:57:49 GMT component changed https://svn.boost.org/trac10/ticket/2798#comment:1 https://svn.boost.org/trac10/ticket/2798#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">test</span> </li> </ul> Ticket atara-y@… Sat, 21 Mar 2009 22:24:20 GMT <link>https://svn.boost.org/trac10/ticket/2798#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2798#comment:2</guid> <description> <p> On Cygwin 1.5.25 and gcc 3.4.4, using the single-header variant of the UTF, the same result is reproduced. </p> <ul><li>Add #include &lt;boost/test/included/unit_test.hpp&gt; </li><li>Do not link the library.<br />g++ -o crash.exe -I"path_to_boost" crash.cpp </li></ul><p> Another workaround I found is to make test_unit::~test_unit() virtual. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kevin Sopp</dc:creator> <pubDate>Thu, 14 May 2009 14:03:55 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/2798#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2798#comment:3</guid> <description> <p> This could be a duplicate of <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2647" title="#2647: Patches: valgrind error with Boost.Test (closed: fixed)">#2647</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Tue, 16 Jun 2009 03:49:47 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2798#comment:4 https://svn.boost.org/trac10/ticket/2798#comment:4 <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">worksforme</span> </li> </ul> <p> I can't reproduce this issue neither with link nor in single header version. I was using very similar setup with trunk </p> Ticket