Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9151: memory leak in boost coroutines
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-23 15:30:17
#9151: memory leak in boost coroutines
-------------------------------+-----------------------
Reporter: extproxy@⦠| Owner: olli
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: coroutine
Version: Boost 1.53.0 | Severity: Problem
Resolution: invalid | Keywords:
-------------------------------+-----------------------
Comment (by extproxy@â¦):
I've modified my program to use custom new/delete operators that print out
every allocation and deallocation. The modified program is attached as
coro_mod.cc.
It prints the following:
Allocated: 0x9e8010
Allocated: 0x9e8050
Allocated: 0x9e8070
Allocated: 0x9e80b0
Starting main
Allocated: 0x9e80d0
Allocated: 0x9e80f0
Allocated: 0x9e81a0
In Hello 6
In Run1
In Hello end 4
In Hello end 5
In Run2
Freeing: 0x9e80f0
Freeing: 0x9e80d0
Finished main
Freeing: 0x9e8070
Freeing: 0x9e80b0
Freeing: 0x9e8010
Freeing: 0x9e8050
Notice how there is one more allocation than free.
I compiled it as: g++ -std=c++0x coro_mod.cc -o coro_mod -lboost_context
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9151#comment:3> 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:14 UTC