Re: [Boost-bugs] [Boost C++ Libraries] #9612: Memory Access Violation when recursively serializing classes

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9612: Memory Access Violation when recursively serializing classes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-02-05 22:41:34


#9612: Memory Access Violation when recursively serializing classes
------------------------------------------+---------------------------
  Reporter: Chris Rusby <chris.rusby@…> | Owner: ramey
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: serialization
   Version: Boost 1.55.0 | Severity: Problem
Resolution: invalid | Keywords:
------------------------------------------+---------------------------

Comment (by Chris Rusby <chris.rusby@…>):

 Hi again,

 I've just made some small serialization changes in our code-base in a much
 less edge-casey way.

 If I understand the cause of the problem, it arises because I have a class
 defined in DLL A, and I'm serializing a shared pointer to this within
 classes in DLL B and DLL C - and this isn't happy (windows _and_ linux).

 I've not yet managed to simplify the test case sufficiently to be able to
 upload it, but I hope to do this in the next few days.

 On the one hand, I think Brandon's fix looks good (I will try it out fully
 tomorrow) - but on the other hand I can see why Robert's nervous about
 putting this live as it's fairly fundamental!

 However, maybe as a compromise we could take Brandon's changes to
 singleton.hpp? These look fairly innocuous, but they would allow me (or
 anybody else who comes across this problem) to make changes as per
 extern.hpp in our own code-base. Would this work?

 Thanks,

 Chris

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/9612#comment:11>
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:50:15 UTC