0x00007ffff4d3f69e in ns3::GUID_address::GUID_address (this=0x7fffffffcab0) at ./ns3/GUID_address.h:29
29 class GUID_address //: public Address
Missing separate debuginfos, use: debuginfo-install atlas-3.8.4-10.fc19.x86_64 glibc-2.17-21.fc19.x86_64 gsl-1.15-8.fc19.x86_64 libgcc-4.8.3-7.fc19.x86_64 libstdc++-4.8.3-7.fc19.x86_64
(gdb) bt
#0 0x00007ffff4d3f69e in ns3::GUID_address::GUID_address (this=0x7fffffffcab0) at ./ns3/GUID_address.h:29
#1 0x00007ffff4d5f9c1 in ns3::GUID::GetGUIDaddress (this=0x0) at ../src/medeha/model/GUID.cc:103====> here the Null pointer
#2 0x00007ffff4d32219 in ns3::MeDeHaDtnRouting::SendHello (this=0x672b60) at ../src/medeha/model/medeha-dtn-routing.cc:746
#3 0x00007ffff4d33066 in ns3::MeDeHaDtnRouting::HelloTimerExpire (this=0x672b60) at ../src/medeha/model/medeha-dtn-routing.cc:982
#4 0x00007ffff4d44ef1 in ns3::EventImpl* ns3::MakeEvent<void (ns3::MeDeHaDtnRouting::*)(), ns3::MeDeHaDtnRouting*>(void (ns3::MeDeHaDtnRouting::*)(), ns3::MeDeHaDtnRouting*)::EventMemberImpl0::Notify() (this=0x620f60) at ./ns3/make-event.h:94
#5 0x00007ffff0817225 in ns3::EventImpl::Invoke (this=0x620f60) at ../src/core/model/event-impl.cc:45
#6 0x00007ffff081bf97 in ns3::DefaultSimulatorImpl::ProcessOneEvent (this=0x67c7e0) at ../src/core/model/default-simulator-impl.cc:141
#7 0x00007ffff081c33b in ns3::DefaultSimulatorImpl::Run (this=0x67c7e0) at ../src/core/model/default-simulator-impl.cc:194
#8 0x00007ffff0818030 in ns3::Simulator::Run () at ../src/core/model/simulator.cc:161
#9 0x000000000040e9fb in main (argc=1, argv=0x7fffffffded8) at ../scratch/adhoc2nodes.cc:175
if I go to previous file function which is SendHello() at line 746 there
void
MeDeHaDtnRouting::SendHello ()
{
NS_LOG_FUNCTION (this);
Ptr<Packet> packet = Create<Packet> ();
uint16_t addressCounter = 0;
Ipv4Address address[1];
Ptr<GUID> GUIDnode = m_node->GetObject< GUID > ();
GUID_address guidaddr= GUIDnode->GetGUIDaddress();=========> This line making the error.
//std::cout<<"guid address"<<guidaddr<<"\n";
Ipv4Address loopback ("127.0.0.1");
for (uint32_t i = 0; i < m_ipv4->GetNInterfaces (); i++)
{
Ipv4Address addr = m_ipv4->GetAddress (i, 0).GetLocal ();
if (addr != loopback &&
addr != m_mainAddress)
{
//ipv4AddressAlternate = addr;
address[addressCounter] = addr;
addressCounter++;
}
}