Boost C++ Libraries: Ticket #4225: boost::once_flag suffers from static initialization problem https://svn.boost.org/trac10/ticket/4225 <p> Commit <a class="changeset" href="https://svn.boost.org/trac10/changeset/57889" title="Ensure call_once event is correctly cleaned up">r57889</a> 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. </p> <p> 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@57889), leading to segfaults in some applications. For more details, see boost.devel post <a class="ext-link" href="http://thread.gmane.org/gmane.comp.lib.boost.devel/203959"><span class="icon">​</span>[thread] thread_specific_ptr and static initialization order</a>. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4225 Trac 1.4.3 Tanguy Fautre <tfautre@…> Mon, 17 May 2010 11:16:08 GMT cc set https://svn.boost.org/trac10/ticket/4225#comment:1 https://svn.boost.org/trac10/ticket/4225#comment:1 <ul> <li><strong>cc</strong> <span class="trac-author">tfautre@…</span> added </li> </ul> Ticket Anthony Williams Fri, 09 Jul 2010 21:39:28 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4225#comment:2 https://svn.boost.org/trac10/ticket/4225#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed on trunk. </p> Ticket