Re: [Boost-bugs] [Boost C++ Libraries] #11951: Memory leak in boost::when_all

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11951: Memory leak in boost::when_all
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-02-03 10:56:05


#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
Resolution: | Keywords: future continuation leak
-------------------------------+--------------------------------------

Comment (by snizovtsev@…):

 Valgrind output:

 {{{
 ==3289== 5,760 bytes in 10 blocks are possibly lost in loss record 6 of 7
 ==3289== at 0x4C2DB95: calloc (in /usr/lib/valgrind/vgpreload_memcheck-
 amd64-linux.so)
 ==3289== by 0x40134B4: allocate_dtv (dl-tls.c:322)
 ==3289== by 0x40134B4: _dl_allocate_tls (dl-tls.c:544)
 ==3289== by 0x5BCE0D2: allocate_stack (allocatestack.c:588)
 ==3289== by 0x5BCE0D2: pthread_create@@GLIBC_2.2.5
 (pthread_create.c:537)
 ==3289== by 0x504CE28: boost::thread::start_thread_noexcept() (in
 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.60.0)
 ==3289== by 0x40D15D: boost::thread::start_thread() (thread.hpp:178)
 ==3289== by 0x4236E9: boost::thread::thread<void
 (*)(boost::shared_ptr<boost::detail::shared_state_base>),
 boost::shared_ptr<boost::detail::shared_state_base> >(void
 (*)(boost::shared_ptr<boost::detail::shared_state_base>),
 boost::shared_ptr<boost::detail::shared_state_base>,
 boost::disable_if<boost::thread_detail::is_convertible<void
 (*&)(boost::shared_ptr<boost::detail::shared_state_base>),
 boost::thread_attributes>, boost::thread::dummy*>::type) (thread.hpp:393)
 ==3289== by 0x420233:
 boost::detail::future_when_all_vector_shared_state<boost::future<Int>
>::init() (future.hpp:5211)
 ==3289== by 0x41B25E:
 boost::disable_if<boost::is_future_type<std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > > >
>,
 boost::future<std::vector<std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > >
>::value_type,
 std::allocator<std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > >
>::value_type> > > >::type
 boost::when_all<std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > > >
>(std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > > >,
 std::move_iterator<__gnu_cxx::__normal_iterator<boost::future<Int>*,
 std::vector<boost::future<Int>, std::allocator<boost::future<Int> > > > >)
 (future.hpp:5493)
 ==3289== by 0x4145ED: boost::future<void> iter<Int, 2ul>(int)
 (when_all.cc:85)
 ==3289== by 0x40B328: main (when_all.cc:99)

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11951#comment:1>
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