[Ns-bugs] [Bug 468] New: Test for possibly unreachable code-- please file a bug report, with a test case, if this is ever hit

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Tue Jan 13 08:04:10 PST 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=468

           Summary: Test for possibly unreachable code-- please file a bug
                    report, with a test case, if this is ever hit
           Product: ns-3
           Version: ns-3.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: internet-stack
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: lally.singh at gmail.com
   Estimated Hours: 0.0


Hi, I've got a simple application protocol that simulates a game engine.  A
single server and a parametric number of clients.

When I run it with 18 clients, it runs fine.  32 clients, I get that error
message.

Here's a stack trace:
#0  0xfe9f28c8 in ns3::ArpL3Protocol::Lookup (this=0x8086568, packet={m_ptr =
0x80bfd88}, destination={m_address = 167837965}, 
    cache={m_ptr = 0x808fde0}, hardwareDestination=0x80463d0) at
../src/internet-stack/arp-l3-protocol.cc:224
224                   NS_FATAL_ERROR ("Test for possibly unreachable code--
please file a bug report, with a test case, if this is ever hit");
(gdb) bt
#0  0xfe9f28c8 in ns3::ArpL3Protocol::Lookup (this=0x8086568, packet={m_ptr =
0x80bfd88}, destination={m_address = 167837965}, 
    cache={m_ptr = 0x808fde0}, hardwareDestination=0x80463d0) at
../src/internet-stack/arp-l3-protocol.cc:224
#1  0xfe9ed6db in ns3::ArpIpv4Interface::SendTo (this=0x8086398, p={m_ptr =
0x80bfd88}, dest={m_address = 167837965})
    at ../src/internet-stack/arp-ipv4-interface.cc:138
#2  0xfe9b5c10 in ns3::Ipv4Interface::Send (this=0x8086398, p={m_ptr =
0x80bfd88}, dest={m_address = 167837965})
    at ../src/internet-stack/ipv4-interface.cc:169
#3  0xfe9c01f5 in ns3::Ipv4L3Protocol::SendRealOut (this=0x8085710, found=true,
route=@0x808f9d0, packet={m_ptr = 0x80bfd88}, 
    ipHeader=@0x8046b30) at ../src/internet-stack/ipv4-l3-protocol.cc:638
#4  0xfe9c9f7a in ns3::MemPtrCallbackImpl<ns3::Ipv4L3Protocol*, void
(ns3::Ipv4L3Protocol::*)(bool, ns3::Ipv4Route const&, ns3::Ptr<ns3::Packet>,
ns3::Ipv4Header const&), void, bool, ns3::Ipv4Route const&,
ns3::Ptr<ns3::Packet>, ns3::Ipv4Header const&, ns3::empty,
ns3::empty>::operator() (this=0x80c9e08, a1=true, a2=@0x808f9d0, a3={m_ptr =
0x80bfd88}, a4=@0x8046b30) at callback.h:213
#5  0xfe9c6075 in ns3::Callback<void, bool, ns3::Ipv4Route const&,
ns3::Ptr<ns3::Packet>, ns3::Ipv4Header const&, ns3::empty,
ns3::empty>::operator() (this=0x80468a0, a1=true, a2=@0x808f9d0, a3={m_ptr =
0x80bfd88}, a4=@0x8046b30) at callback.h:378
#6  0xfe9cf14e in ns3::Ipv4StaticRouting::RequestRoute (this=0x8084078,
ifIndex=4294967295, ipHeader=@0x8046b30, packet=
      {m_ptr = 0x80bfd88}, routeReply={<ns3::CallbackBase> = {m_impl = {m_ptr =
0x80c9e08}}, <No data fields>})
    at ../src/internet-stack/ipv4-static-routing.cc:562
#7  0xfe9bb504 in ns3::Ipv4L3Protocol::Lookup (this=0x8085710,
ifIndex=4294967295, ipHeader=@0x8046b30, packet=
      {m_ptr = 0x80bfd88}, routeReply={<ns3::CallbackBase> = {m_impl = {m_ptr =
0x80c9e08}}, <No data fields>})
    at ../src/internet-stack/ipv4-l3-protocol.cc:238
#8  0xfe9bb0a7 in ns3::Ipv4L3Protocol::Lookup (this=0x8085710,
ipHeader=@0x8046b30, packet={m_ptr = 0x80bfd88}, routeReply=
          {<ns3::CallbackBase> = {m_impl = {m_ptr = 0x80c9e08}}, <No data
fields>})
    at ../src/internet-stack/ipv4-l3-protocol.cc:220
#9  0xfe9bf7d1 in ns3::Ipv4L3Protocol::Send (this=0x8085710, packet={m_ptr =
0x80bfd88}, source={m_address = 167837953}, 
    destination={m_address = 167837965}, protocol=17 '\021') at
../src/internet-stack/ipv4-l3-protocol.cc:604
#10 0xfe9d40b9 in ns3::UdpL4Protocol::Send (this=0x80811f8, packet={m_ptr =
0x80bfd88}, saddr={m_address = 167837953}, daddr=
      {m_address = 167837965}, sport=9, dport=49153) at
../src/internet-stack/udp-l4-protocol.cc:205
#11 0xfe9fb8a3 in ns3::UdpSocketImpl::DoSendTo (this=0x80a15b8, p={m_ptr =
0x80ea600}, dest={m_address = 167837965}, port=49153)
    at ../src/internet-stack/udp-socket-impl.cc:354
#12 0xfe9fbdcc in ns3::UdpSocketImpl::SendTo (this=0x80a15b8, p={m_ptr =
0x80ea600}, flags=0, address=@0x8047020)
    at ../src/internet-stack/udp-socket-impl.cc:387
#13 0xfea6ab0f in TorqueServer::SendToAllClients (this=0x80956a8) at
../src/applications/torque/server_app.cc:368
#14 0xfea6d584 in ns3::Ptr<ns3::EventImpl> ns3::Simulator::MakeEvent<void
(TorqueServer::*)(), TorqueServer*>(void (TorqueServer::*)(),
TorqueServer*)::EventMemberImpl0::Notify () at simulator.h:703
#15 0xfe8ee633 in ns3::EventImpl::Invoke (this=0x80b6a08) at
../src/simulator/event-impl.cc:53
#16 0xfe906d85 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x807fb08)
at ../src/simulator/default-simulator-impl.cc:125
#17 0xfe906fe3 in ns3::DefaultSimulatorImpl::Run (this=0x807fb08) at
../src/simulator/default-simulator-impl.cc:155
#18 0xfe8ef943 in ns3::Simulator::Run () at ../src/simulator/simulator.cc:145
#19 0x08057a33 in main (args=2, argv=0x8047550) at ../scratch/torquesim.cc:98
(gdb) quit

It's 1535 lines of total code in my simulator.  Holla if you want it.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list