|
Bugzilla – Full Text Bug Listing |
| Summary: | utils/bench-packets is broken and asserts | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Rajib Bhattacharjea <raj.b> |
| Component: | general | Assignee: | Mathieu Lacage <mathieu.lacage> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ns-bugs |
| Priority: | P3 | ||
| Version: | ns-3-dev | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Rajib Bhattacharjea
2008-09-12 14:48:13 UTC
How to reproduce: ./waf --shell gdb ./build/debug/utils/bench-packets (gdb) set args --n=100 (gdb) r Starting program: /home/raj/code.nsnam.org/ns-3-dev/build/debug/utils/bench-packets --n=100 [Thread debugging using libthread_db enabled] Running bench-packets with n=100 a=100000 packets/s b=inf packets/s c=100000 packets/s d=100000 packets/s Error: attempting to enable the packet metadata subsystem too late in the simulation, which is not allowed. A common cause for this problem is to enable ASCII tracing after sending any packets. One way to fix this problem is to call ns3::PacketMetadata::Enable () near the beginning of the program, before any packets are sent. [New Thread 0xb6c5eb00 (LWP 9075)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb6c5eb00 (LWP 9075)] 0xb7b97a3d in ns3::PacketMetadata::Enable () at ../src/common/packet-metadata.cc:53 53 NS_ASSERT_MSG (!m_metadataSkipped, (gdb) bt #0 0xb7b97a3d in ns3::PacketMetadata::Enable () at ../src/common/packet-metadata.cc:53 #1 0xb7bc092d in ns3::Packet::EnablePrinting () at ../src/common/packet.cc:469 #2 0x0804b604 in main (argc=0, argv=0xbf9315cc) at ../utils/bench-packets.cc:285 changeset 79a21524565f |