[ndnSIM] Program received signal SIGSEGV

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Thu Dec 21 08:52:16 PST 2017


Hi,

I would suggest that you use the latest version of ndnSIM, so that we can better assist you.

Thanks,

Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171221/f0961784/attachment-0001.html>


More information about the ndnSIM mailing list