id summary reporter owner description type status milestone component version severity resolution keywords cc 7498 archive::binary_iarchive failure loading map kaedenn@… Robert Ramey "I create two std::map instances, one of which having two dozen contents, the other default-initialized. I serialize the former using boost::archive::binary_oarchive and load it into the latter using boost::archive::binary_iarchive. {{{ // This Win32-specific test creates a std::map from strings to strings and // then serializes it to a file. We then attempt to desearialize from that // file. On boost_1_45_0 and boost_1_51_0 for Win32 this testcase fails on // our company's secondary build machine. }}} {{{ /* At the top of the call stack (see attachment for context), std::streamsize s = static_cast(count / sizeof(Elem)); std::streamsize scount = m_sb.sgetn( static_cast(address), s ); if(scount != s) boost::serialization::throw_exception( archive_exception(archive_exception::input_stream_error) ); `scount` is 0, `s` is 8. It's trying to load a size_type, presumably for a string length or a map length. */ }}} " Bugs closed To Be Determined serialization Boost 1.51.0 Problem invalid binary serialize map string