Boost C++ Libraries: Ticket #7768: serialization test_array_xml_warchive: double free or corruption https://svn.boost.org/trac10/ticket/7768 <p> test_array_xml_warchive shows an use after free bug on many machines. See: </p> <p> <a href="http://www.boost.org/development/tests/trunk/developer/serialization.html">http://www.boost.org/development/tests/trunk/developer/serialization.html</a> </p> <p> <a href="http://www.boost.org/development/tests/trunk/developer/output/Sandia-darwin-intel-12-0-boost-bin-v2-libs-serialization-test-test_array_xml_warchive-test-intel-darwin-12-0-debug-link-static.html">http://www.boost.org/development/tests/trunk/developer/output/Sandia-darwin-intel-12-0-boost-bin-v2-libs-serialization-test-test_array_xml_warchive-test-intel-darwin-12-0-debug-link-static.html</a> </p> <p> <a href="http://www.boost.org/development/tests/trunk/developer/output/Sandia-clang-trunk-boost-bin-v2-libs-serialization-test-test_array_xml_warchive-test-clang-linux-trunk-debug.html">http://www.boost.org/development/tests/trunk/developer/output/Sandia-clang-trunk-boost-bin-v2-libs-serialization-test-test_array_xml_warchive-test-clang-linux-trunk-debug.html</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7768 Trac 1.4.3 Robert Ramey Wed, 05 Dec 2012 16:19:32 GMT <link>https://svn.boost.org/trac10/ticket/7768#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7768#comment:1</guid> <description> <p> I haven't checked in any changes for sometime. So presumably this has been tripped by some other change. Does anyone have any idea when this started to occur? Or any other information about it? </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 05 Dec 2012 16:59:59 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7768#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7768#comment:2</guid> <description> <p> It could also be a bug in libstdc++, because clang with "-stdlib=libc++" (<a class="ext-link" href="http://libcxx.llvm.org/"><span class="icon">​</span>http://libcxx.llvm.org/</a>) doesn't show the issue. I've tried to reduce the testcase yesterday, but couldn't get rid of boost libraries. And a simple testcase, that doesn't depend on any external libraries, is needed before one could open a gcc bug. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 12 Dec 2012 21:54:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7768#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7768#comment:3</guid> <description> <p> I've spent some time investigating this so far with no results. Here are a few facts: </p> <p> a) This occurs in a very few programs which use the xml_?archive classes. b) This suggests issues related to utf8_codecvt and /or spirit parser. I've spent some time improving the test for utf8 and believe that there are issues here. I've checked in the changes and we'll watch the trunk tests to see if errors on test_utf8_codecvt go away. </p> <p> Issue is still pending. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Wed, 06 Feb 2013 20:38:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7768#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7768#comment:4</guid> <description> <p> I believed I (with Marshall's help) have traced this to an issue with utf8_codecvt facet. The problem only shows up when it's recovering from an exception. That is, utf8_codecvt is not exception-safe on these platforms. This is because due variations among standard header implementations we're sometimes pulling code from the standard header ans sometimes from our own facet. It's a bit of a fiasco but it needs a real fix - not just a quick one. So it's on our list. </p> <p> Robert Ramey </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Mon, 03 Feb 2014 22:54:26 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7768#comment:5 https://svn.boost.org/trac10/ticket/7768#comment:5 <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">fixed</span> </li> </ul> <p> I believe that recent fixes to utf_codecvt will address this issue. Feel free to re-test and resubmit if this problem still exists. </p> Ticket