Re: [Boost-bugs] [Boost C++ Libraries] #11098: thread__assign__move - ThreadSanitizer: thread leak

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11098: thread__assign__move - ThreadSanitizer: thread leak
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-03-10 21:15:34


#11098: thread__assign__move - ThreadSanitizer: thread leak
-------------------------------+----------------------
  Reporter: viboes | Owner: viboes
      Type: Bugs | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+----------------------

Comment (by viboes):

 This seems a false positive, as the thread leak is associated to a
 terminate.


 {{{
   {
     boost::thread t0(G(), 5, 5.5);
     boost::thread t1;
     t0 = boost::move(t1);
     BOOST_TEST(false);
   }
 }}}


 Changing the code to

 {{{
   {
     boost::thread t0;
     boost::thread t1;
     t0 = boost::move(t1);
     BOOST_TEST(false);
   }
 }}}

 There shouldn't be a leak.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11098#comment:2>
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:18 UTC