#5212 closed Bugs (fixed)
Serialization in 1.46 fails
Reported by: | 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)
Change History (6)
by , 12 years ago
Attachment: | simple_test.cc added |
---|
comment:2 by , 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:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
OK, so I can close this?
Robert Ramey
Test that stresses writing-reading from text archives