Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2007-10-14 10:15:17


David Angelo:

> Hi folks,
>
> I have a problem with upgrading from boost version 1.33 to 1.34.
> My code runs fine with 1.33, but when compiling and linking againt 1.34 I
> get the following runtime error (backtrace):
>
> <backtrace>
> #0 0x81d4c9b2 in void boost::function1<void, float, std::allocator<void>
>>::ass
> ign_to<boost::_bi::bind_t<void, boost::_mfi::mf1<void, fpCTPart, float>,
> boost::
> _bi::list2<boost::_bi::value <fpCTPart*>, boost::arg<1> (*)()> >
>>(boost::_bi::bi
> nd_t<void, boost::_mfi::mf1<void, fpCTPart, float>,
> boost::_bi::list2<boost::_bi
> ::value<fpCTPart*>, boost::arg<1> (*)()> >)::stored_vtable ()
> from /home/david/eclipseM6/toolManagement/lib/libfpCTToolPack.so

Is your program multithreaded? The problem occurs in the initialization of
the static variable 'stored_vtable' in function::assign_to. I don't see the
same code in 1.33, so this has indeed been introduced with 1.34. This
appears to be fixed in the current SVN trunk version, but the fix has not
been officially released yet as far as I can see.

You might try replacing function_template.hpp and function_base.hpp with
their latest versions from

http://svn.boost.org/trac/boost/browser/trunk/boost/function

and see if it helps.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net