Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#5212 closed Bugs (fixed)

Serialization in 1.46 fails

Reported by: ipapadop@… Owned by: Robert Ramey
Milestone: To Be Determined Component: serialization
Version: Boost 1.46.0 Severity: Showstopper
Keywords: Cc:

Description

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.

$ uname -a Linux myhost 2.6.18-164.6.1.el5 #1 SMP Tue Nov 3 16:18:27 EST 2009 i686 i686 i386 GNU/Linux

$ 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

$ g++ -O0 -I/tmp/boost-1_46/ -L/tmp/boost-1_46/lib/ -lboost_serialization simple_test.cc -o simple_test

$ ldd simple_test

linux-gate.so.1 => (0x00ff1000) libboost_serialization.so.1.46.0 => /tmp/boost-1_46/lib/libboost_serialization.so.1.46.0 (0x00d22000) libstdc++.so.6 => /usr/local/gnu/gcc-4.4.4/lib/libstdc++.so.6 (0x00110000) libm.so.6 => /lib/libm.so.6 (0x00506000) libgcc_s.so.1 => /usr/local/gnu/gcc-4.4.4/lib/libgcc_s.so.1 (0x009a3000) libc.so.6 => /lib/libc.so.6 (0x003bf000) libpthread.so.0 => /lib/libpthread.so.0 (0x00535000) librt.so.1 => /lib/librt.so.1 (0x00563000) /lib/ld-linux.so.2 (0x0039c000)

gcc version 4.4.4 (GCC)

Attachments (1)

simple_test.cc (3.5 KB ) - added by ipapadop@… 12 years ago.
Test that stresses writing-reading from text archives

Download all attachments as: .zip

Change History (6)

by ipapadop@…, 12 years ago

Attachment: simple_test.cc added

Test that stresses writing-reading from text archives

comment:1 by ipapadop@…, 12 years ago

It also runs fine in Boost 1.44

comment:2 by ipapadop@…, 12 years ago

The same test has been tested on a 64bit Linux machine and works fine (Boost 1.46).

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?

comment:3 by ipapadop@…, 12 years ago

With Boost 1.46.1 I cannot reproduce it.

comment:4 by Robert Ramey, 12 years ago

Resolution: fixed
Status: newclosed

OK, so I can close this?

Robert Ramey

comment:5 by Bryce Adelstein Lelbach, 11 years ago

Confirming that this can't be reproduced.

Note: See TracTickets for help on using tickets.