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: 2014-02-04 07:45:47


#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 anonymous):

 As said, the win32 implementation has this:

 {{{
   namespace boost {
     namespace detail {

       BOOST_THREAD_DECL void __cdecl on_process_enter()
       {}

       BOOST_THREAD_DECL void __cdecl on_thread_enter()
       {}

       BOOST_THREAD_DECL void __cdecl on_process_exit()
       {
         boost::cleanup_tls_key();
       }

       BOOST_THREAD_DECL void __cdecl on_thread_exit()
       {
         ...
       }

     }
   }
 }}}

 These functions are then somehow added into the PE image destructor
 sections (tss_dll.cpp and tss_pe.cpp). This was also buggy in some boost
 versions and messed up MFC cleanup (which also a tls handle leak) so we
 just disabled that and call the on_process_exit() function manually.

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