network-manager fails to stop properly when connected to wireless
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Invalid
|
Undecided
|
Alexander Sack |
Bug Description
Binary package hint: network-manager
NetworkManager hangs the shutdown process for me if connected to a network.
I rebooted several times, doing nothing but set up the network and then restarting and each time this was reproducible.
Steps to Reproduce:
1. Set the kernel to boot without the quiet option, so it's possible to see what's happening (or whichever option it was)
2. Connect computer to wireless
3. Logout -> Restart
The restart hangs at killing NetworkManager.
Pressing the power button at this point makes the process start over, this time shutting down instead of restarting, and it succeeds in killing NM.
There is a warning between system-
(Note: on the one time I tried this when I had hibernated in between, pressing the button didn't work and I had to hold it down and power down without shutting down cleanly.)
I am running an up-to-date Gutsy install that was updated from Feisty.
Wireless card: ipw3945
More information.
This also occurs (and seems to occur more often) after a suspend (for significantly long, like one hour) and seems to be caused by NetworkManager hanging and so it will not respond to a stop command. Also, when this happens, nm-applet is stuck on displaying old information, i.e. I'm still connected to the network I was on before I suspended.
When the latter case happens, running top shows that it is at 100% CPU. I tried to attach a debugger to get a stack trace, but gdb crashed and I did not have pstack installed. The next time this happens, I will try pstack.
However, there aren't any symbols in the binary, so I don't know how much use it'll be.
My guess is that there are some critical points of NetworkManager's execution that cause it to behave very badly to a stop command and this gets triggered when it's told to shut down at the wrong time.