id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 1260,Thread-safety problem in Boost.Function,Douglas Gregor,Douglas Gregor,"From Sean Huang, on the Boost mailing list: The following code in function_template.hpp has me concerned: template 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. ",Bugs,closed,To Be Determined,function,Boost 1.34.1,Regression,fixed,,