Boost C++ Libraries: Ticket #12013: F_pass and FArgs_pass tests segfault https://svn.boost.org/trac10/ticket/12013 <p> Both tests override the operator new and inside it, they use std::cout. </p> <p> It appears that in some cases the order of initialization (ostream vs. boost) order may be incorrect and the following exception occurs in ostream: </p> <p> Program received signal SIGSEGV, Segmentation fault. 0xb7f5a296 in std::ostream::sentry::sentry (this=0xbffffca8, <span class="underline">os=...) </span></p> <blockquote> <p> at libstdc++-v3/include/bits/ostream.tcc:51 </p> </blockquote> <p> 51 libstdc++-v3/include/bits/ostream.tcc: No such file or directory. (gdb) bt <a class="missing ticket">#0</a> 0xb7f5a296 in std::ostream::sentry::sentry (this=0xbffffca8, <span class="underline">os=...) </span></p> <blockquote> <p> at libstdc++-v3/include/bits/ostream.tcc:51 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> 0xb7f5b3ed in std::<span class="underline">ostream_insert&lt;char, std::char_traits&lt;char&gt; &gt; ( </span></p> <blockquote> <p> <span class="underline">out=..., </span>s=0x804ec76 "F_pass.cpp", <span class="underline">n=10) at libstdc++-v3/include/bits/ostream_insert.h:82 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> 0xb7f5b5d7 in std::operator&lt;&lt; &lt;std::char_traits&lt;char&gt; &gt; (<span class="underline">out=..., </span></p> <blockquote> <p> <span class="underline">s=&lt;optimized out&gt;) at libstdc++-v3/include/ostream:561 </span></p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> 0x0804afd7 in operator new(unsigned int) () <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4" title="#4: Bugs: any_ptr in any library documentation? (closed: Fixed)">#4</a> 0xb7fd0474 in boost::exception_ptr boost::exception_detail::get_static_exception_object&lt;boost::exception_detail::bad_alloc_&gt;() () </p> <blockquote> <p> from /lib/libboost_thread.so.1.58.0 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5" title="#5: Bugs: shared_ptr and self-owning objects (closed: Fixed)">#5</a> 0xb7fc644a in _GLOBAL<span class="underline">sub_I_thread.cpp () </span></p> <blockquote> <p> from /lib/libboost_thread.so.1.58.0 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6" title="#6: Bugs: tie in utility.hpp and tuple.hpp clash. (closed: Duplicate)">#6</a> 0xb7fd5e3e in <span class="underline">do_global_ctors_aux () from /lib/libboost_thread.so.1.58.0 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7" title="#7: Bugs: g++ 2.96 requires NO_STRINGSTREAM (closed: Fixed)">#7</a> 0xb7fc59c4 in _init () from /lib/libboost_thread.so.1.58.0 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/8" title="#8: Bugs: prop in undirected graph + out_edges (closed: Works For Me)">#8</a> 0xb7fff000 in ?? () from /lib/ld-linux.so.2 </span></p> <p> After commenting out the std::cout line, both tests pass. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12013 Trac 1.4.3 anonymous Mon, 22 Feb 2016 12:49:27 GMT <link>https://svn.boost.org/trac10/ticket/12013#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12013#comment:1</guid> <description> <p> Fixed backtrace: </p> <pre class="wiki">Program received signal SIGSEGV, Segmentation fault. 0xb7f5a296 in std::ostream::sentry::sentry (this=0xbffffca8, __os=...) at libstdc++-v3/include/bits/ostream.tcc:51 51 libstdc++-v3/include/bits/ostream.tcc: No such file or directory. (gdb) bt #0 0xb7f5a296 in std::ostream::sentry::sentry (this=0xbffffca8, __os=...) at libstdc++-v3/include/bits/ostream.tcc:51 #1 0xb7f5b3ed in std::__ostream_insert&lt;char, std::char_traits&lt;char&gt; &gt; ( __out=..., __s=0x804ec76 "F_pass.cpp", __n=10) at libstdc++-v3/include/bits/ostream_insert.h:82 #2 0xb7f5b5d7 in std::operator&lt;&lt; &lt;std::char_traits&lt;char&gt; &gt; (__out=..., __s=&lt;optimized out&gt;) at libstdc++-v3/include/ostream:561 #3 0x0804afd7 in operator new(unsigned int) () #4 0xb7fd0474 in boost::exception_ptr boost::exception_detail::get_static_exception_object&lt;boost::exception_detail::bad_alloc_&gt;() () from /lib/libboost_thread.so.1.58.0 #5 0xb7fc644a in _GLOBAL__sub_I_thread.cpp () from /lib/libboost_thread.so.1.58.0 #6 0xb7fd5e3e in __do_global_ctors_aux () from /lib/libboost_thread.so.1.58.0 #7 0xb7fc59c4 in _init () from /lib/libboost_thread.so.1.58.0 #8 0xb7fff000 in ?? () from /lib/ld-linux.so.2 </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 28 Feb 2016 18:20:53 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/12013#comment:2 https://svn.boost.org/trac10/ticket/12013#comment:2 <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> <p> Thanks for the report. Fortunately this is only a test issue. </p> Ticket viboes Sun, 28 Feb 2016 18:34:35 GMT milestone changed https://svn.boost.org/trac10/ticket/12013#comment:3 https://svn.boost.org/trac10/ticket/12013#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.61.0</span> </li> </ul> Ticket viboes Sat, 05 Mar 2016 09:23:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12013#comment:4 https://svn.boost.org/trac10/ticket/12013#comment:4 <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> </ul> <p> <a class="ext-link" href="https://github.com/boostorg/thread/commit/a45f36cbc68ef575f5d51b76a00a54033dfb2529"><span class="icon">​</span>https://github.com/boostorg/thread/commit/a45f36cbc68ef575f5d51b76a00a54033dfb2529</a> </p> Ticket