Hi All,
I am facing a core dump while serializing adjacency_list class object of BGL.
I am using 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_exceptionboost::archive::archive_exception (e=...) at /usr/local/include/boost/serialization/throw_exception.hpp:36
#7 0x000000000040dce7 in boost::archive::basic_text_oprimitivestd::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_oprimitivestd::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_implboost::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 (ar=..., t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/detail/oserializer.hpp:88
#11 0x000000000040d9d1 in boost::archive::detail::save_non_pointer_typeboost::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_typeboost::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 (ar=..., t=@0x7fffffffd188: 6) at /usr/local/include/boost/archive/detail/oserializer.hpp:525
#14 0x000000000040c678 in boost::archive::detail::common_oarchiveboost::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_oarchiveboost::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_oarchiveboost::archive::xml_oarchive::operator<< (this=0x7fffffffd580, t=...)
at /usr/local/include/boost/archive/detail/interface_oarchive.hpp:63
#17 0x000000000040b021 in boost::serialization::save (ar=..., graph=...)
at /usr/local/include/boost/graph/adj_list_serialize.hpp:48
#18 0x000000000040aa65 in boost::serialization::free_saver >::invoke (ar=..., t=..., file_version=0) at /usr/local/include/boost/serialization/split_free.hpp:45
#19 0x000000000040a6e2 in boost::serialization::split_free >
(ar=..., t=..., file_version=0) at /usr/local/include/boost/serialization/split_free.hpp:74
#20 0x000000000040a2cf in boost::serialization::serialize (ar=..., graph=...,
file_version=0) at /usr/local/include/boost/graph/adj_list_serialize.hpp:109
Thanks,
Hardik Soni