Boost logo

Boost :

Subject: [boost] [Serialization] Bizarre bug - reviewed
From: Tobias Loew (Tobias.Loew_at_[hidden])
Date: 2013-01-17 11:45:57

I just came across the following bug
and noticed that the bizarre behaviour is still reproducible (I used
boost-version 1.52).
I could figure out that in the buggy build there is an additional static
initialization of the singlenton<T>::instance in
boost\serialization\singleton.hpp in line 149 at startup

> serial_bug.exe!`dynamic initializer for
> > >::instance''() Zeile 149 C++

which leads to a call of set_bpis in iserializer.hpp line 347. Thus,
std::vector<char> will be saved (but NOT loaded) through a pointer.

For apps that store and load the same types the problem usually does not
arise, but for server/clients this may not be the case (e.g. apps using the


View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at