Re: [Boost-bugs] [Boost C++ Libraries] #4415: Posible "Segmentation Fault" in shared_ptr destructor

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4415: Posible "Segmentation Fault" in shared_ptr destructor
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-09 08:43:17


#4415: Posible "Segmentation Fault" in shared_ptr destructor
------------------------------------------------------+---------------------
  Reporter: Takenori Sato <takenori.sato@…> | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: Boost 1.44.0 | Component: smart_ptr
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------------------------+---------------------

Comment (by pdimov):

 If two threads enter release, the initial value of use_count_ must be at
 least 2, and only the thread that last decrements it will proceed to
 dispose(). I don't see how this can lead to the other thread suffering a
 segmentation fault while accessing use_count_, as its access must already
 have been performed. Can you please attach a reasonably complete example
 that demonstrates the problem?

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