Boost C++ Libraries: Ticket #5926: Boost syn() seg fault https://svn.boost.org/trac10/ticket/5926 <p> Program terminated with signal 11, Segmentation fault. <a class="missing ticket">#0</a> 0x0000000000437b4b in boost::asio::basic_socket_streambuf&lt;boost::asio::ip::tcp, boost::asio::stream_socket_service&lt;boost::asio::ip::tcp&gt; &gt;::close (this=0x18) </p> <blockquote> <p> at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_streambuf.hpp:144 </p> </blockquote> <p> 144 sync(); (gdb) bt <a class="missing ticket">#0</a> 0x0000000000437b4b in boost::asio::basic_socket_streambuf&lt;boost::asio::ip::tcp, boost::asio::stream_socket_service&lt;boost::asio::ip::tcp&gt; &gt;::close (this=0x18) </p> <blockquote> <p> at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_streambuf.hpp:144 </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> 0x0000000000437bdb in boost::asio::basic_socket_iostream&lt;boost::asio::ip::tcp, boost::asio::stream_socket_service&lt;boost::asio::ip::tcp&gt; &gt;::close (this=0x0) </p> <blockquote> <p> at /installs/boost/boost_1_39_0/include/boost-1_39/boost/asio/basic_socket_iostream.hpp:129 </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> 0x00000000004c0679 in Service::doJob (this=0x1fec6370, serviceJob=0x1fea9270) at ../src/Service.cpp:770 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> 0x00000000004dc285 in ServiceJob::doWork (this=0x1fea9270) at ../src/ServiceJob.cpp:110 <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> 0x00000000004de016 in serviceJobThread () at ../src/ServiceManager.cpp:578 <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> 0x00000000004e5363 in boost::detail::thread_data&lt;void (*)()&gt;::run (this=0x1feb9050) at /installs/boost/boost_1_39_0/include/boost-1_39/boost/thread/detail/thread.hpp:56 <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> 0x00000000004f1d80 in thread_proxy () <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> 0x000000322b20673d in start_thread () from /lib64/libpthread.so.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> 0x000000322a6d44bd in clone () from /lib64/libc.so.6 </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5926 Trac 1.4.3 Steven Watanabe Sun, 16 Oct 2011 17:52:38 GMT component changed; owner set https://svn.boost.org/trac10/ticket/5926#comment:1 https://svn.boost.org/trac10/ticket/5926#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> <p> It's hard to tell what's going on without a test case. </p> Ticket chris_kohlhoff Tue, 29 May 2012 01:44:24 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5926#comment:2 https://svn.boost.org/trac10/ticket/5926#comment:2 <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">invalid</span> </li> </ul> <p> The tcp::socket::iostream pointer is NULL in your code. I can't see how this is a problem in asio, but please reopen this ticket if you can supply a test program. </p> Ticket