|
Boost Users : |
From: Bruce Reid (b.reid_at_[hidden])
Date: 2007-08-15 19:20:58
Found the cause of my previous trouble, and can now cross-build library for my
target PowerPC platform.
However, my attempt to build and run the serialization example program
demo_xml_save.cpp resulted in a segmentation fault with the backtrace below.
This effort is proving to be so problematic every step of the way, that I
believe I will have to abandon my decision to use the boost library entirely,
and instead implement my own clunky dump methods for every object I had hoped
to serialize. Unfortunate, but I don't have time for all the nonsense.
#0 0x0ff69004 in std::basic_ios<char, std::char_traits<char> >::widen(char)
const () from /usr/lib/libstdc++.so.5
#1 0x0ff956f0 in std::ostream::operator<<(long)() from /usr/lib/libstdc++.so.5
#2 0x0ff95ba4 in std::ostream::operator<<(int)() from/usr/lib/libstdc++.so.5
#3 0x1000b9b8 in save<int> (this=0x7ffff480, t=@0x7ffff240) at
.../include/boost-1_34_1/boost/archive/basic_text_oprimitive.hpp:84
#4 0x1000b860 in save<int> (this=0x7ffff470, t=@0x7ffff240) at
.../include/boost-1_34_1/boost/archive/xml_oarchive.hpp:56
#5 0x10026ed0 in
boost::archive::basic_xml_oarchive<boost::archive::xml_oarchive>::
write_attribute(char const*, int, char const*) (this=0x7ffff470,
attribute_name=0x10032738 "version", t=4, conjunction=0x10032740 "=\"") at
boost/archive/impl/basic_xml_oarchive.ipp:68
#6 0x10026e04 in
boost::archive::basic_xml_oarchive<boost::archive::xml_oarchive>::init()
(this=0x7ffff470) at boost/archive/impl/basic_xml_oarchive.ipp:218
#7 0x10026c74 in
boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::
xml_oarchive_impl(std::ostream&, unsigned) (this=0x7ffff470, os_=@0x7ffff350,
flags=0) at boost/archive/impl/xml_oarchive_impl.ipp:113
#8 0x10026b94 in
boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::
xml_oarchive_impl(std::ostream&, unsigned)() at
boost/archive/impl/xml_oarchive_impl.ipp:104
#9 0x100052c0 in boost::archive::xml_oarchive::xml_oarchive(std::ostream&,
unsigned) (this=0x7ffff470, os=@0x7ffff350, flags=0)at
.../include/boost-1_34_1/boost/archive/xml_oarchive.hpp:100
#10 0x1000417c in boost::archive::xml_oarchive::xml_oarchive(std::ostream&,
unsigned) () at
.../include/boost-1_34_1/boost/serialization/void_cast.hpp:169
#11 0x10001ed0 in save_schedule(bus_schedule const&, char const*)
(s=@0x7ffff4e0, filename=0x1005327c "demo_save.xml") at demo_xml_save.cpp:22
#12 0x10002abc in main (argc=1, argv=0x7ffff724) at demo_xml_save.cpp:86
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net