Boost C++ Libraries: Ticket #11298: Crash when serializing objects with tracking information https://svn.boost.org/trac10/ticket/11298 <p> I am puzzled by the boost serialization library behaviour. If I have tracking turned on for an object, the output contains object ids - which looks fine. However, when I serialize it back in, the code crashes. </p> <p> If I comment out the tracking (Variant.h line 59) the output looks similar but without the object ids. This time serializing back in succeeds. </p> <p> What I don't get, though, is that the crash seems to be because the inner object is not tracked correctly. Looking at the XML, this still has class_ids and object_ids set correctly - so why is it that the object_ids on the other objects causes this issue? </p> <p> Any help gratefully received. Attached is the test code, plus the two output xml zip files. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11298 Trac 1.4.3 Chris Rusby <chris.rusby@…> Wed, 13 May 2015 15:43:59 GMT attachment set https://svn.boost.org/trac10/ticket/11298 https://svn.boost.org/trac10/ticket/11298 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">CrashTest.zip</span> </li> </ul> Ticket Robert Ramey Sun, 24 May 2015 00:01:14 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11298#comment:1 https://svn.boost.org/trac10/ticket/11298#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> I took a look at this. It's way to complex and example for me to figure out without debugging through the code. And I don't have msvc available so I'd have to use something else. </p> <p> If you want to do this I can give a couple of hints: </p> <p> use the text archive rather than xml_archive. xml_archive is easier to see - but tracing though invokes an extra layer at each step so text_archive is easier. </p> <p> Look at the documentation of reset_object_address and make sure your using it if you are loading tracked objects to the stack. </p> <p> Sorry I couldn't be more helpful. </p> <p> Robert Ramey </p> Ticket Chris Rusby <chris.rusby@…> Wed, 18 Nov 2015 17:51:42 GMT <link>https://svn.boost.org/trac10/ticket/11298#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11298#comment:2</guid> <description> <p> Hi Robert, </p> <p> A quick update. It appears to be a compiler bug. I tried the reproducer in VS2008 using boost 1.59 and could still reproduce the crash. I then upgraded the project to VS2013, and the crash has been resolved. </p> <p> Thanks, </p> <p> Chris </p> </description> <category>Ticket</category> </item> </channel> </rss>