Subject: [Boost-bugs] [Boost C++ Libraries] #11951: Memory leak in boost::when_all
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-03 10:53:08
#11951: Memory leak in boost::when_all
--------------------------------------+------------------------
Reporter: snizovtsev@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.60.0 | Severity: Regression
Keywords: future continuation leak |
--------------------------------------+------------------------
After trying to identify the source of huge memory leak in our product we
found that problem sits inside boost::when_all.
I have written a minimal program to demonstrate it. It simply constructs
many promises, extracts the future from them and assign continuation to
boost::when_all future. Then it waits for completition and loop.
Run `htop` and see how memory infinitly consumes in time at ~300-400
kb/sec. I have run this test on OS X (El Capitan) and Ubuntu 15.10. On
Linux also virtual memory (address space) consumed at ~1 GB/sec rate!
ifdef-ed part of code are used to run on valgrind and test that future's
target objects are NOT leaked.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11951> 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