[Boost-bugs] [Boost C++ Libraries] #12220: Memory leak in future::then()

Subject: [Boost-bugs] [Boost C++ Libraries] #12220: Memory leak in future::then()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-05-22 08:41:33


#12220: Memory leak in future::then()
-------------------------------------+------------------------
 Reporter: valentin.milea@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.61.0 | Severity: Regression
 Keywords: memory leak future then |
-------------------------------------+------------------------
 Since Boost 1.60, the continuation destructor is never called.

 I've reproduced the leak using Boost 1.61 with the attached program in
 following configurations:

 * GCC 5.3.0 with BOOST_THREAD_VERSION=2, BOOST_THREAD_PROVIDES_FUTURE,
 BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION
 * MSVC 14.0 with BOOST_THREAD_VERSION=2, BOOST_THREAD_PROVIDES_FUTURE,
 BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION
 * MSVC 14.0 with BOOST_THREAD_VERSION=4

 Interestingly, the leak disappears with GCC 5.3.0 when
 BOOST_THREAD_VERSION=4.

 Also, there is no leak in any configuration for deferred launch policy.

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