[Boost-bugs] [Boost C++ Libraries] #2002: bugs in load_binary and save_binary on 64 bit machines

Subject: [Boost-bugs] [Boost C++ Libraries] #2002: bugs in load_binary and save_binary on 64 bit machines
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-10 07:36:04


#2002: bugs in load_binary and save_binary on 64 bit machines
---------------------------------------------------------+------------------
 Reporter: MIchele De Stefano <micdestefano_at_[hidden]> | Owner: ramey
     Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: serialization
  Version: Boost 1.35.0 | Severity: Regression
 Keywords: load_binary save_binary 64 bit |
---------------------------------------------------------+------------------
 I discovered that '''load_binary''' and '''save_binary''' do not work
 properly on 64 bit machines.[[BR]]
 I discovered the problem on CentOS 5.1, 32 and 64 bit machines, running
 the attached program with ''valgrind''.[[BR]]
 If you don't compile it with -DBOOST_SERIALIZATION_WORK_AROUND, the
 program runs correctly on the 32 bit machine only.[[BR]]
 On the 64 bit machine, the program seems to terminate correctly, but, if
 run with ''valgrind'', a lot of errors come out.[[BR]]
 This can appear as a minor bug, but, if you try to use Boost.MPI in
 conjunction with serialization (for example to broadcast an object of the
 class Mtx_Wrap ... see ticket #1998), your program crashes if you run it
 with more than one process.[[BR]]
 I have to add that, before boost 1.35.0 were released, I used the 1.35
 development version without any problem on 32 and 64 bit machines both. At
 the moment, I have a lot of code that uses '''load_binary''' and
 '''save_binary''' like it is shown in the attached code.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2002>
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:49:58 UTC