
I am not a serialization guru, but I think someone could help you if
you can you post a simple example of your code that can reproduce the
crash with the full stack trace?
Chris
On 4/26/07, matthew.garman@gmail.com
On Thu, Apr 26, 2007 at 05:30:26PM -0400, Chris Weed wrote:
This warning means you have some code built with gcc 3.4+ and some code built with gcc earlier than gcc 3.4. This will invariably cause your code to crash:
/usr/bin/ld: warning: libstdc++.so.6, needed by /usr/local/lib/libboost_serialization-gcc.so, may conflict with libstdc++.so.5
You need to rebuild all of your code to link against the same libstdc++ library.
Hi,
I fixed the above problem (I was still pulling in the 3.4 build of boost). Now I'm correctly pulling in only stuff built with gcc32 (ldd confirmed this).
But the program still segfaults. Here's an excerpt from the gdb back trace after a crash. Basically, everything prior to #32 is our own code, and #32 is where the boost serialization code is first referenced. (I can certainly post the whole backtrace, just trying to be concise.) Note "MyClass" is the name of our custom class that uses boost::serialization:
[ ... ] #27 0x08089912 in boost::archive::detail::load_non_pointer_type
::load_standard::invoke (ar=@0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:375 #28 0x08089776 in boost::archive::detail::load_non_pointer_type ::invoke (ar=@0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:425 #29 0x0808960a in load (ar=@0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/detail/iserializer.hpp:572 #30 0x0808944f in load_override<MyClass> (this=0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/basic_binary_iarchive.hpp:70 #31 0x08089092 in load_override<MyClass> (this=0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/binary_iarchive.hpp:47 #32 0x0808899d in operator>><MyClass> (this=0xf5bd6140, t=@0x81459f0) at /.../include/boost-1_33_1/boost/archive/detail/interface_iarchive.hpp:76 [ ... ] Thanks again, Matt
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users