Bugzilla – Full Text Bug Listing |
Summary: | Visualizer crashes decoding a transmitted packet shorter than 23 bytes. | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Ted Gao <supergao222> |
Component: | visualizer | Assignee: | Gustavo J. A. M. Carneiro <gjcarneiro> |
Status: | CONFIRMED --- | ||
Severity: | major | CC: | ns-bugs, tomh, tommaso.pecorella |
Priority: | P3 | ||
Version: | ns-3-dev | ||
Hardware: | PC | ||
OS: | Linux | ||
Bug Depends on: | 1785 | ||
Bug Blocks: | |||
Attachments: | patch to fix it, builds on top of bug 1785 |
Description
Ted Gao
2013-04-25 22:50:19 EDT
Debugger: see http://en.wikipedia.org/wiki/Debugger I know debugging a program with the visualizer module enabled isn't for all, but still... Anyway, the bug isn't in the core. And it isn't in the WiFi either. The bug is: Visualizer hooks the WiFiNetDevice::NotifyTx function. PyWiz::TraceNetDevTxWifi will attempt to deserialize the WiFiMacHeader. Which is NOT there, as it's added later on by WiFiMac (actually even below). The only header available at that stage is LlcSnapHeader. This, at least, is what I could find. The ball goes to the visualizer master. I am not sure how this happened, but somewhere along the way ns-3 must have changed the way it reports packets in wifi trace hooks. I'm pretty sure it used to have a WifiMacHeader, but it must have been removed at some point and I didn't notice this problem. Anyway, I filed bug 1785 for the wifi part, and I will attach a corresponding patch for pyviz that fixes the issue. Created attachment 1689 [details] patch to fix it, builds on top of bug 1785 |