title: SEG fault in async_read_until()
body: <p>I am facing an issue in reading through boost::asio::async_read_until(). The server code I have been using is as follows:</p>
  
  <pre><code>boost::asio::streambuf buffer;
      boost::asio::async_read_until(socket_,buffer,DELIMITER,boost::bind(
                                                        &amp;chat_session::handle_read_body,
                                                        shared_from_this(),
                                                        placeholders::error,
                                                        placeholders::bytes_transferred()
                                                       )
                                );
  
  void chat_session::handle_read_body(const boost::system::error_code&amp; error,std::size_t bytes_transferred)
  {
  
      FILE_LOG(logINFO)&lt;&lt;"Entry chat_session::handle_read_body\n";
      FILE_LOG(logINFO)&lt;&lt;"Bytes Received:\t"&lt;&lt;bytes_transferred&lt;&lt;endl;
  }
  </code></pre>
  
  <p>When my client send some data with delimiter, the server comes up with a dialog for segmentation fault and the file in the background opened is read_until.hpp.The control does not come to the handle_read_body() function.</p>
  
  <p>Please help!</p>