|
Boost Users : |
Subject: [Boost-users] [Boost Graph Library][Serialization] adjacency_list serialization crashes.
From: Hardik Soni (hardik.soni_at_[hidden])
Date: 2015-03-23 14:37:50
Hi All,
I am facing a core dump while serializing adjacency_list class object of BGL.
I am using <boost/graph/adj_list_serialize.hpp> file for serialization.
Following is the stack trace. I have highlighted the types used for boost::adjacency_list on frame number 19.
I am using bundled property method to assign property to nodes and vertices.
I tried with no_poperty, the outcome was the same.
Does anyone have any idea, why is it crashing? The exception name is "output stream error".
#0 0x0000003908e359e9 in raise () from /lib64/libc.so.6
#1 0x0000003908e370f8 in abort () from /lib64/libc.so.6
#2 0x000000390d660565 in __gnu_cxx::__verbose_terminate_handler() () from /lib64/libstdc++.so.6
#3 0x000000390d65e6c6 in ?? () from /lib64/libstdc++.so.6
#4 0x000000390d65e6f3 in std::terminate() () from /lib64/libstdc++.so.6
#5 0x000000390d65e91f in __cxa_throw () from /lib64/libstdc++.so.6
#6 0x000000000040de72 in boost::serialization::throw_exception<boost::archive::archive_exception> (e=...) at /usr/local/include/boost/serialization/throw_exception.hpp:36
#7 0x000000000040dce7 in boost::archive::basic_text_oprimitive<std::ostream>::save_impl<int> (this=0x7fffffffd5b0, t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/basic_text_oprimitive.hpp:122
#8 0x000000000040dc24 in boost::archive::basic_text_oprimitive<std::ostream>::save<int> (this=0x7fffffffd5b0, t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/basic_text_oprimitive.hpp:176
#9 0x000000000040db91 in boost::archive::xml_oarchive_impl<boost::archive::xml_oarchive>::save<int> (this=0x7fffffffd580, t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/xml_oarchive.hpp:75
#10 0x000000000040daeb in boost::archive::save_access::save_primitive<boost::archive::xml_oarchive, int> (ar=..., t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/detail/oserializer.hpp:88
#11 0x000000000040d9d1 in boost::archive::detail::save_non_pointer_type<boost::archive::xml_oarchive>::save_primitive::invoke<int> (ar=..., t=@0x7fffffffd188: 6)
at /usr/local/include/boost/archive/detail/oserializer.hpp:232
#12 0x000000000040d595 in boost::archive::detail::save_non_pointer_type<boost::archive::xml_oarchive>::invoke<int> (ar=..., t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/detail/oserializer.hpp:308
#13 0x000000000040cccb in boost::archive::save<boost::archive::xml_oarchive, int const> (ar=..., t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/detail/oserializer.hpp:525
#14 0x000000000040c678 in boost::archive::detail::common_oarchive<boost::archive::xml_oarchive>::save_override<int const> (this=0x7fffffffd580, t=@0x7fffffffd188: 6)
at /usr/local/include/boost/archive/detail/common_oarchive.hpp:69
#15 0x000000000040be67 in boost::archive::basic_xml_oarchive<boost::archive::xml_oarchive>::save_override<int> (this=0x7fffffffd580, t=...) at /usr/local/include/boost/archive/basic_xml_oarchive.hpp:112
#16 0x000000000040b5bc in boost::archive::detail::interface_oarchive<boost::archive::xml_oarchive>::operator<< <boost::serialization::nvp<int> const> (this=0x7fffffffd580, t=...)
at /usr/local/include/boost/archive/detail/interface_oarchive.hpp:63
#17 0x000000000040b021 in boost::serialization::save<boost::archive::xml_oarchive, boost::vecS, boost::vecS, boost::directedS, std::string, std::string, std::string, boost::listS> (ar=..., graph=...)
at /usr/local/include/boost/graph/adj_list_serialize.hpp:48
#18 0x000000000040aa65 in boost::serialization::free_saver<boost::archive::xml_oarchive, boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::string, std::string, std::string, boost::listS> >::invoke (ar=..., t=..., file_version=0) at /usr/local/include/boost/serialization/split_free.hpp:45
#19 0x000000000040a6e2 in boost::serialization::split_free<boost::archive::xml_oarchive, boost::adjacency_list<boost::vecS, boost::vecS, boost::directedS, std::string, std::string, std::string, boost::listS > >
(ar=..., t=..., file_version=0) at /usr/local/include/boost/serialization/split_free.hpp:74
#20 0x000000000040a2cf in boost::serialization::serialize<boost::archive::xml_oarchive, boost::vecS, boost::vecS, boost::directedS, std::string, std::string, std::string, boost::listS> (ar=..., graph=...,
file_version=0) at /usr/local/include/boost/graph/adj_list_serialize.hpp:109
Thanks,
Hardik Soni
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