<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I would suggest that you use the latest version of ndnSIM, so that we can better assist you.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 21, 2017, at 12:11 PM, sqzheng <<a href="mailto:sqzheng@njnet.edu.cn" class="">sqzheng@njnet.edu.cn</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hello:<br class="">   Now I'm trying to implement NDN with Built-in Network Coding,and ndnSIM<br class="">I used is v1.0 because this version is easier for me to do this work.<br class="">But when running the "ndn-cache-nc.cpp" scenario, I have got a<br class="">Segmentation fault.I have used gdb to locate where the error occurs and<br class="">the information is as follows:<br class=""><br class="">Program received signal SIGSEGV, Segmentation fault.<br class="">0x00007ffff46e919a in ns3::Ptr<ns3::Node>::operator-> (this=0x20)<br class="">    at ./ns3/ptr.h:489<br class="">489<span class="Apple-tab-span" style="white-space:pre">  </span>  return m_ptr;<br class="">(gdb) where<br class="">#0  0x00007ffff46e919a in ns3::Ptr<ns3::Node>::operator-> (this=0x20)<br class="">    at ./ns3/ptr.h:489<br class="">#1  0x00007ffff483da03 in ns3::ndn::Face::operator< (this=0x714600, face=...)<br class="">    at ../src/ndnSIM/model/<a href="http://ndn-face.cc:260" class="">ndn-face.cc:260</a><br class="">#2  0x00007ffff4828493 in ns3::ndn::pit::OutgoingFace::operator< (<br class="">    this=0x14a9270, m=...) at ./ns3/ndn-pit-entry-outgoing-face.h:84<br class="">#3  0x00007ffff482b81b in<br class="">std::less<ns3::ndn::pit::OutgoingFace>::operator() (<br class="">    this=0x1bbc268, __x=..., __y=...)<br class="">    at /usr/include/c++/4.9/bits/stl_function.h:371<br class="">#4  0x00007ffff482b776 in std::_Rb_tree<ns3::ndn::pit::OutgoingFace,<br class="">ns3::ndn::pit::OutgoingFace, std::_Identity<ns3::ndn::pit::OutgoingFace>,<br class="">std::less<ns3::ndn::pit::OutgoingFace>,<br class="">std::allocator<ns3::ndn::pit::OutgoingFace> >::_M_lower_bound<br class="">(this=0x1bbc268, __x=0x14a9250, __y=0x1bbc270, __k=...)<br class="">    at /usr/include/c++/4.9/bits/stl_tree.h:1277<br class="">#5  0x00007ffff482a3d9 in std::_Rb_tree<ns3::ndn::pit::OutgoingFace,<br class="">ns3::ndn::pit::OutgoingFace, std::_Identity<ns3::ndn::pit::OutgoingFace>,<br class="">std::less<ns3::ndn::pit::OutgoingFace>,<br class="">std::allocator<ns3::ndn::pit::OutgoingFace> >::find (<br class="">    this=0x1bbc268, __k=...) at /usr/include/c++/4.9/bits/stl_tree.h:1926<br class="">#6  0x00007ffff4828dff in std::set<ns3::ndn::pit::OutgoingFace,<br class="">std::less<ns3::ndn::pit::OutgoingFace>,<br class="">std::allocator<ns3::ndn::pit::OutgoingFace> >::find (<br class="">    this=0x1bbc268, __x=...) at /usr/include/c++/4.9/bits/stl_set.h:706<br class="">#7  0x00007ffff4826f04 in<br class="">ns3::ndn::ForwardingStrategy::WillSatisfyPendingInterest (this=0x7140a0,<br class="">inFace=..., pitEntry=...)<br class="">---Type <return> to continue, or q <return> to quit---<br class="">    at ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc:476" class="">ndn-forwarding-strategy.cc:476</a><br class="">#8  0x00007ffff481d57e in<br class="">ns3::ndn::fw::GreenYellowRed::WillSatisfyPendingInterest (this=0x7140a0,<br class="">inFace=..., pitEntry=...)<br class="">    at ../src/ndnSIM/model/fw/<a href="http://green-yellow-red.cc:103" class="">green-yellow-red.cc:103</a><br class="">#9  0x00007ffff4824a3c in ns3::ndn::ForwardingStrategy::OnInterest (<br class="">    this=0x7140a0, inFace=..., interest=...)<br class="">    at ../src/ndnSIM/model/fw/<a href="http://ndn-forwarding-strategy.cc:215" class="">ndn-forwarding-strategy.cc:215</a><br class="">#10 0x00007ffff481e73c in ns3::ndn::fw::Nacks::OnInterest (this=0x7140a0,<br class="">    inFace=..., interest=...) at ../src/ndnSIM/model/fw/<a href="http://nacks.cc:83" class="">nacks.cc:83</a><br class="">#11 0x00007ffff4845c51 in<br class="">ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::ndn::ForwardingStrategy>, void<br class="">(ns3::ndn::ForwardingStrategy::*)(ns3::Ptr<ns3::ndn::Face>,<br class="">ns3::Ptr<ns3::ndn::Interest>), void, ns3::Ptr<ns3::ndn::Face>,<br class="">ns3::Ptr<ns3::ndn::Interest>, ns3::empty, ns3::empty, ns3::empty,<br class="">ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()<br class="">(this=0x714570, a1=..., a2=...) at ./ns3/callback.h:412<br class="">#12 0x00007ffff483e0bd in ns3::Callback<void, ns3::Ptr<ns3::ndn::Face>,<br class="">ns3::Ptr<ns3::ndn::Interest>, ns3::empty, ns3::empty, ns3::empty,<br class="">ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator()<br class="">(this=0x714508, a1=..., a2=...)<br class="">    at ./ns3/callback.h:1095<br class="">#13 0x00007ffff483d5b3 in ns3::ndn::Face::ReceiveInterest (this=0x7144e0,<br class="">    interest=...) at ../src/ndnSIM/model/<a href="http://ndn-face.cc:212" class="">ndn-face.cc:212</a><br class="">#14 0x00007ffff483d14f in ns3::ndn::Face::Receive (this=0x7144e0, p=...)<br class="">    at ../src/ndnSIM/model/<a href="http://ndn-face.cc:180" class="">ndn-face.cc:180</a><br class="">#15 0x00007ffff4847d44 in ns3::ndn::NetDeviceFace::ReceiveFromNetDevice (<br class="">---Type <return> to continue, or q <return> to quit---<br class="">    this=0x7144e0, device=..., p=..., protocol=30583, from=..., to=...,<br class="">    packetType=ns3::NetDevice::PACKET_HOST)<br class="">    at ../src/ndnSIM/model/<a href="http://ndn-net-device-face.cc:132" class="">ndn-net-device-face.cc:132</a><br class="">#16 0x00007ffff4848a6b in<br class="">ns3::MemPtrCallbackImpl<ns3::ndn::NetDeviceFace*, void<br class="">(ns3::ndn::NetDeviceFace::*)(ns3::Ptr<ns3::NetDevice>,<br class="">ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&,<br class="">ns3::Address const&, ns3::NetDevice::PacketType), void,<br class="">ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short,<br class="">ns3::Address const&, ns3::Address const&, ns3::NetDevice::PacketType,<br class="">ns3::empty, ns3::empty, ns3::empty>::operator() (this=0x7145a0, a1=...,<br class="">a2=...,<br class="">    a3=30583, a4=..., a5=..., a6=ns3::NetDevice::PACKET_HOST)<br class="">    at ./ns3/callback.h:454<br class="">#17 0x00007fffef52523b in ns3::Callback<void, ns3::Ptr<ns3::NetDevice>,<br class="">ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&,<br class="">ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty,<br class="">ns3::empty>::operator() (<br class="">    this=0x70f758, a1=..., a2=..., a3=30583, a4=..., a5=...,<br class="">    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:1137<br class="">#18 0x00007fffef522ae3 in ns3::Node::ReceiveFromDevice (this=0x70fb70,<br class="">    device=..., packet=..., protocol=30583, from=..., to=...,<br class="">    packetType=ns3::NetDevice::PACKET_HOST, promiscuous=true)<br class="">    at ../src/network/model/<a href="http://node.cc:316" class="">node.cc:316</a><br class="">#19 0x00007fffef521ffc in ns3::Node::PromiscReceiveFromDevice (this=0x70fb70,<br class="">    device=..., packet=..., protocol=30583, from=..., to=...,<br class="">    packetType=ns3::NetDevice::PACKET_HOST) at<br class="">../src/network/model/<a href="http://node.cc:281" class="">node.cc:281</a><br class="">---Type <return> to continue, or q <return> to quit---<br class="">#20 0x00007fffef52acd7 in ns3::MemPtrCallbackImpl<ns3::Node*, bool<br class="">(ns3::Node::*)(ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>,<br class="">unsigned short, ns3::Address const&, ns3::Address const&,<br class="">ns3::NetDevice::PacketType), bool, ns3::Ptr<ns3::NetDevice>,<br class="">ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&,<br class="">ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty,<br class="">ns3::empty>::operator() (this=0x7145d0, a1=..., a2=..., a3=30583, a4=...,<br class="">a5=...,<br class="">    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:454<br class="">#21 0x00007ffff693819f in ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>,<br class="">ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&,<br class="">ns3::Address const&, ns3::NetDevice::PacketType, ns3::empty, ns3::empty,<br class="">ns3::empty>::operator() (<br class="">    this=0x711790, a1=..., a2=..., a3=30583, a4=..., a5=...,<br class="">    a6=ns3::NetDevice::PACKET_HOST) at ./ns3/callback.h:1137<br class="">#22 0x00007ffff20a4b20 in ns3::PointToPointNetDevice::Receive (this=0x711660,<br class="">    packet=...) at<br class="">../src/point-to-point/model/<a href="http://point-to-point-net-device.cc:345" class="">point-to-point-net-device.cc:345</a><br class="">#23 0x00007ffff20b3cf2 in ns3::EventImpl* ns3::MakeEvent<void<br class="">(ns3::PointToPointNetDevice::*)(ns3::Ptr<ns3::Packet>),<br class="">ns3::Ptr<ns3::PointToPointNetDevice>, ns3::Ptr<ns3::Packet> >(void<br class="">(ns3::PointToPointNetDevice::*)(ns3::Ptr<ns3::Packet>),<br class="">ns3::Ptr<ns3::PointToPointNetDevice>,<br class="">ns3::Ptr<ns3::Packet>)::EventMemberImpl1::Notify() (this=0x1a3c800) at<br class="">./ns3/make-event.h:124<br class="">#24 0x00007fffeee0a97d in ns3::EventImpl::Invoke (this=0x1a3c800)<br class="">    at ../src/core/model/<a href="http://event-impl.cc:45" class="">event-impl.cc:45</a><br class="">#25 0x00007fffeee0f246 in ns3::DefaultSimulatorImpl::ProcessOneEvent (<br class="">    this=0x70f9b0) at ../src/core/model/<a href="http://default-simulator-impl.cc:140" class="">default-simulator-impl.cc:140</a><br class="">---Type <return> to continue, or q <return> to quit---<br class="">#26 0x00007fffeee0f5c0 in ns3::DefaultSimulatorImpl::Run (this=0x70f9b0)<br class="">    at ../src/core/model/<a href="http://default-simulator-impl.cc:193" class="">default-simulator-impl.cc:193</a><br class="">#27 0x00007fffeee0b658 in ns3::Simulator::Run ()<br class="">    at ../src/core/model/<a href="http://simulator.cc:161" class="">simulator.cc:161</a><br class="">#28 0x0000000000407c81 in main (argc=1, argv=0x7fffffffde18)<br class="">    at ../src/ndnSIM/examples/<a href="http://ndn-cache-nc.cc:99" class="">ndn-cache-nc.cc:99</a><br class=""><br class="">    So what should I do to solve this problem?<br class="">    Thanks in advance.<br class="">                                                                     Regards<br class="">                                                                  Shaoqi<br class="">Zheng<br class=""><br class=""></div></div></blockquote></div><br class=""></div></body></html>