Project

General

Profile

Bug #3607

NFD with Full Names

Added by Michael Sweatt about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
04/25/2016
Due date:
% Done:

0%

Estimated time:

Description

NFD segfaults when receiving interests with full names.

(gdb) bt
#0 nfd::name_tree::Entry::erasePitEntry (this=0xa142a0, pitEntry=std::shared_ptr (count 6, weak 0) 0xac63c0)
at ../daemon/table/name-tree-entry.cpp:103
#1 0x0000000000534312 in nfd::Pit::erase (this=this@entry=0x891ad8,
pitEntry=std::shared_ptr (count 6, weak 0) 0xac63c0) at ../daemon/table/pit.cpp:119
#2 0x00000000004ba91c in nfd::Forwarder::onInterestFinalize (this=0x891950,
pitEntry=std::shared_ptr (count 6, weak 0) 0xac63c0, isSatisfied=, dataFreshnessPeriod=...)
at ../daemon/fw/forwarder.cpp:371
#3 0x00000000004c1d8f in boost::mfi::mf3, bool, boost::chrono::duration > const&>::operator() (a3=..., a2=, a1=...,
p=, this=) at /usr/include/boost/bind/mem_fn_template.hpp:393
#4 boost::_bi::list4boost::_bi::value<nfd::Forwarder*, boost::_bi::valuestd::shared_ptr<nfd::pit::Entry >, boost::_bi::value, boost::_bi::value > > >::operator(), bool, boost::chrono::duration > const&>, boost::_bi::list0> (a=, f=..., this=)
at /usr/include/boost/bind/bind.hpp:457
#5 boost::_bi::bind_t, bool, boost::chrono::duration > const&>, boost::_bi::list4boost::_bi::value<nfd::Forwarder*, boost::_bi::valuestd::shared_ptr<nfd::pit::Entry >, boost::_bi::value, boost::_bi::value > > > >::operator() (this=) at /usr/include/boost/bind/bind.hpp:893
#6 std::_Function_handler, bool, boost::chrono::duration > const&>, boost::_bi::list4boost::_bi::value<nfd::Forwarder*, boost::_bi::valuestd::shared_ptr<nfd::pit::Entry >, boost::_bi::value, boost::_bi::value > > > > >::_M_invoke(std::_Any_data const&) (
__functor=...) at /usr/include/c++/5/functional:1871
#7 0x00007ffff7467722 in std::function::operator()() const (this=0x7fffffffd710)
at /usr/include/c++/5/functional:2271
#8 ndn::util::scheduler::Scheduler::onEvent (this=0x86f910, error=...) at ../src/util/scheduler.cpp:182
#9 0x00007ffff7467e10 in std::_Mem_fn_base::operator() (
object=, this=0x7fffffffd7a0)
at /usr/include/c++/5/functional:600
#10 std::_Bind (ndn::util::scheduler::Scheduler*, std::_Placeholder)>::
call(std::tuple&&, std::_Index_tuple) (_args=, this=0x7fffffffd7a0)
at /usr/include/c++/5/functional:1074
#11 std::_Bind (ndn::util::scheduler::Scheduler*, std::_Placeholder)>::operator()(boost::system::error_code const&) (this=0x7fffffffd7a0) at /usr/include/c++/5/functional:1133
#12 boost::asio::detail::binder1 (ndn::util::scheduler::Scheduler*, std::_Placeholder)>, boost::system::error_code>::operator()()
(this=0x7fffffffd7a0) at /usr/include/boost/asio/detail/bind_handler.hpp:47
#13 boost::asio::asio_handler_invoke (ndn::util::scheduler::Scheduler*, std::_Placeholder)>, boost::system::error_code> >(boost::asio::detail::binder1 (ndn::util::scheduler::Scheduler*, std::_Placeholder)>, boost::system::error_code>&, ...) (function=...) at /usr/include/boost/asio/handler_invoke_hook.hpp:69
#14 boost_asio_handler_invoke_helpers::invoke (ndn::util::scheduler::Scheduler*, std::_Placeholder)>, boost::system::error_code>, std::_Bind (ndn::util::scheduler::Scheduler*, std::_Placeholder)> >(boost::asio::detail::binder1 (ndn::util::scheduler::Schedule---Type to continue, or q to quit---


Files

consumer.cpp (1.17 KB) consumer.cpp The consumer Michael Sweatt, 04/25/2016 02:59 PM
producer.cpp (1.3 KB) producer.cpp The producer Michael Sweatt, 04/25/2016 02:59 PM
data.txt (126 Bytes) data.txt A data packet that was failing Michael Sweatt, 04/25/2016 02:59 PM

Related issues

Copied to NFD - Bug #3608: Pit::erase crash if Interest name contains implicit digestClosedJunxiao Shi04/25/2016

Actions

Also available in: Atom PDF