Actions
Bug #5151
closedTestAdvertiseWithdrawPrefix fails with ptree_bad_path exception
Status:
Closed
Priority:
High
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
This is on linux with the latest ndn-cxx master branch. I don't know why the test passes on jenkins.
../tests/update/test-save-delete-prefix.cpp(176): Entering test suite "TestAdvertiseWithdrawPrefix"
../tests/update/test-save-delete-prefix.cpp(178): Entering test case "Basic"
/usr/include/boost/property_tree/detail/ptree_implementation.hpp(576): fatal error: in "boost::property_tree::basic_ptree<K, D, C>& boost::property_tree::basic_ptree<Key, Data, KeyCompare>::get_child(const path_type&) [with Key = std::__cxx11::basic_string<char>; Data = std::__cxx11::basic_string<char>; KeyCompare = std::less<std::__cxx11::basic_string<char> >; boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type = boost::property_tree::string_path<std::__cxx11::basic_string<char>, boost::property_tree::id_translator<std::__cxx11::basic_string<char> > >]": /usr/include/boost/property_tree/detail/ptree_implementation.hpp(576): Throw in function boost::property_tree::basic_ptree<K, D, C>& boost::property_tree::basic_ptree<Key, Data, KeyCompare>::get_child(const path_type&) [with Key = std::__cxx11::basic_string<char>; Data = std::__cxx11::basic_string<char>; KeyCompare = std::less<std::__cxx11::basic_string<char> >; boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type = boost::property_tree::string_path<std::__cxx11::basic_string<char>, boost::property_tree::id_translator<std::__cxx11::basic_string<char> > >]
Dynamic exception type: boost::wrapexcept<boost::property_tree::ptree_bad_path>
std::exception::what: No such node (advertising)
../tests/update/test-save-delete-prefix.cpp(183): last checkpoint
../tests/update/test-save-delete-prefix.cpp(178): Leaving test case "Basic"; testing time: 86530us
../tests/update/test-save-delete-prefix.cpp(207): Entering test case "PrefixStillSavedAfterJustWithdrawn"
/usr/include/boost/property_tree/detail/ptree_implementation.hpp(576): fatal error: in "boost::property_tree::basic_ptree<K, D, C>& boost::property_tree::basic_ptree<Key, Data, KeyCompare>::get_child(const path_type&) [with Key = std::__cxx11::basic_string<char>; Data = std::__cxx11::basic_string<char>; KeyCompare = std::less<std::__cxx11::basic_string<char> >; boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type = boost::property_tree::string_path<std::__cxx11::basic_string<char>, boost::property_tree::id_translator<std::__cxx11::basic_string<char> > >]": /usr/include/boost/property_tree/detail/ptree_implementation.hpp(576): Throw in function boost::property_tree::basic_ptree<K, D, C>& boost::property_tree::basic_ptree<Key, Data, KeyCompare>::get_child(const path_type&) [with Key = std::__cxx11::basic_string<char>; Data = std::__cxx11::basic_string<char>; KeyCompare = std::less<std::__cxx11::basic_string<char> >; boost::property_tree::basic_ptree<Key, Data, KeyCompare>::path_type = boost::property_tree::string_path<std::__cxx11::basic_string<char>, boost::property_tree::id_translator<std::__cxx11::basic_string<char> > >]
Dynamic exception type: boost::wrapexcept<boost::property_tree::ptree_bad_path>
std::exception::what: No such node (advertising)
../tests/update/test-save-delete-prefix.cpp(213): last checkpoint
../tests/update/test-save-delete-prefix.cpp(207): Leaving test case "PrefixStillSavedAfterJustWithdrawn"; testing time: 78194us
../tests/update/test-save-delete-prefix.cpp(176): Leaving test suite "TestAdvertiseWithdrawPrefix"; testing time: 164758us
Updated by Junxiao Shi about 2 years ago
This bug does not occur in commit:ea94f830399fe1c9cd9919777a6e413f6b4185ce .
Updated by Davide Pesavento about 2 years ago
Indeed, it was fixed here https://github.com/named-data/NLSR/commit/30d96e48750cac510d950191c71dba91a49be7cf#diff-d823c92cf956931ae3fe1bae3e0c3cc917b0031e18b67b0f7bcfceb9461b8eda
Still not ideal, but we can close this issue for now.
Actions