[Ns-bugs] [Bug 381] Wifi crashes on shutdown
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Tue Jul 7 05:13:51 PDT 2009
http://www.nsnam.org/bugzilla/show_bug.cgi?id=381
Nicola Baldo <nbaldo at cttc.es> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nbaldo at cttc.es
--- Comment #2 from Nicola Baldo <nbaldo at cttc.es> 2009-07-07 08:13:51 EDT ---
(In reply to comment #0)
> Sorry, I don't have code to reproduce this problem, but my colleague
> occasionally gets a segfault when calling Simulator::Destroy(). The bug
> appears to be inside the wifi module. Here's a valgrind error:
I can reproduce this bug. I am using a slightly modified version of ns-3.5, the
only differences being:
- a custom application
- a custom trace sink for wifi events (connected to DevTxTrace, DevRxTrace,
PhyRxOkTrace, PhyRxErrorTrace, PhyTxTrace, and PhyStateTrace)
- WIFI_PREAMBLE_SHORT used instead of WIFI_PREAMBLE_LONG in mac-low.cc
------------------- gdb output --------------------
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6c36700 (LWP 11593)]
0xb7e35e5a in ns3::MacLow::CancelAllEvents (this=0x9d1db28) at
../src/devices/wifi/mac-low.cc:331
331 m_listener->Cancel ();
(gdb) back
#0 0xb7e35e5a in ns3::MacLow::CancelAllEvents (this=0x9d1db28) at
../src/devices/wifi/mac-low.cc:331
#1 0xb7e36168 in ns3::MacLow::DoDispose (this=0x9d1db28) at
../src/devices/wifi/mac-low.cc:274
#2 0xb7bea88f in ns3::Object::MaybeDelete (this=0x9d1db28) at
../src/core/object.cc:254
#3 0xb7e449d8 in ns3::DcaTxop::DoDispose (this=0x9d1dee0) at
optimized/ns3/object.h:355
#4 0xb7bea88f in ns3::Object::MaybeDelete (this=0x9d1dee0) at
../src/core/object.cc:254
#5 0xb7e647b0 in ns3::NqapWifiMac::DoDispose (this=0x9d1da20) at
optimized/ns3/object.h:355
#6 0xb7bea7b8 in ns3::Object::Dispose (this=0x9d1da20) at
../src/core/object.cc:137
#7 0xb7e71a95 in ns3::WifiNetDevice::DoDispose (this=0x9d1d910) at
../src/devices/wifi/wifi-net-device.cc:76
#8 0xb7bea7b8 in ns3::Object::Dispose (this=0x9d1d910) at
../src/core/object.cc:137
#9 0xb7cf5484 in ns3::Node::DoDispose (this=0x9cf9250) at
../src/node/node.cc:155
#10 0xb7bea7b8 in ns3::Object::Dispose (this=0x9cf9250) at
../src/core/object.cc:137
#11 0xb7d0eb16 in ~NodeListPriv (this=0x9cf94b8) at
../src/node/node-list.cc:110
#12 0xb7bea8a3 in ns3::Object::MaybeDelete (this=0x9cf94b8) at
../src/core/object.cc:265
#13 0xb7d0faf0 in ns3::NodeListPriv::Delete () at optimized/ns3/object.h:355
#14 0xb7c9018c in Notify (this=0x9cfb6f0) at ../src/simulator/make-event.cc:19
#15 0xb7c77810 in ns3::EventImpl::Invoke (this=0x9d1e058) at
../src/simulator/event-impl.cc:39
#16 0xb7c87a9b in ns3::DefaultSimulatorImpl::Destroy (this=0x9cfb2c0) at
../src/simulator/default-simulator-impl.cc:83
#17 0xb7c7b298 in ns3::Simulator::Destroy () at
../src/simulator/simulator.cc:131
#18 0x0805064d in main (argc=2, argv=0xbfb0d414) at
../examples/wifi-voip-ns3-like-extreme.cc:277
(gdb)
(gdb) print m_listener
$2 = (class ns3::MacLowTransmissionListener *) 0x9d1e058
(gdb) info locals
oneRunning = true
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Ns-bugs
mailing list