Boost C++ Libraries: Ticket #5212: Serialization in 1.46 fails https://svn.boost.org/trac10/ticket/5212 <p> I have a small test case that uses Boost.Serialization and text_archives. Everything works fine in Boost 1.41, however it fails with a segfault or exception in Boost 1.46. </p> <p> $ uname -a Linux myhost 2.6.18-164.6.1.el5 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux </p> <p> $ g++ -v -c Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.4.4/configure --prefix=/usr/local/gnu/gcc-4.4.4 --enable-languages=c,c++,fortran --with-mpfr=/usr/local Thread model: posix </p> <p> $ g++ -O0 -I/tmp/boost-1_46/ -L/tmp/boost-1_46/lib/ -lboost_serialization simple_test.cc -o simple_test </p> <p> $ ldd simple_test </p> <blockquote> <p> linux-gate.so.1 =&gt; (0x00ff1000) libboost_serialization.so.1.46.0 =&gt; /tmp/boost-1_46/lib/libboost_serialization.so.1.46.0 (0x00d22000) libstdc++.so.6 =&gt; /usr/local/gnu/gcc-4.4.4/lib/libstdc++.so.6 (0x00110000) libm.so.6 =&gt; /lib/libm.so.6 (0x00506000) libgcc_s.so.1 =&gt; /usr/local/gnu/gcc-4.4.4/lib/libgcc_s.so.1 (0x009a3000) libc.so.6 =&gt; /lib/libc.so.6 (0x003bf000) libpthread.so.0 =&gt; /lib/libpthread.so.0 (0x00535000) librt.so.1 =&gt; /lib/librt.so.1 (0x00563000) /lib/ld-linux.so.2 (0x0039c000) </p> </blockquote> <p> gcc version 4.4.4 (GCC) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5212 Trac 1.4.3 ipapadop@… Tue, 22 Feb 2011 22:55:11 GMT attachment set https://svn.boost.org/trac10/ticket/5212 https://svn.boost.org/trac10/ticket/5212 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">simple_test.cc</span> </li> </ul> <p> Test that stresses writing-reading from text archives </p> Ticket ipapadop@… Tue, 22 Feb 2011 23:06:58 GMT <link>https://svn.boost.org/trac10/ticket/5212#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5212#comment:1</guid> <description> <p> It also runs fine in Boost 1.44 </p> </description> <category>Ticket</category> </item> <item> <author>ipapadop@…</author> <pubDate>Thu, 24 Feb 2011 18:39:28 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5212#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5212#comment:2</guid> <description> <p> The same test has been tested on a 64bit Linux machine and works fine (Boost 1.46). </p> <p> Could it be that some of the information of Boost.Serialization is written to the file as a different integral type that it is read? </p> </description> <category>Ticket</category> </item> <item> <author>ipapadop@…</author> <pubDate>Thu, 31 Mar 2011 22:22:11 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/5212#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5212#comment:3</guid> <description> <p> With Boost 1.46.1 I cannot reproduce it. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Robert Ramey</dc:creator> <pubDate>Mon, 11 Apr 2011 03:39:32 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5212#comment:4 https://svn.boost.org/trac10/ticket/5212#comment:4 <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> OK, so I can close this? </p> <p> Robert Ramey </p> Ticket Bryce Adelstein Lelbach Wed, 11 May 2011 02:42:32 GMT <link>https://svn.boost.org/trac10/ticket/5212#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5212#comment:5</guid> <description> <p> Confirming that this can't be reproduced. </p> </description> <category>Ticket</category> </item> </channel> </rss>