[Boost-bugs] [Boost C++ Libraries] #4225: boost::once_flag suffers from static initialization problem

Subject: [Boost-bugs] [Boost C++ Libraries] #4225: boost::once_flag suffers from static initialization problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-05-17 11:15:38


#4225: boost::once_flag suffers from static initialization problem
------------------------------------------------+---------------------------
 Reporter: Tanguy Fautre <tfautre@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: thread
  Version: Boost 1.43.0 | Severity: Problem
 Keywords: |
------------------------------------------------+---------------------------
 Commit r57889 on boost/thread/win32/once.hpp has broken the POD guarantees
 of boost::flag_once by adding a destructor and introduced static
 initialization order problems.

 This in turn introduces problems in other part of Boost.Thread that relies
 on boost::flag_once as a static entity such as thread_specific_ptr
 (source:trunk/libs/thread/src/win32/thread.cpp#L28_at_57889), leading to
 segfaults in some applications. For more details, see boost.devel post
 [http://thread.gmane.org/gmane.comp.lib.boost.devel/203959 "[thread]
 thread_specific_ptr and static initialization order"].

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4225>
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