Thanks Adil, I had been looking for how to do that using gdb! The output I get is this:
(gdb) bt
#0 0x00007ffff6bad377 in ns3::Time::operator= (o=..., this=0x38)
at ./ns3/nstime.h:132
#1 ns3::TcpRateLinux::SkbSent (this=0x555558182970, skb=<optimised out>,
isStartOfTransmission=<optimised out>)
at ../src/internet/model/tcp-rate-ops.cc:229
#2 0x00007ffff6b45236 in ns3::TcpSocketBase::SendDataPacket (
this=0x555558192910, seq=..., maxSize=<optimised out>,
withAck=<optimised out>) at ../src/internet/model/tcp-socket-base.cc:3044
#3 0x00007ffff6b36a97 in ns3::TcpSocketBase::SendPendingData (
this=0x555558192910, withAck=true) at ./ns3/sequence-number.h:78
#4 0x00007ffff6b3cd0d in ns3::TcpSocketBase::ReceivedAck (
this=0x555558192910, packet=..., tcpHeader=...)
at ../src/internet/model/tcp-socket-base.cc:1877
#5 0x00007ffff6b3af79 in ns3::TcpSocketBase::ProcessEstablished (
this=0x555558192910, packet=..., tcpHeader=...)
at ./ns3/simple-ref-count.h:105
#6 0x00007ffff6b4855c in ns3::TcpSocketBase::DoForwardUp (
this=0x555558192910, packet=..., fromAddress=..., toAddress=...)
at ./ns3/simple-ref-count.h:105
#7 0x00007ffff6b3bb68 in ns3::TcpSocketBase::ForwardUp (this=0x555558192910,
packet=..., header=..., port=<optimised out>, incomingInterface=...)
at ./ns3/simple-ref-count.h:105
--Type <RET> for more, q to quit, c to continue without paging--RET
#8 0x00007ffff6b55d86 in ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::TcpSocketBase>, void (ns3::TcpSocketBase::*)(ns3::Ptr<ns3::Packet>, ns3::Ipv4Header, unsigned short, ns3::Ptr<ns3::Ipv4Interface>), void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Header, unsigned short, ns3::Ptr<ns3::Ipv4Interface>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=<optimised out>, a1=..., a2=...,
a3=<optimised out>, a4=...) at ./ns3/simple-ref-count.h:105
#9 0x00007ffff6a98803 in ns3::Callback<void, ns3::Ptr<ns3::Packet>, ns3::Ipv4Header, unsigned short, ns3::Ptr<ns3::Ipv4Interface>, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (a4=..., a3=<optimised out>, a2=..., a1=..., this=0x7fffffffca80) at ./ns3/simple-ref-count.h:105
#10 ns3::Ipv4EndPoint::ForwardUp (this=this@entry=0x5555572b0a80, p=..., header=..., sport=<optimised out>, incomingInterface=...) at ../src/internet/model/ipv4-end-point.cc:139
#11 0x00007ffff6aa52a8 in ns3::TcpL4Protocol::Receive (this=this@entry=0x555555f5fd50, packet=..., incomingIpHeader=..., incomingInterface=...) at ./ns3/simple-ref-count.h:105
#12 0x00007ffff6a7fc42 in ns3::Ipv4L3Protocol::LocalDeliver (this=0x555555f5fae0, packet=..., ip=..., iif=1) at ./ns3/simple-ref-count.h:105
#13 0x00007ffff6a87d5c in ns3::MemPtrCallbackImpl<ns3::Ipv4L3Protocol*, void (ns3::Ipv4L3Protocol::*)(ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, unsigned int), void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=<optimised out>, a1=..., a2=..., a3=<optimised out>)
at ./ns3/simple-ref-count.h:105
#14 0x00007ffff6bce4d2 in ns3::Callback<void, ns3::Ptr<ns3::Packet const>, ns3::Ipv4Header const&, unsigned int, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (
a3=<optimised out>, a2=..., a1=..., this=<optimised out>) at ./ns3/simple-ref-count.h:105
#15 ns3::Ipv4ListRouting::RouteInput (this=0x555555f5f670, p=..., header=..., idev=..., ucb=..., mcb=..., lcb=..., ecb=...) at ../src/internet/model/ipv4-list-routing.cc:155
#16 0x00007ffff6a7eaf0 in ns3::Ipv4L3Protocol::Receive (this=<optimised out>, device=..., p=..., protocol=<optimised out>, from=..., to=..., packetType=0) at ./ns3/simple-ref-count.h:105
#17 0x00007ffff6a87ee4 in ns3::MemPtrCallbackImpl<ns3::Ipv4L3Protocol*, void (ns3::Ipv4L3Protocol::*)(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=<optimised out>, a1=..., a2=..., a3=<optimised out>, a4=..., a5=..., a6=0) at ./ns3/simple-ref-count.h:105
#18 0x00007ffff686cc2b 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() (a6=<optimised out>, a5=..., a4=..., a3=2048, a2=..., a1=..., this=0x555555f603e0) at ./ns3/simple-ref-count.h:105
#19 ns3::TrafficControlLayer::Receive (this=0x555555f610b0, device=..., p=..., protocol=2048, from=..., to=..., packetType=<optimised out>) at ../src/traffic-control/model/traffic-control-layer.cc:331
#20 0x00007ffff6a88273 in ns3::MemPtrCallbackImpl<ns3::Ptr<ns3::TrafficControlLayer>, void (ns3::TrafficControlLayer::*)(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=<optimised out>, a1=..., a2=..., a3=<optimised out>, a4=..., a5=..., a6=0) at ./ns3/simple-ref-count.h:105
#21 0x00007ffff636e49d 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() (a6=<optimised out>, a5=..., a4=..., a3=2048, a2=..., a1=..., this=0x555555f672b0) at ./ns3/simple-ref-count.h:105
#22 ns3::Node::ReceiveFromDevice (this=0x555555f42410, device=..., packet=..., protocol=2048, from=..., to=..., packetType=<optimised out>, promiscuous=false) at ../src/network/model/node.cc:326
#23 0x00007ffff636e9f7 in ns3::Node::NonPromiscReceiveFromDevice (this=0x555555f42410, device=..., packet=..., protocol=<optimised out>, from=...) at ./ns3/simple-ref-count.h:105
#24 0x00007ffff637217c in ns3::MemPtrCallbackImpl<ns3::Node*, bool (ns3::Node::*)(ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&), bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (this=<optimised out>, a1=..., a2=..., a3=<optimised out>,
a4=...) at ./ns3/simple-ref-count.h:105
#25 0x00007ffff6473f69 in ns3::Callback<bool, ns3::Ptr<ns3::NetDevice>, ns3::Ptr<ns3::Packet const>, unsigned short, ns3::Address const&, ns3::empty, ns3::empty, ns3::empty, ns3::empty, ns3::empty>::operator() (a4=..., a3=<optimised out>, a2=..., a1=..., this=<optimised out>) at ./ns3/simple-ref-count.h:105
#26 ns3::PointToPointNetDevice::Receive (this=0x555555f5d860, packet=...) at ../src/point-to-point/model/point-to-point-net-device.cc:377
#27 0x00007ffff647e3ae in 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=<optimised out>) at ./ns3/simple-ref-count.h:105
#28 0x00007ffff619a6ce in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x555555621e00) at ../src/core/model/default-simulator-impl.cc:151
#29 0x00007ffff619a746 in ns3::DefaultSimulatorImpl::Run (this=0x555555621e00) at ../src/core/model/default-simulator-impl.cc:204
#30 0x00005555555a8caa in arcTrustGuardEff_AttackScale_PacketSize_Core (simulationIn=..., seedIn=<optimised out>, parameterIn=<optimised out>, iterationIn=<optimised out>)
at ../scratch/attack-scale-all/attack-scale-all.cc:3110
#31 0x000055555556d7bb in main (argc=10, argv=0x7fffffffdbd8) at /usr/include/c++/9/bits/basic_string.h:936
Some explanation:
On line 3110 of attack-scale-all.cc (of#30) is: Simulator::Run ();
Other than that (#30 & #31), I do not notice any references to code that I've written and it is not immeditately clear to me from the output, what the exact issue is..
A