Re: [Boost-bugs] [Boost C++ Libraries] #3526: Data races in boost::thread detected by drd/helgrind

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3526: Data races in boost::thread detected by drd/helgrind
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-05 10:40:34


#3526: Data races in boost::thread detected by drd/helgrind
-------------------------------------+--------------------------------------
 Reporter: m.strashun@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost Development Trunk | Severity: Problem
 Keywords: valgrind,drd,threading |
-------------------------------------+--------------------------------------
Changes (by bvanassche@…):

 * cc: bvanassche@… (added)
  * version: Boost 1.40.0 => Boost Development Trunk
  * severity: Regression => Problem

Comment:

 This is a real bug. With the current implementation it is possible that
 call_once() invokes its second argument (Function f) twice. flag.epoch
 should be tested again after detail::once_epoch_mutex has been locked,
 just like as when applying the double-checked optimization to the
 singleton pattern.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3526#comment:6>
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:03 UTC