Boost C++ Libraries: Ticket #11823: Exception safety problems in the epoll based implementation of async_accept https://svn.boost.org/trac10/ticket/11823 <p> 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. </p> <p> 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). </p> <p> 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). </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11823 Trac 1.4.3 Sorin Fetche <sorin.fetche@…> Thu, 26 Nov 2015 10:10:11 GMT attachment set https://svn.boost.org/trac10/ticket/11823 https://svn.boost.org/trac10/ticket/11823 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test_program.zip</span> </li> </ul> Ticket Sorin Fetche <sorin.fetche@…> Thu, 26 Nov 2015 10:11:09 GMT attachment set https://svn.boost.org/trac10/ticket/11823 https://svn.boost.org/trac10/ticket/11823 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_asio_epoll_accept_exception_safety.patch</span> </li> </ul> Ticket Sorin Fetche <sorin.fetche@…> Thu, 26 Nov 2015 10:12:26 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11823#comment:1 https://svn.boost.org/trac10/ticket/11823#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket Sorin Fetche <sorin.fetche@…> Thu, 26 Nov 2015 10:19:04 GMT <link>https://svn.boost.org/trac10/ticket/11823#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11823#comment:2</guid> <description> <p> Links to the runs on Wandbox. The runs have different starting counters to the first memory allocation failure. </p> <p> melpon.org/wandbox/permlink/OOUN9sKpEsLW0dUj </p> <p> melpon.org/wandbox/permlink/ZBvpHRLx5pjdEb5N </p> <p> melpon.org/wandbox/permlink/uZtkMz3Nl0rG8mb1 </p> </description> <category>Ticket</category> </item> <item> <author>Sorin Fetche <sorin.fetche@…></author> <pubDate>Thu, 26 Nov 2015 10:20:49 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11823 https://svn.boost.org/trac10/ticket/11823 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">wandbox.txt</span> </li> </ul> Ticket Sorin Fetche <sorin.fetche@…> Mon, 09 May 2016 22:31:42 GMT <link>https://svn.boost.org/trac10/ticket/11823#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11823#comment:3</guid> <description> <p> The test program shows an exception problem in detail/hash_map.hpp too, if run on Windows with BOOST_ASIO_DISABLE_IOCP defined. Patch showing a possible fix of the problem on top of Boost 1.60 attached. </p> </description> <category>Ticket</category> </item> <item> <author>Sorin Fetche <sorin.fetche@…></author> <pubDate>Mon, 09 May 2016 22:32:19 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/11823 https://svn.boost.org/trac10/ticket/11823 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_asio_hash_map_exception_safety.patch</span> </li> </ul> Ticket