[Boost-bugs] [Boost C++ Libraries] #11529: regression: boost::archive::archive_exception exception during serialization

Subject: [Boost-bugs] [Boost C++ Libraries] #11529: regression: boost::archive::archive_exception exception during serialization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-08-07 10:44:05


#11529: regression: boost::archive::archive_exception exception during
serialization
------------------------------+---------------------------
 Reporter: nikolay@… | Owner: ramey
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
  Version: Boost 1.58.0 | Severity: Regression
 Keywords: |
------------------------------+---------------------------
 Just try compile and run following example:
 {{{
 int _tmain(int argc, _TCHAR* argv[])
 {
         boost::filesystem::wofstream ofs("c:\\test.xml");

         std::string s1 = "kkk";
         std::wstring w1 = L"kkk";
         std::wstring w2 = L"апр"; // some non-lati1 (for example russians)
 letters

         boost::archive::xml_woarchive oa(ofs);
         oa << boost::serialization::make_nvp("key1", s1);
         oa << boost::serialization::make_nvp("key2", w1);
         oa << boost::serialization::make_nvp("key3", w2); // here
 exception is throw
         return 0;
 }
 }}}
 This code was working in 1.38 + VS2005, 1.44+VS2005, 1.52+VS2005,
 1.52+VS2012, 1.52+VS2013. When I have updated from boost 1.52 to boost
 1.58 (both VS2013) I have mentioned my app crashes during serialization. I
 have tried this code on 1.57 + VS 2012 (unfortunatelly I don't have 1.57
 compiled for VS2013) and it works. So problem appears between 1.57 and
 1.58. If need I can obtain crash dumps.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11529>
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:18 UTC