Re: [Boost-bugs] [Boost C++ Libraries] #3926: thread_specific_ptr + dlopen library causes a SIGSEGV.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3926: thread_specific_ptr + dlopen library causes a SIGSEGV.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-11 09:28:52


#3926: thread_specific_ptr + dlopen library causes a SIGSEGV.
-------------------------------+--------------------------------------------
  Reporter: pluto@… | Owner: viboes
      Type: Patches | Status: assigned
 Milestone: To Be Determined | Component: thread
   Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------

Comment (by pluto@…):

 Replying to [comment:11 viboes]:
> See also #4636 boost thread library leaks pthread_key


 yes, the #4639 describes the same problem but there's one major issue with
 both patches. the desctruction order of global objects is not specified in
 general, especially in these days when recent gnu toolchain can sort .init
 /.fini-array sections.

 e.g. the ~delete_epoch_tss_key_on_dlclose_t() from #4639 may release
 pthread_key and after this the ~thread_specific_ptr() may accuire key
 again, set null handler and finally leak/gpf as usual.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3926#comment:12>
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:08 UTC