Project

General

Profile

Actions

Bug #5151

closed

TestAdvertiseWithdrawPrefix fails with ptree_bad_path exception

Added by Davide Pesavento about 3 years ago. Updated about 2 years ago.

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
Actions #1

Updated by Davide Pesavento about 3 years ago

May be caused by #4845

Actions #2

Updated by Junxiao Shi about 2 years ago

This bug does not occur in commit:ea94f830399fe1c9cd9919777a6e413f6b4185ce .

Actions #4

Updated by Junxiao Shi about 2 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF