Boost logo

Boost Users :

Subject: [Boost-users] Asio handle_read this=0x0 in http server3 example
From: Matthijs Möhlmann (matthijs_at_[hidden])
Date: 2011-04-29 04:46:49


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.


Matthijs Möhlmann

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at