Boost C++ Libraries: Ticket #5515: Asio handle_read this=0x0 in http server3 example https://svn.boost.org/trac10/ticket/5515 <p> Hello, </p> <p> When compiling example http/server3 then I get a segmentation fault. GDB gives the following trace: </p> <pre class="wiki">#0 0x000000000040e2a2 in http::server3::request_parser::parse&lt;char*&gt; ( this=0x2078, req=..., begin=0x48 &lt;Address 0x48 out of bounds&gt;, end=0x273 &lt;Address 0x273 out of bounds&gt;) at request_parser.hpp:42 #1 0x000000000040743e in http::server3::connection::handle_read (this=0x0, e=..., bytes_transferred=555) at connection.cpp:48 </pre><p> As you see the 'this=0x0' in <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> is not correct I think. I think this has to do with the internals in Asio but I'm not sure. </p> <p> I'm using g++ 4.6 in combination with boost trunk. I'm not able to reproduce this with boost 1.46.1. </p> <p> When using g++ 4.5 and boost-trunk it works. (I already sent a message to the boost-users mailinglist but didn't got any response on that) </p> <p> Regards, </p> <p> Matthijs Möhlmann </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5515 Trac 1.4.3 matthijs@… Tue, 03 May 2011 10:11:45 GMT <link>https://svn.boost.org/trac10/ticket/5515#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5515#comment:1</guid> <description> <p> I use the following options to compile: </p> <pre class="wiki">-std=c++0x -g -Wall -Werror -I/usr/src/boost-trunk </pre><p> Hopefully that helps in reproducing the error. </p> <p> Regards, </p> <p> Matthijs Möhlmann </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Thu, 05 May 2011 13:22:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5515#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5515#comment:2</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/71738" title="Fix move-related bug in strand implementation. Refs #5515. ">[71738]</a>) Fix move-related bug in strand implementation. Refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5515" title="#5515: Bugs: Asio handle_read this=0x0 in http server3 example (closed: fixed)">#5515</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chris_kohlhoff</dc:creator> <pubDate>Mon, 06 Jun 2011 01:26:23 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5515#comment:3 https://svn.boost.org/trac10/ticket/5515#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> Fix merged to release branch in <a class="changeset" href="https://svn.boost.org/trac10/changeset/72428" title="Merge asio from trunk.">[72428]</a>. </p> Ticket