(gdb) bt full #0 main (argc=1, argv=0x7fffffffded8) at producer.cpp:100 producer = { = {}, m_face = warning: can't find linker symbol for virtual table for `ndn::Face' value { = {}, _vptr.Face = 0x7ffff7ffe168, m_internalIoService = std::unique_ptr containing 0x14, m_ioService = @0x40344a, m_transport = , m_internalKeyChain = std::unique_ptr containing 0x7fffffffddb0, m_nfdController = std::unique_ptr containing 0x403467 <_GLOBAL__sub_I_main()+19>, m_impl = std::shared_ptr (count -998029078, weak 1096637191) 0x2}, m_keyChain = { = {}, m_pib = std::unique_ptr containing 0x5958575655545352, m_tpm = std::unique_ptr containing 0x0, static s_defaultPibLocator = , static s_defaultTpmLocator = }} (gdb) next 101 ndn::examples::Producer producer; (gdb) next 103 producer.run(); (gdb) bt full #0 main (argc=1, argv=0x7fffffffded8) at producer.cpp:103 producer = { = {}, m_face = { = {}, _vptr.Face = 0x7ffff7bb66c0 , m_internalIoService = std::unique_ptr containing 0x624ef0, m_ioService = @0x624ef0, m_transport = std::shared_ptr (count 1, weak 0) 0x64a2a0, m_internalKeyChain = std::unique_ptr containing 0x625040, m_nfdController = std::unique_ptr containing 0x649870, m_impl = std::shared_ptr (count 1, weak 1) 0x64dc20}, m_keyChain = { = {}, m_pib = std::unique_ptr containing 0x671f40, m_tpm = std::unique_ptr containing 0x671500, static s_defaultPibLocator = , static s_defaultTpmLocator = }} (gdb) next [New Thread 0x7ffff2f0d700 (LWP 6369)] Thread 1 "a.out" received signal SIGSEGV, Segmentation fault. 0x00007ffff78feb05 in std::__shared_ptr::__shared_ptr(std::__shared_ptr&&) (__r=, this=) at /usr/include/c++/5/bits/shared_ptr_base.h:936 936 __r._M_ptr = 0; (gdb) bt full #0 0x00007ffff78feb05 in std::__shared_ptr::__shared_ptr(std::__shared_ptr&&) (__r=, this=) at /usr/include/c++/5/bits/shared_ptr_base.h:936 No locals. #1 std::shared_ptr::shared_ptr(std::shared_ptr&&) (__r=, this=) at /usr/include/c++/5/bits/shared_ptr.h:230 No locals. #2 ndn::Block::Block (this=0x7fffffffc930, type=23, value=) at ../src/encoding/block.cpp:147 No locals. #3 0x00007ffff7a4d317 in ndn::security::v2::KeyChain::sign (this=this@entry=0x625040, buf=0x676ec2 "\b\tlocalhost\b\003nfd\b\003rib\b\bregister\b\031h\027\a\022\b\aexample\b\atestAppl\001\001\b\b", size=size@entry=125, keyName=..., digestAlgorithm=digestAlgorithm@entry=ndn::DigestAlgorithm::SHA256) at ../src/security/v2/key-chain.cpp:678 No locals. #4 0x00007ffff7a5233d in ndn::security::v2::KeyChain::sign (this=0x625040, interest=..., params=...) at ../src/security/v2/key-chain.cpp:450 keyName = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 7 '\a', m_end = 0 '\000', m_valueBegin = 8 '\b', m_valueEnd = 0 '\000', m_type = 7, m_size = 38, m_elements = std::vector of length 4, capacity 4 = {{m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 108 'l', m_valueEnd = 8 '\b', m_type = 8, m_size = 11, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 111 'o', m_valueEnd = 8 '\b', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}, { m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 75 'K', m_valueEnd = 8 '\b', m_type = 8, m_size = 5, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 0 '\000', m_valueBegin = 209 '\321', m_valueEnd = 0 '\000', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}}}} sigInfo = {m_type = 1, m_hasKeyLocator = true, m_keyLocator = {m_type = ndn::KeyLocator::KeyLocator_Name, m_name = {static npos = 18446744073709551615, m_wire = { m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 7 '\a', m_end = 0 '\000', m_valueBegin = 8 '\b', m_valueEnd = 0 '\000', m_type = 7, m_size = 38, m_elements = std::vector of length 4, capacity 4 = {{m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 108 'l', m_valueEnd = 8 '\b', m_type = 8, m_size = 11, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 111 'o', m_valueEnd = 8 '\b', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}, { m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 75 'K', m_valueEnd = 8 '\b', m_type = 8, m_size = 5, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 27, weak 0) 0x675a40, m_begin = 8 '\b', m_end = 0 '\000', m_valueBegin = 209 '\321', m_valueEnd = 0 '\000', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}}}}, m_keyDigest = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = , m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_otherTlvs = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = { = {_M_next = 0x7fffffffcb20, _M_prev = 0x7fffffffcb20}, _M_data = 0}}}, }, m_wire = { m_buffer = std::shared_ptr (count 1, weak 0) 0x677430, m_begin = 22 '\026', m_end = 0 '\000', m_valueBegin = 27 '\033', m_valueEnd = 0 '\000', m_type = 22, m_size = 45, m_elements = std::vector of length 0, capacity 0}} signedName = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 7 '\a', m_end = 0 '\000', m_valueBegin = 8 '\b', m_valueEnd = 0 '\000', m_type = 7, m_size = 127, m_elements = std::vector of length 8, capacity 8 = {{m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 108 'l', m_valueEnd = 8 '\b', m_type = 8, m_size = 11, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 110 'n', m_valueEnd = 8 '\b', m_type = 8, m_size = 5, m_elements = std::vector of length 0, capacity 0}, { ---Type to continue, or q to quit--- m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 114 'r', m_valueEnd = 8 '\b', m_type = 8, m_size = 5, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 114 'r', m_valueEnd = 8 '\b', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 104 'h', m_valueEnd = 8 '\b', m_type = 8, m_size = 27, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 0 '\000', m_valueEnd = 8 '\b', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}, { m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 8 '\b', m_valueBegin = 71 'G', m_valueEnd = 8 '\b', m_type = 8, m_size = 10, m_elements = std::vector of length 0, capacity 0}, {m_buffer = std::shared_ptr (count 9, weak 0) 0x6774a0, m_begin = 8 '\b', m_end = 0 '\000', m_valueBegin = 22 '\026', m_valueEnd = 0 '\000', m_type = 8, m_size = 47, m_elements = std::vector of length 0, capacity 0}}}} sigValue = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = #5 0x00007ffff79c5242 in ndn::security::CommandInterestSigner::makeCommandInterest (this=this@entry=0x649888, name=..., params=...) at ../src/security/command-interest-signer.cpp:59 commandInterest = { = { = {m_tags = std::map with 0 elements}, }, > = { _M_weak_this = std::weak_ptr (empty) 0x0}, m_name = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_selectors = { m_minSuffixComponents = -1, m_maxSuffixComponents = -1, m_publisherPublicKeyLocator = {m_type = ndn::KeyLocator::KeyLocator_None, m_name = {static npos = 18446744073709551615, m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_keyDigest = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = , m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_exclude = {m_entries = std::map with 0 elements, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_childSelector = 0, m_mustBeFresh = false, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_nonce = { m_boostOptional = {> = { = {}, m_initialized = false, m_storage = {dummy_ = { data = "\000\000\000", aligner_ = {}}}}, }}, m_interestLifetime = {rep_ = 4000}, m_forwardingHint = {m_isSorted = true, m_dels = std::vector of length 0, capacity 0}, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = } #6 0x00007ffff796f088 in ndn::nfd::Controller::startCommand(std::shared_ptr const&, ndn::nfd::ControlParameters const&, std::function const&, std::function const&, ndn::nfd::CommandOptions const&) (this=this@entry=0x649870, command=std::shared_ptr (count 1, weak 0) 0x6723b0, parameters=..., onSuccess1=..., onFailure1=..., options=...) at ../src/mgmt/nfd/controller.cpp:62 onSuccess = @0x7fffffffcf60: {> = {> = {}, }, = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = {_M_object = 0x672640, _M_const_object = 0x672640, _M_function_pointer = 0x672640, _M_member_pointer = (void (std::_Undefined_class::*)(std::_Undefined_class * const)) 0x672640, this adjustment 140737353996392}, _M_pod_data = "@&g\000\000\000\000\000h\330\375\367\377\177\000"}, _M_manager = 0x7ffff7920370 , std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::nfd::ControlParameters const&)#1}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager, std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::nfd::ControlParameters const&)#1}> const&, std::_Manager_operation)>}, _M_invoker = 0x7ffff7924690 , std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::nfd::ControlParameters const&)#1}>::_M_invoke(std::_Any_data const&, ndn::nfd::ControlParameters const&)>} onFailure = @0x7fffffffcf80: {> = {> = {}, }, = {static _M_max_size = 16, static _M_max_align = 8, _M_functor = {_M_unused = {_M_object = 0x672680, _M_const_object = 0x672680, ---Type to continue, or q to quit--- _M_function_pointer = 0x672680, _M_member_pointer = (void (std::_Undefined_class::*)(std::_Undefined_class * const)) 0x672680, this adjustment 140737353995536}, _M_pod_data = "\200&g\000\000\000\000\000\020\325\375\367\377\177\000"}, _M_manager = 0x7ffff7920270 , std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::mgmt::ControlResponse const&)#2}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager, std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::mgmt::ControlResponse const&)#2}> const&, std::_Manager_operation)>}, _M_invoker = 0x7ffff7923250 , std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&)::{lambda(ndn::mgmt::ControlResponse const&)#2}>::_M_invoke(std::_Any_data const&, ndn::mgmt::ControlResponse const&)>} requestName = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = } interest = { = { = {m_tags = std::map with 0 elements}, }, > = { _M_weak_this = std::weak_ptr (empty) 0x0}, m_name = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_selectors = { m_minSuffixComponents = -1, m_maxSuffixComponents = -1, m_publisherPublicKeyLocator = {m_type = ndn::KeyLocator::KeyLocator_None, m_name = {static npos = 18446744073709551615, m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_keyDigest = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = , m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_exclude = {m_entries = std::map with 0 elements, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_childSelector = 0, m_mustBeFresh = false, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_nonce = { m_boostOptional = {> = { = {}, m_initialized = false, m_storage = {dummy_ = { data = "\000\000\000", aligner_ = {}}}}, }}, m_interestLifetime = {rep_ = 4000}, m_forwardingHint = {m_isSorted = true, m_dels = std::vector of length 0, capacity 0}, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = } #7 0x00007ffff792b6ce in ndn::nfd::Controller::start(ndn::nfd::ControlParameters const&, std::function const&, std::function const&, ndn::nfd::CommandOptions const&) (options=..., onFailure=..., onSuccess=..., parameters=..., this=0x649870) at ../src/detail/../mgmt/nfd/controller.hpp:80 command = std::shared_ptr (count 1, weak 0) 0x6723b0 #8 ndn::Face::Impl::registerPrefix(ndn::Name const&, std::shared_ptr, std::function const&, std::function, std::allocator > const&)> const&, unsigned long, ndn::nfd::CommandOptions const&) (this=, prefix=..., filter=std::shared_ptr (count 3, weak 0) 0x6758d0, onSuccess=..., onFailure=..., flags=flags@entry=1, options=...) at ../src/detail/face-impl.hpp:296 record = std::shared_ptr (count 5, weak 0) 0x0 params = { = {_vptr.ControlParameters = 0x7ffff7bb9218 }, m_hasFields = std::vector of length 15, capacity 64 = {1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0}, m_name = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_faceId = 0, m_uri = "", m_localUri = "", m_origin = ndn::nfd::ROUTE_ORIGIN_APP, m_cost = 0, m_capacity = 0, m_count = 0, m_flags = 1, m_mask = 0, m_strategy = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_expirationPeriod = {rep_ = 0}, m_facePersistency = ndn::nfd::FACE_PERSISTENCY_PERSISTENT, m_baseCongestionMarkingInterval = {rep_ = 0}, m_defaultCongestionThreshold = 6432968, m_wire = {m_buffer = std::shared_ptr (count 3, weak 0) 0x6753a0, m_begin = 104 'h', m_end = 0 '\000', m_valueBegin = 7 '\a', m_valueEnd = 0 '\000', m_type = 104, m_size = 25, m_elements = std::vector of length 0, capacity 0}} #9 0x00007ffff791b9c8 in ndn::Face::setInterestFilter(ndn::InterestFilter const&, std::function const&, std::function const&, std::function, std::allocator > const&)> const&, ndn::security::SigningInfo const&, unsigned long) ( this=0x7fffffffdd78, interestFilter=..., onInterest=..., onSuccess=..., onFailure=..., signingInfo=..., flags=1) at ../src/face.cpp:255 ---Type to continue, or q to quit--- options = {static DEFAULT_TIMEOUT = {rep_ = 10000}, static DEFAULT_PREFIX = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_timeout = {rep_ = 10000}, m_prefix = {static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_signingInfo = {m_type = ndn::security::SigningInfo::SIGNER_TYPE_NULL, m_name = {static npos = 18446744073709551615, m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_identity = {m_impl = std::weak_ptr (empty) 0x0}, m_key = {m_impl = std::weak_ptr (empty) 0x0}, m_digestAlgorithm = ndn::DigestAlgorithm::SHA256, m_info = {m_type = -1, m_hasKeyLocator = false, m_keyLocator = {m_type = ndn::KeyLocator::KeyLocator_None, m_name = { static npos = 18446744073709551615, m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_keyDigest = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = , m_wire = {m_buffer = std::shared_ptr (empty) 0x0, m_begin = }, m_otherTlvs = { >> = { _M_impl = { >> = {<__gnu_cxx::new_allocator >> = {}, }, _M_node = { = {_M_next = 0x7fffffffd8f8, _M_prev = 0x7fffffffd8f8}, _M_data = 0}}}, }, m_wire = { m_buffer = std::shared_ptr (empty) 0x0, m_begin = }}} #10 0x0000000000403e26 in ndn::examples::Producer::run (this=0x7fffffffdd70) at producer.cpp:46 No locals. #11 0x000000000040332e in main (argc=1, argv=0x7fffffffded8) at producer.cpp:103 producer = { = {}, m_face = { = {}, _vptr.Face = 0x7ffff7bb66c0 , m_internalIoService = std::unique_ptr containing 0x624ef0, m_ioService = @0x624ef0, m_transport = std::shared_ptr (count 1, weak 0) 0x64a2a0, m_internalKeyChain = std::unique_ptr containing 0x625040, m_nfdController = std::unique_ptr containing 0x649870, m_impl = std::shared_ptr (count 1, weak 1) 0x64dc20}, m_keyChain = { = {}, m_pib = std::unique_ptr containing 0x671f40, m_tpm = std::unique_ptr containing 0x671500, static s_defaultPibLocator = , static s_defaultTpmLocator = }} (gdb)