[Boost-bugs] [Boost C++ Libraries] #5515: Asio handle_read this=0x0 in http server3 example

Subject: [Boost-bugs] [Boost C++ Libraries] #5515: Asio handle_read this=0x0 in http server3 example
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-05-03 08:10:13


#5515: Asio handle_read this=0x0 in http server3 example
-------------------------------------+--------------------------------------
 Reporter: matthijs@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost Development Trunk | Severity: Regression
 Keywords: |
-------------------------------------+--------------------------------------
 Hello,

 When compiling example http/server3 then I get a segmentation fault. GDB
 gives
 the following trace:
 {{{
 #0 0x000000000040e2a2 in http::server3::request_parser::parse<char*> (
    this=0x2078, req=..., begin=0x48 <Address 0x48 out of bounds>,
    end=0x273 <Address 0x273 out of bounds>) at request_parser.hpp:42
 #1 0x000000000040743e in http::server3::connection::handle_read
 (this=0x0,
    e=..., bytes_transferred=555) at connection.cpp:48
 }}}
 As you see the 'this=0x0' in #1 is not correct I think. I think this has
 to do with the
 internals in Asio but I'm not sure.

 I'm using g++ 4.6 in combination with boost trunk. I'm not able to
 reproduce this
 with boost 1.46.1.

 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)

 Regards,

 Matthijs Möhlmann

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5515>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC