Bugzilla – Bug 814
Function logging causing assert in wireless examples
Last modified: 2010-02-18 14:55:51 UTC
Try export 'NS_LOG=*=function|prefix_func|prefix_time'. Then try to run examples/wireless/wifi-simple-adhoc. I am getting an assert. I tried this on a few other examples outside of the wireless directory, and it seemed to run fine. I also tried other logging levels on the wireless examples (info, debug, warn) but these ran fine.
I've tracked this down to a recent change in dca-txop.cc, http://code.nsnam.org/ns-3-dev/diff/dba5c9b69c3b/src/devices/wifi/dca-txop.cc Specifically, the issue is with #define NS_LOG_APPEND_CONTEXT std::clog << "[mac=" << m_low->GetAddress () << "] "; That m_low looks to be null at some point and is causing a seg. fault. I'm not 100% sure what is trying to be accomplished, so I can't really make a patch. I've CC'd the author of the change though, so that hopefully this bug can be resolved.
Thank you very much Josh!I'll try to fix it very soon.
I have made a new changeset for this bug in ns-3-dev. Now all should run fine. Let me know Josh. Thank you again.