Re: [Boost-bugs] [Boost C++ Libraries] #5847: sp_counted_base_pt.hpp: appears to suffer a race conditions

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5847: sp_counted_base_pt.hpp: appears to suffer a race conditions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-31 09:36:25


#5847: sp_counted_base_pt.hpp: appears to suffer a race conditions
--------------------------------------------------+-------------------------
  Reporter: Jeffrey Walton <noloader@…> | Owner: pdimov
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: smart_ptr
   Version: Boost 1.47.0 | Severity: Problem
Resolution: invalid | Keywords:
--------------------------------------------------+-------------------------

Comment (by pdimov):

 Your test code has a data race on blocks[idx]. This usage is not supported
 by shared_ptr, it is as thread-safe as an int or an ordinary pointer. If
 you change BlockPtr to be Block*, valgrind ought to complain as well.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5847#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:07 UTC