[Boost-bugs] [Boost C++ Libraries] #11823: Exception safety problems in the epoll based implementation of async_accept

Subject: [Boost-bugs] [Boost C++ Libraries] #11823: Exception safety problems in the epoll based implementation of async_accept
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-11-26 10:08:59


#11823: Exception safety problems in the epoll based implementation of async_accept
-------------------------------------------+------------------------------
 Reporter: Sorin Fetche <sorin.fetche@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.59.0
 Severity: Problem | Keywords: exception safety
-------------------------------------------+------------------------------
 The implementation of boost::asio::ip::tcp::acceptor::async_accept fails
 to handle memory allocation
 failures in certain conditions when using the epoll based reactor.

 The attached program (test_program.zip) reproduces the failures.
 They reproduce with Boost 1.59 as well as 1.57 when run on a Linux machine
 (and using the epoll based implementation).

 Examples of runs of the test program compiled with GCC 6.0 and Boost 1.59
 can be found on the
 Wandbox online compiler
 (links in the attached wandbox.txt file).

 Attached is also a patch with a tentative fix that highlights the two
 places that cause the test program
 to fail. Even though it was created against the code from Boost 1.57, it
 applies to the code from 1.59.

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