Strange Error of munmap_chunk()

31 views
Skip to first unread message

Hassam Mughal

unread,
May 2, 2020, 1:47:03 PM5/2/20
to ns-3-users
Greetings Everyone!
I am getting this strange error and cannot get any idea through this gdb debug as well;

error.PNG

Any help or guidance in this regard will be highly appreciated.
Thanks
Best Regards,
Hassam

Hassam Mughal

unread,
May 2, 2020, 2:03:13 PM5/2/20
to ns-3-users
On changing the node's speed from 20 m/s to 10 m/s, I am getting following issue in my flow monitor.

Error1.PNG

My flowmonitor code is as follows;
// Print per flow statistics
 flowmon->CheckForLostPackets ();
 
Ptr<Ipv4FlowClassifier> classifier = DynamicCast<Ipv4FlowClassifier> (flowmonHelper.GetClassifier ());
 std
::map<FlowId, FlowMonitor::FlowStats> stats = flowmon->GetFlowStats ();


 
for (std::map<FlowId, FlowMonitor::FlowStats>::const_iterator iter = stats.begin (); iter != stats.end (); ++iter)
 
{
 
Ipv4FlowClassifier::FiveTuple t = classifier->FindFlow (iter->first);


 NS_LOG_UNCOND
( "  Flow " << iter->first << " (" << t.sourceAddress << " -> " << t.destinationAddress << ")\n");
 NS_LOG_UNCOND
( "  Tx Bytes:   " << iter->second.txBytes << "\n");
 NS_LOG_UNCOND
( "  Rx Bytes:   " << iter->second.rxBytes << "\n");
 NS_LOG_UNCOND
( "  Throughput: " << iter->second.rxBytes * 8.0 / (TotalTime - m_dataStart) / 1000 / 1000 << " Mbps\n");
 NS_LOG_UNCOND
( "  Rx Segments: " << iter->second.rxPackets << "\n");
 NS_LOG_UNCOND
( "  Lost packets: " << iter->second.lostPackets << "\n");
 NS_LOG_UNCOND
( "  Packet Delivery Fraction: " << (float) iter->second.rxBytes / iter->second.txBytes * 100 << " %\n");
 NS_LOG_UNCOND
( "  Average End-to-end Delay: " << iter->second.delaySum / iter->second.rxPackets / 1000 << " us\n");
 NS_LOG_UNCOND
( "  Throughput: " << iter->second.rxBytes * 8.0 / (iter->second.timeLastRxPacket.GetSeconds()-iter->second.timeFirstTxPacket.GetSeconds()) / 1024 / 1024 << " Mbps");


 
}




 flowmon
->SerializeToXmlFile ((tr_name + ".flowmon").c_str(), true, true);

Hassam Mughal

unread,
May 2, 2020, 4:56:00 PM5/2/20
to ns-3-users
After commenting the flowmonitor code, I am getting following error;

Error2.PNG



On Sunday, May 3, 2020 at 2:47:03 AM UTC+9, Hassam Mughal wrote:
Reply all
Reply to author
Forward
0 new messages