ashlesh@ashlesh-dell:~/ndn-src/PSync/mini-ndn$ sudo gdb -p 31206 GNU gdb (Ubuntu 8.0.1-0ubuntu1) 8.0.1 Copyright (C) 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word". Attaching to process 31206 [New LWP 31211] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007f9f03649cd7 in __GI_epoll_pwait (epfd=5, events=events@entry=0x7fffbf7ee980, maxevents=maxevents@entry=128, timeout=-1, set=set@entry=0x0) at ../sysdeps/unix/sysv/linux/epoll_pwait.c:42 42 ../sysdeps/unix/sysv/linux/epoll_pwait.c: No such file or directory. (gdb) c Continuing. Thread 1 "psync-repo" received signal SIGSEGV, Segmentation fault. 0x00007f9f04756848 in ndn::Interest::matchesData (this=0x0, data=...) at ../src/interest.cpp:352 352 { (gdb) bt full #0 0x00007f9f04756848 in ndn::Interest::matchesData (this=0x0, data=...) at ../src/interest.cpp:352 fullNameLength = hasMinSuffixComponents = minSuffixComponents = hasMaxSuffixComponents = #1 0x00007f9f0473ab91 in ndn::Face::Impl::satisfyPendingInterests (this=0x560ef5c9e2e0, data=...) at ../src/detail/face-impl.hpp:133 entry = {> = {> = {}, _M_ptr = , _M_refcount = {_M_pi = 0x560ef6260070}}, } i = {_M_node = 0x560ef62493c0} hasAppMatch = hasForwarderMatch = #2 0x00007f9f0472ef78 in ndn::Face::onReceiveElement (this=0x7fffbf7ef440, blockFromDaemon=...) at ../src/face.cpp:410 data = {> = {> = {}, _M_ptr = 0x560ef62563a0, _M_refcount = {_M_pi = 0x560ef6256390}}, } lpPacket = {m_wire = { m_buffer = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }, m_begin = {_M_current = 0x0}, m_end = {_M_current = 0x0}, m_valueBegin = {_M_current = 0x0}, m_valueEnd = {_M_current = 0x0}, m_type = 100, m_size = 2, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x560ef61debb0, _M_finish = 0x560ef61dec00, _M_end_of_storage = 0x560ef61dec00}}, }}} netPacket = { m_buffer = {> = {> = {}, _M_ptr = 0x560ef6249450, _M_refcount = {_M_pi = 0x560ef6249440}}, }, m_begin = { _M_current = 0x560ef6243b70 "\006\375\002\267\a\024\b\005repo4\b\b"}, m_end = {_M_current = 0x560ef6243e2b "\366\016V"}, m_valueBegin = { _M_current = 0x560ef6243b74 "\a\024\b\005repo4\b\b"}, m_valueEnd = {_M_current = 0x560ef6243e2b "\366\016V"}, m_type = 6, m_size = 699, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, }} #3 0x00007f9f048fe46b in std::function::operator()(ndn::Block const&) const (__args#0=..., this=) at /usr/include/c++/7/bits/std_function.h:706 No locals. #4 ndn::Transport::receive (wire=..., this=) at ../src/transport/transport.hpp:137 No locals. ---Type to continue, or q to quit--- #5 ndn::StreamTransportImpl::processAllReceived (nBytesAvailable=699, offset=@0x7fffbf7eedd8: 0, buffer=0x560ef5fadd08 "\006\375\002\267\a\024\b\005repo4\b\b", this=0x560ef5fadcd0) at ../src/transport/stream-transport-impl.hpp:262 isOk = true element = { m_buffer = {> = {> = {}, _M_ptr = 0x560ef626fe80, _M_refcount = {_M_pi = 0x560ef626fe70}}, }, m_begin = { _M_current = 0x560ef5fbb570 "\006\375\002\267\a\024\b\005repo4\b\b"}, m_end = { _M_current = 0x560ef5fbb82b "[a^\027\251zF\261 UL\370\371Q\001"}, m_valueBegin = {_M_current = 0x560ef5fbb574 "\a\024\b\005repo4\b\b"}, m_valueEnd = {_M_current = 0x560ef5fbb82b "[a^\027\251zF\261 UL\370\371Q\001"}, m_type = 6, m_size = 699, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x0, _M_finish = 0x0, _M_end_of_storage = 0x0}}, }} #6 ndn::StreamTransportImpl::handleAsyncReceive (this=0x560ef5fadcd0, error=..., nBytesRecvd=) at ../src/transport/stream-transport-impl.hpp:231 __PRETTY_FUNCTION__ = "void ndn::StreamTransportImpl::handleAsyncReceive(const boost::system::error_code&, std::size_t) [with BaseTransport = ndn::UnixTransport; Protocol = boost::asio::local::strea"... offset = 0 #7 0x00007f9f048fdbdb in std::__invoke_impl::*&)(boost::system::error_code const&, unsigned long), std::shared_ptr >&, boost::system::error_code const&, unsigned long const&> (__t=..., __f=) at /usr/include/c++/7/bits/invoke.h:73 No locals. #8 std::__invoke::*&)(boost::system::error_code const&, unsigned long), std::shared_ptr >&, boost::system::error_code const&, unsigned long const&> (__fn= @0x7fffbf7eef60: (void (ndn::StreamTransportImpl::*)(ndn::StreamTransportImpl * const, const boost::system::error_code &, unsigned long)) 0x7f9f048fe0a0 ::handleAsyncReceive(boost::system::error_code const&, unsigned long)>) at /usr/include/c++/7/bits/invoke.h:95 No locals. #9 std::_Bind::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>::__call(std::tuple&&, std::_Index_tuple<0ul, 1ul, 2ul>) (__args=..., this=0x7fffbf7eef60) at /usr/include/c++/7/functional:467 ---Type to continue, or q to quit--- No locals. #10 std::_Bind::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>::operator()(boost::system::error_code const&, unsigned long const&) ( this=0x7fffbf7eef60) at /usr/include/c++/7/functional:551 No locals. #11 boost::asio::detail::binder2::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>, boost::system::error_code, unsigned long>::operator()() (this=0x7fffbf7eef60) at /usr/include/boost/asio/detail/bind_handler.hpp:127 No locals. #12 boost::asio::asio_handler_invoke::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>, boost::system::error_code, unsigned long> >(boost::asio::detail::binder2::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>, boost::system::error_code, unsigned long>&, ...) (function=...) at /usr/include/boost/asio/handler_invoke_hook.hpp:69 No locals. #13 boost_asio_handler_invoke_helpers::invoke::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>, boost::system::error_code, unsigned long>, std::_Bind::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)> >(boost::asio::detail::binder2::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>, boost::system::error_code, unsigned long>&, std::_Bind::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)>&) (context=..., function=...) at /usr/include/boost/asio/detail/handler_invoke_helpers.hpp:37 No locals. #14 boost::asio::detail::reactive_socket_recv_op::*(std::shared_ptr >, std::_Placeholder<1>, std::_Placeholder<2>))(boost::system::error_code const&, unsigned long)> >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long) (owner=0x560ef5c7da00, base=0x560ef61e25b0) at /usr/include/boost/asio/detail/reactive_socket_recv_op.hpp:110 ---Type to continue, or q to quit--- o = 0x560ef61e25b0 p = {h = 0x7fffbf7eef60, v = 0x0, p = 0x0} handler = { handler_ = {::*)(boost::system::error_code const&, unsigned long)>> = {::*)(boost::system::error_code const&, unsigned long)>> = {}, }, _M_f = (void (ndn::StreamTransportImpl::*)(ndn::StreamTransportImpl * const, const boost::system::error_code &, unsigned long)) 0x7f9f048fe0a0 ::handleAsyncReceive(boost::system::error_code const&, unsigned long)>, _M_bound_args = { >, std::_Placeholder<1>, std::_Placeholder<2> >> = {, std::_Placeholder<2> >> = { >> = {, true>> = {> = {}, }, }, , true>> = {> = {}, }, }, >, false>> = { _M_head_impl = {, (__gnu_cxx::_Lock_policy)2>> = {, (__gnu_cxx::_Lock_policy)2, false, false>> = {}, _M_ptr = 0x560ef5fadcd0, _M_refcount = { _M_pi = 0x560ef5fadcc0}}, }}, }, }}, arg1_ = {m_val = 0, m_cat = 0x7f9f045a60c8}, arg2_ = 699} #15 0x00007f9f04733a68 in boost::asio::detail::task_io_service_operation::complete (bytes_transferred=0, ec=..., owner=..., this=) at /usr/include/boost/asio/detail/task_io_service_operation.hpp:38 No locals. #16 boost::asio::detail::task_io_service::do_run_one (ec=..., this_thread=..., lock=..., this=0x560ef5c7da00) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:372 task_result = 0 on_exit = {task_io_service_ = 0x560ef5c7da00, lock_ = 0x7fffbf7eeff0, this_thread_ = 0x7fffbf7ef060} more_handlers = #17 boost::asio::detail::task_io_service::run (this=0x560ef5c7da00, ec=...) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:149 this_thread = { = { = {}, reusable_memory_ = 0x0}, private_op_queue = { = {}, front_ = 0x0, back_ = 0x0}, private_outstanding_work = 0} ctx = { = {}, key_ = 0x560ef5c7da00, value_ = 0x7fffbf7ef060, next_ = 0x0} lock = { = {}, mutex_ = @0x560ef5c7da30, locked_ = false} n = 4155 ---Type to continue, or q to quit--- #18 0x00007f9f0472a34e in boost::asio::io_service::run (this=0x560ef5c7d990) at /usr/include/boost/asio/impl/io_service.ipp:59 ec = {m_val = 0, m_cat = 0x7f9f045a60c8} #19 ndn::Face::doProcessEvents (this=0x7fffbf7ef440, timeout=..., keepThread=) at ../src/face.cpp:339 No locals. #20 0x0000560ef4ffefcf in ndn::Face::processEvents (keepThread=false, timeout=..., this=0x7fffbf7ef440) at /usr/local/include/ndn-cxx/face.hpp:454 No locals. #21 Producer::run (this=0x7fffbf7ef350) at ../tools/repo-exp.cpp:49 No locals. #22 0x0000560ef4ff301f in main (argc=, argv=) at ../tools/repo-exp.cpp:194 producer = {m_syncPrefix = {static npos = 18446744073709551615, m_wire = { m_buffer = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }, m_begin = {_M_current = 0x0}, m_end = {_M_current = 0x0}, m_valueBegin = {_M_current = 0x0}, m_valueEnd = {_M_current = 0x0}, m_type = 4294967295, m_size = 0, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x560ef5c7d810, _M_finish = 0x560ef5c7d860, _M_end_of_storage = 0x560ef5c7d860}}, }}}, m_userPrefix = {static npos = 18446744073709551615, m_wire = { m_buffer = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }, m_begin = {_M_current = 0x0}, m_end = {_M_current = 0x0}, m_valueBegin = {_M_current = 0x0}, m_valueEnd = {_M_current = 0x0}, m_type = 4294967295, m_size = 0, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x560ef5c7d870, _M_finish = 0x560ef5c7d8c0, _M_end_of_storage = 0x560ef5c7d8c0}}, }}}, m_chronoSyncPrefix = {static npos = 18446744073709551615, m_wire = { m_buffer = {> = {> = {}, _M_ptr = 0x0, _M_refcount = {_M_pi = 0x0}}, }, m_begin = {_M_current = 0x0}, m_end = {_M_current = 0x0}, m_valueBegin = {_M_current = 0x0}, m_valueEnd = {_M_current = 0x0}, m_type = 4294967295, m_size = 0, m_elements = { >> = { _M_impl = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_start = 0x560ef5c7d930, _M_finish = 0x560ef5c7d980, _M_end_of_storage = 0x560ef5c7d980}}, }}}, m_face = { = {}, _vptr.Face = 0x7f9f04a03570 , m_internalIoService = {_M_t = { _M_t = { >> = { >> = {, true>> = { to continue, or q to quit--- io::io_service>> = {}, }, }, > = { _M_head_impl = 0x560ef5c7d990}, }, }}}, m_ioService = @0x560ef5c7d990, m_transport = {> = {> = {}, _M_ptr = 0x560ef5c80130, _M_refcount = {_M_pi = 0x560ef5c80120}}, }, m_internalKeyChain = {_M_t = { _M_t = { >> = { >> = {, true>> = {> = {}, }, }, > = {_M_head_impl = 0x560ef5c7dae0}, }, }}}, m_nfdController = {_M_t = { _M_t = { >> = { >> = {, true>> = {> = {}, }, }, > = { _M_head_impl = 0x560ef5ca0540}, }, }}}, m_impl = {> = {> = {}, _M_ptr = 0x560ef5c9e2e0, _M_refcount = {_M_pi = 0x560ef5c9e2d0}}, }}, m_repo = {> = {> = {}, _M_ptr = 0x560ef5cc3e70, _M_refcount = {_M_pi = 0x560ef5cc3e60}}, }, m_scheduler = { = {}, m_timer = {_M_t = { _M_t = { >> = { >> = {, true>> = {> = {}, }, }, > = {_M_head_impl = 0x560ef5ca04a0}, }, }}}, m_queue = {_M_t = { _M_impl = { > >> = {<__gnu_cxx::new_allocator > >> = {}, }, > = {_M_key_compare = {}}, = {_M_header = {_M_color = std::_S_red, _M_parent = 0x560ef5ce1480, _M_left = 0x560ef5d649d0, _M_right = 0x560ef6021730}, _M_node_count = 100}, }}}, m_isEventExecuting = false}, m_nDataStreams = 100, m_syncSocket = {> = {> = {}, _M_ptr = 0x560ef5cf5430, _M_refcount = {_M_pi = 0x560ef5cf5420}}, }, m_mt = {static word_size = , static state_size = 624, static shift_size = , static mask_bits = , static xor_mask = , static tempering_u = , static tempering_d = , static tempering_s = , static tempering_b = , static tempering_t = , static tempering_c = , static tempering_l = , static initialization_multiplier = , static default_seed = , _M_x = {3733702582, 3094526609, 3929053137, ---Type to continue, or q to quit--- 2972285208, 1226230382, 2504958451, 2987387647, 1949598768, 3084838748, 1488870207, 1660748164, 2428056974, 1712443230, 3226393059, 4084971640, 3802486426, 2330007413, 4242663669, 4187289563, 1934882746, 324629994, 3346564915, 690051292, 3832842984, 3287805974, 4231930764, 929082328, 326280066, 2442436596, 546905144, 2676061103, 4041116785, 908647405, 1671209426, 3475663860, 958571461, 2729220611, 2377029066, 2684407442, 3117152080, 2065999300, 1873250647, 2900346090, 1944144378, 923508895, 1377001171, 2477347223, 4145356725, 3600314071, 2071495696, 1332958013, 3026627427, 816423967, 4275379413, 3096224561, 1459061922, 2157834531, 3856012834, 4158586602, 847193507, 3640740783, 3897557501, 954145590, 1891828110, 2979779892, 2109762061, 1117726103, 4097821709, 3144601577, 1151632964, 3488439164, 697397055, 429501707, 1760142596, 2838371961, 920299805, 1915410880, 1527024156, 1986701639, 2653507155, 3194642405, 3308530948, 2479558355, 3725252302, 1382201544, 2296686229, 1453400382, 2698361746, 580423316, 4229538196, 1886546776, 4183040722, 2625496100, 1401719320, 3319754321, 2692485358, 4178439790, 2434690130, 815865359, 1526785184, 3632648496, 3569623234, 32002480, 1965533260, 242595478, 3472561844, 3932476547, 1529054315, 3722125870, 3255148300, 2948974741, 162816090, 714239580, 3428644235, 1428823569, 2699850474, 2484595988, 1232648571, 154648053, 1318447680, 1522481263, 2347131975, 2621744654, 3783527302, 2901054140, 2704862846, 2889220910, 2715011984, 1099904896, 3666033074, 3980452976, 4089728600, 2090265005, 2541741677, 1190002521, 3409010792, 3474411724, 2930700620, 1938128312, 3650293990, 1705309337, 3644629642, 2698698597, 4038356758, 1102284343, 2631279275, 3288512081, 1681849880, 4253641495, 3020890312, 2806987567, 3818011468, 874028175, 575617235, 3848648459, 2416067246, 158219212, 1012546106, 1093775458, 2915373754, 3725995318, 4073178380, 4233520209, 1397867212, 2162685628, 3839412366, 1277227240, 976306885, 2574432118, 551996342, 74423319, 2984489200, 1585888302, 28324158, 3210226682, 849142949, 3293278145, 1831194294, 4272067523, 1107442895, 2934562814, 139969646, 8142922, 58694686, 1472901280, 1939568364, 1031023686, 2053418249, 1309668235, 1614968969, 2551572979, 630935148, 3018950149, 1425817296, 58486262, 2298304041, 1804845508, 173991970, 1385090425, 1389075089...}, _M_p = 114}, m_dis = {_M_param = {_M_a = 60, _M_b = 300}}, m_IBFSize = 200, m_keyChain = { = {}, m_pib = {_M_t = { _M_t = { >> = { >> = {, true>> = {> = {}, }, }, > = { _M_head_impl = 0x560ef5cc3430}, }, }}}, m_tpm = {_M_t = { _M_t = { >> = { >> = {, true>> = {> = {}, }, }, > = { _M_head_impl = 0x560ef5cc3330}, }, }}}, static s_defaultPibLocator = , static s_defaultTpmLocator = }}