[Boost-bugs] [Boost C++ Libraries] #7913: Dead-lock in Boost.Asio with gcc 4.7 in C++11 mode

Subject: [Boost-bugs] [Boost C++ Libraries] #7913: Dead-lock in Boost.Asio with gcc 4.7 in C++11 mode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-21 19:14:03


#7913: Dead-lock in Boost.Asio with gcc 4.7 in C++11 mode
--------------------------------------+-------------------------------------
 Reporter: mathias@… | Owner: chris_kohlhoff
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
  Version: Boost 1.52.0 | Severity: Problem
 Keywords: |
--------------------------------------+-------------------------------------
 There seems to be a dead-lock in Boost.Asio when using it with gcc 4.7 in
 C++ mode. Noticed that issue while using the Pion Network Library with
 C++11 code: cloudmeter/pion at github, issue 9 (spam detector's captcha is
 broken).

 {{{
 #include <iostream>

 #include <pion/process.hpp>
 #include <pion/http/server.hpp>

 int main(int argc, char *argv[]) {
     pion::process::initialize();

     try {
         boost::asio::ip::tcp::endpoint
 endpoint(boost::asio::ip::tcp::v4(), 5000);
         pion::http::server server(endpoint);
         server.start();
         pion::process::wait_for_shutdown();
     } catch (std::exception& e) {
         std::cerr << pion::diagnostic_information(e) << std::endl;
         return 1;
     }

     return 0;
 }
 }}}

 Defining `BOOST_ASIO_DISABLE_MOVE` and `BOOST_ASIO_DISABLE_STD_ATOMIC`
 hides the issue.

 Sadly I don't have enough knowledge about Boost.Asio or Pion that I could
 start investigation myself, but maybe you can give me a few hints were to
 start looking?

 Thank you,
 Mathias

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7913>
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:11 UTC