After a lot of version issues with the various dependencies, the compilation and linking succeeds. I try one of the example programs, "validate.cpp", and I get a segmentation fault. I want to debug, so I re-compile using the debug option, "b2 debug". But the debug version doesn't seg fault! It works fine!
Intrigued, I use gdb on the release version anyway (lack of "debugging symbols" notwithstanding). Here is the backtrace, for your information:
Reading symbols from validate...(no debugging symbols found)...done.
(gdb) r og_02.owl
Starting program: /home/jm/owl-cpp-code/out/apps/gcc-4.9.3/release/link-static/validate og_02.owl
Program received signal SIGSEGV, Segmentation fault.
0x0000000000438b32 in owlcpp::Crtpb_ns_node_iri<owlcpp::detail::Triple_store_temp>::insert_node_iri(std::string const&) ()
(gdb) bt
#0 0x0000000000438b32 in owlcpp::Crtpb_ns_node_iri<owlcpp::detail::Triple_store_temp>::insert_node_iri(std::string const&) ()
#1 0x00000000004393cf in owlcpp::detail::Raptor_to_store::insert_node(raptor_term const&) ()
#2 0x00000000004397c4 in void owlcpp::Raptor_wrapper::handle_statement<owlcpp::detail::Raptor_to_store>(void*, void const*) ()
#3 0x000000000045d0cb in raptor_rdfxml_generate_statement ()
#4 0x000000000045ddcc in raptor_rdfxml_end_element_handler ()
#5 0x0000000000460c36 in raptor_sax2_end_element ()
#6 0x0000000000485bbd in xmlParseEndTag1 ()
#7 0x0000000000491d02 in xmlParseTryOrFinish ()
#8 0x00000000004930be in xmlParseChunk ()
#9 0x00000000004603d0 in raptor_sax2_parse_chunk ()
#10 0x000000000045cb1b in raptor_rdfxml_parse_chunk ()
#11 0x0000000000448a19 in owlcpp::Raptor_wrapper::parse(std::istream&) ()
#12 0x0000000000421b15 in owlcpp::load(std::istream&, owlcpp::Triple_store&, std::string const&, owlcpp::Check_id const&) ()
#13 0x0000000000421d53 in owlcpp::load_file(boost::filesystem::path const&, owlcpp::Triple_store&, owlcpp::Check_id const&) ()
#14 0x000000000040959a in main ()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
After a lot of version issues with the various dependencies, the compilation and linking succeeds. I try one of the example programs, "validate.cpp", and I get a segmentation fault. I want to debug, so I re-compile using the debug option, "b2 debug". But the debug version doesn't seg fault! It works fine!
Intrigued, I use gdb on the release version anyway (lack of "debugging symbols" notwithstanding). Here is the backtrace, for your information: