Subject: Re: [Boost-bugs] [Boost C++ Libraries] #13186: Memory leak in serialization 1.65
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2018-01-29 15:21:37
#13186: Memory leak in serialization 1.65
---------------------------+---------------------------
Reporter: anonymous | Owner: Robert Ramey
Type: Bugs | Status: new
Milestone: Boost 1.65.0 | Component: serialization
Version: Boost 1.65.0 | Severity: Showstopper
Resolution: | Keywords:
---------------------------+---------------------------
Comment (by gast128@â¦):
This is breaking for us and still present in 1.66. We look at the Visual
Studio output and it should be clean. Once memory leak reports appear
there one won't be able to distinguish a benign one from a serious one.
The destructor of the singleton (which would free the memory) is never
called. Trying to work around and making a singleton by hand leads to a
stack overflow (0xC00000FD):
{{{#!cpp
struct Bla
{
template <class Archive>
void serialize(Archive& ar, const unsigned int version)
{
ar & boost::serialization::make_nvp("m_n", m_n);
}
int m_n;
};
const
boost::serialization::singleton<boost::serialization::extended_type_info_typeid<Bla>>
g_singleton;
}}}
-- Ticket URL: <https://svn.boost.org/trac10/ticket/13186#comment:6> 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 : 2018-01-29 15:27:24 UTC