|
Bugzilla – Full Text Bug Listing |
| Summary: | OLSR & ascii tracing triggers assertion: packet-metadata.cc, line=1043, cond="GetTotalSize () == data.GetSize ()" | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Component: | core | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | P1 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Gustavo J. A. M. Carneiro
2007-09-24 06:48:23 UTC
It seems this bug in particular is caused by PacketMetadata::Enable () being called in the middle of a simulation, after the first packet was sent. In my example I was starting the OLSR agents before enabling ascii tracing. Explanation: the OLSR agent receives a packet, creates a subset of the packet, and later retransmits it to other nodes, it happens in this case that it receives a packet with no metadata, and tries to re-transmit it with new prepended headers, thereby triggering the assertion, because by then we have a packet with only partial metadata. I'll try to come up with a patch to detect this particular case and give a clear error message explaining what to do (calling PacketMetadata::Enable () at the top solves this problem). |