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-10 04:27:28


#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 Takenori Sato <takenori.sato@…>):

 For those who have the same problem. One little change solves this issue.

 {{{
         ~IntSLList(){
                 while(head != tail){
                         // replace
                         head = head->next;
                 }
         }
 }}}


 shared_ptr carefully manages counter, so this does not trigger recursive
 destruction.

 This works for millions or whatever until exausted.

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