[Boost-bugs] [Boost C++ Libraries] #1260: Thread-safety problem in Boost.Function

Subject: [Boost-bugs] [Boost C++ Libraries] #1260: Thread-safety problem in Boost.Function
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-09-13 13:51:55


#1260: Thread-safety problem in Boost.Function
------------------------------+---------------------------------------------
 Reporter: dgregor | Owner: dgregor
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: function
  Version: Boost 1.34.1 | Severity: Regression
 Keywords: |
------------------------------+---------------------------------------------
 From Sean Huang, on the Boost mailing list:

 The following code in function_template.hpp has me concerned:

     template<typename Functor>
     void assign_to(Functor f)
     {
       static vtable_type stored_vtable(f);
       if (stored_vtable.assign_to(f, functor)) vtable = &stored_vtable;
       else vtable = 0;
     }

 The function scope statics are not thread-safe as far as I know and this
 is
 potentially a show stopper for us (we're in the process of upgrading from
 1.33.1 to 1.34+. Same usage in boost.serialization caused our application
 (very heavy threaded) to crash.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1260>
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:49:56 UTC