Subject: [Boost-bugs] [Boost C++ Libraries] #13575: boost asio memory leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-05-24 14:39:13
#13575: boost asio memory leak
------------------------------+----------------------------
Reporter: boris@⦠| Owner: chris_kohlhoff
Type: Bugs | Status: new
Milestone: To Be Determined | Component: asio
Version: Boost 1.67.0 | Severity: Problem
Keywords: |
------------------------------+----------------------------
This code on heavily loaded server leads to memory leak inside
kqueue_reactor::allocate_descriptor_state():
{{{
boost::asio::ip::udp::socket s(io_service);
s.open(boost::asio::ip::udp::v4());
s.bind(boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 0));
}}}
While this code doesn't lead to this leak:
{{{
boost::asio::ip::udp::socket s(io_service,
boost::asio::ip::udp::endpoint(boost::asio::ip::udp::v4(), 0));
}}}
Tested on MacOS.
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13575> 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 : 2018-05-24 14:44:23 UTC