[Boost-bugs] [Boost C++ Libraries] #9151: memory leak in boost coroutines

Subject: [Boost-bugs] [Boost C++ Libraries] #9151: memory leak in boost coroutines
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-09-23 05:20:05


#9151: memory leak in boost coroutines
------------------------+------------------------------
 Reporter: extproxy@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.53.0
 Severity: Problem | Keywords:
------------------------+------------------------------
 Please see the attached program coro.cc. When I compile and run this with
 the heapchecker that comes with google-perftools, it reports a memory
 leak. Here's how to compile and run the program to reproduce the issue on
 Ubuntu 13.04:

 $ sudo apt-get install libgoogle-perftools-dev

 $ sudo apt-get install libboost1.53-all-dev

 $ g++ -std=c++0x coro.cc -o coro -lboost_context -ltcmalloc

 $ PPROF_PATH=/usr/bin/pprof HEAPCHECK=normal ./coro

 The above reports the leaks as follows:

 Leak of 152 bytes in 1 objects allocated from:
         @ 413c78 __gnu_cxx::new_allocator::allocate
         @ 413154 boost::coroutines::coroutine::coroutine
         @ 411586 boost::coroutines::detail::coroutine_object::run
         @ 40f713 boost::coroutines::detail::trampoline2
         @ 7f01e9a5d76e make_fcontext

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