Boost C++ Libraries: Ticket #6025: BOOST_REQUIRE(false) causes core dump under Cygwin https://svn.boost.org/trac10/ticket/6025 <p> With the Cygwin package for Boost 1.46.1, BOOST_REQUIRE(false) from Boost.Test causes a core dump. This problem does not exist under OS X, Ubuntu, or CentOS. Because of extensive difficulties using Boost libraries built from source under Cygwin, I have not been able to test this with other versions of Boost. Please find the sample code attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6025 Trac 1.4.3 neil.steiner@… Fri, 14 Oct 2011 16:08:15 GMT attachment set https://svn.boost.org/trac10/ticket/6025 https://svn.boost.org/trac10/ticket/6025 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_require_cygwin_error.cpp</span> </li> </ul> <p> Sample code demonstrating the error </p> Ticket neil.steiner@… Fri, 14 Oct 2011 19:05:02 GMT <link>https://svn.boost.org/trac10/ticket/6025#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6025#comment:1</guid> <description> <p> With the help of some preprocessing, I was able to determine that the core dump occurs in line 372 of boost/test/impl/test_tools.ipp, when execution_aborted() is thrown. Isn't there supposed to be something in the test framework that catches these exceptions, aborts the current test, and continues executing any remaining tests? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Mon, 17 Oct 2011 05:36:34 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6025#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6025#comment:2</guid> <description> <p> I cannot reproduce this. What compiler are you using with cygwin? What command line are you using? </p> </description> <category>Ticket</category> </item> <item> <author>neil.steiner@…</author> <pubDate>Mon, 17 Oct 2011 14:06:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6025#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6025#comment:3</guid> <description> <p> The compiler (installed directly with Cygwin setup, not compiled from source) is: gcc (GCC) 4.5.3 </p> <p> The command line is: gcc -o boost_require boost_require_cygwin_error.cpp -I/usr/include/boost -L/usr/lib/boost -lboost_unit_test_framework -lstdc++ </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Gennadiy Rozental</dc:creator> <pubDate>Sun, 23 Oct 2011 20:13:38 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/6025#comment:4 https://svn.boost.org/trac10/ticket/6025#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 was able to reproduce it with your command line, the only problem is that gcc is C compiler - not C++. switch to g++-4 and it works fine. </p> Ticket neil.steiner@… Tue, 25 Oct 2011 15:35:39 GMT <link>https://svn.boost.org/trac10/ticket/6025#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6025#comment:5</guid> <description> <p> Thank you. Based on your comment, I found out that if I pass '-shared-libgcc' to gcc, the code runs correctly. </p> </description> <category>Ticket</category> </item> </channel> </rss>