MASTER network-manager crashes when wpasupplicant ctrl socket is not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| NetworkManager |
Fix Released
|
Critical
|
||
| network-manager (Ubuntu) |
High
|
Alexander Sack | ||
| wpasupplicant (Ubuntu) |
Medium
|
Unassigned |
Bug Description
Binary package hint: network-manager
network-manager crashes when it cannot connect to wpasupplicant ctrl socket.
A typical log for this issue looks like: from https:/
ep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) New wireless user key for network 'name' received.
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) scheduled...
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) started...
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) scheduled...
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) Stage 1 of 5 (Device Prepare) complete.
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) starting...
Sep 17 05:34:48 uber NetworkManager: <info> Activation (eth1/wireless): access point 'name' is encrypted, and a key exists. No new key needed.
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:49 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:50 uber NetworkManager: <info> supplicant_
Sep 17 05:34:51 uber NetworkManager: <info> supplicant_
Sep 17 05:34:51 uber NetworkManager: <info> supplicant_
Sep 17 05:34:51 uber NetworkManager: <info> supplicant_
Sep 17 05:34:51 uber NetworkManager: <info> SUP: sending command 'INTERFACE_ADD eth1^I^
Sep 17 05:34:51 uber NetworkManager: <info> SUP: response was 'OK'
Sep 17 05:34:51 uber NetworkManager: <info> Error opening control interface to supplicant.
Sep 17 05:34:51 uber NetworkManager: <WARN> real_act_
Sep 17 05:34:51 uber NetworkManager: <info> Activation (eth1) failure scheduled...
Sep 17 05:34:51 uber NetworkManager: <info> Activation (eth1) Stage 2 of 5 (Device Configure) complete.
Sep 17 05:34:51 uber NetworkManager: <info> Activation (eth1) failed for access point (name)
Sep 17 05:34:51 uber NetworkManager: <info> Activation (eth1) failed.
Sep 17 05:34:51 uber NetworkManager: <info> Deactivating device eth1.
Sep 17 05:34:51 uber NetworkManager: <WARN> nm_signal_
Sep 17 05:34:51 uber NetworkManager: ******************* START *******
Sep 17 05:34:53 uber NetworkManager: (no debugging symbols found)
Sep 17 05:34:53 uber NetworkManager: Using host libthread_db library "/lib/tls/
Sep 17 05:34:53 uber NetworkManager: (no debugging symbols found)
Sep 17 05:34:54 uber last message repeated 13 times
Sep 17 05:34:54 uber NetworkManager: [Thread debugging using libthread_db enabled]
Sep 17 05:34:54 uber NetworkManager: [New Thread -1212589632 (LWP 4650)]
Sep 17 05:34:54 uber NetworkManager: [New Thread -1229378672 (LWP 5612)]
Sep 17 05:34:54 uber NetworkManager: [New Thread -1220985968 (LWP 4765)]
Sep 17 05:34:54 uber NetworkManager: [New Thread -1212593264 (LWP 4759)]
Sep 17 05:34:54 uber NetworkManager: (no debugging symbols found)
Sep 17 05:34:54 uber last message repeated 3 times
Sep 17 05:34:54 uber NetworkManager: 0xffffe410 in __kernel_vsyscall ()
Sep 17 05:34:54 uber NetworkManager: ******************* END *******
Related branches
Changed in network-manager: | |
assignee: | nobody → asac |
importance: | Undecided → High |
status: | New → Confirmed |
unggnu (unggnu) wrote : | #1 |
Alexander Sack (asac) wrote : | #2 |
nggnu, please don't merge any master bugs, especially if I tell you 10 minutes ago that this issue is tracked in _this_ masterbug.
Alexander Sack (asac) wrote : | #3 |
unggnu ... my pardon ... i failed to see it wasn't you who marked this as duplicate.
Thanks for your contributions,
- Alexander
Apologies Alexander, it was me that duped this one. As the older bug #139966 seemed to be getting all the attention and this one appeared to be duplicating the NetworkManager log output I originally filed it seemed sensible to link.
Alexander, it appears to be a side-effect of patch
41t_nm_
Building without that has (so-far) given me good starts from cold every time.
I'll dig deeper into the source to see if I can pin-point the reason, but from a cursory glance it looks reasonably easy to solve.
Alexander Sack (asac) wrote : | #6 |
for network-manager i have a fix committed. After some cleanup I will upload it tomorrow.
Changed in network-manager: | |
status: | Confirmed → Fix Committed |
Alexander Sack (asac) wrote : | #7 |
For wpasupplicant I keep this bug open, because i am not sure if the behaviour we see here in the log is already tracked somewhere else. As you can see the global ctrl socket takes two seconds to come up ... though it finally succeeds, this is a pretty long time for just opening a unix socket.
Changed in wpasupplicant: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Alexander Sack (asac) wrote : | #8 |
network-manager (0.6.5-0ubuntu13) gutsy; urgency=low
* debian/
fix race/null-deref crash that happens if /e/n/i is not completely flushed out
by editor/
* debian/
for LP: #141233 - fix crash by not sending ctrl commands to supplicant if no ctrl
socket is open.
* debian/
* debian/
use two distinct variables to track and check connect attempt count to
supplicant and global supplicant socket. Fix bug that prevented network
manager from attempting to connect to supplicant ctrl for cases where
global control already took a long time to succeed. (LP: #141233).
* debian/
close global ctrl socket connection when nm_utils_
failed.
* debian/
because of overlapping change with 41t_* patch.
-- Alexander Sack <email address hidden> Fri, 21 Sep 2007 11:26:01 +0200
Changed in network-manager: | |
status: | Fix Committed → Fix Released |
Gavin McCullagh (gmccullagh) wrote : | #10 |
I've just the ubuntu13 version out having seen this issue up to now.
network-manager no longer seems to crash -- which is good -- though I still can't seem to switch reliably onto my WPA network, or off it again once that fails. I guess that's probably a wpa-supplicant issue?
Gavin McCullagh (gmccullagh) wrote : | #11 |
I seem to hae spoken too soon.
Before going further I'll point out that I'm using a bcm4318 card and the wireless-dev kernel tree in order to get a working driver for it. However, my friend sees the exact same issue using an Atheros card so I don't think that's the problem.
I have two ESSIDs, one WPA, one unencrypted. If I just boot the laptop with the card plugged in, I end up on the unencrypted network. If I try to switch to the encrypted one, I can't connect. Commonly network-manager would then die. Initially I presumed this issue was with the driver, so I reported it here with syslog, etc:
https:/
I have now tried the ubuntu13-i386 version of network-manager, downloading it by hand from the pool on archive.ubuntu.com. I got the same result as before, except that network-manager seemed somewhat more robust and didn't crash, the applet stayed working, showing it attempting to join the network. Some fiddling later (sorry I can't exactly describe what I did, but mainly trying to switch networks with the applet and iwconfig), network-manager crashed again with a similar error (I'll attach it in a moment).
Gavin McCullagh (gmccullagh) wrote : | #12 |
this is a log where I booted up first, then plugged in my wifi card once network-manager was working. It defaults onto the WPA network (GAV). I then try to switch it (via the nm-applet) to the unencrypted network and after a few seconds network-manager hangs.
Gavin McCullagh (gmccullagh) wrote : | #13 |
similar log of crash, this time booting up with the card present, defaults to unencrypted network (FON_GAV) and attempts to switch networks eventually cause crash of network-manager.
Alexander Sack (asac) wrote : | #14 |
please test the wpasupplicant provided at:
http://
Changed in network-manager: | |
status: | Unknown → New |
Gavin McCullagh (gmccullagh) wrote : | #15 |
tried it out. It doesn't seem to correct my problems (using wireless-dev kernel and bcm43xx).
attached is a log where I booted up, then inserted the bcm4318 pcmcia card. This gets it onto the wpa network, but once I try to switch to the unecnrypted one, it fails. iwconfig showed the ESSID did change after a few seconds, but after a little more time the essid went to off/any and attempts to go back on the WPA network also fail.
Erik Vetters (evetters) wrote : | #16 |
@asac
tried it out too. I have the same problems as in bug
https:/
Can I help with a little more debugging ... ?
Greetings
Erik
Reinhard Tartler (siretart) wrote : | #17 |
wpasupplicant (0.6.0+
* New upstream release
* remove patch 11_erroneous_
* remove patch 25_wpas_
[ Alexander Sack ]
* bumping upstream version to replace development version 0.6.0 with
this package from stable release branch.
* attempt to fix wierd timeout and high latency issues by going
back to stable upstream version (0.5.9) (LP: #140763,
LP: #141233).
-- Reinhard Tartler <email address hidden> Sun, 26 Aug 2007 16:06:57 +0200
Changed in wpasupplicant: | |
status: | Confirmed → Fix Released |
Luís Silva (luis) wrote : | #18 |
With wpasupplicant (0.6.0+
Gavin McCullagh (gmccullagh) wrote : | #19 |
[ posting by hand as email seemed to disappear ]
Ditto, moreorless.
gavinmc@tilly:~$ apt-cache policy wpasupplicant network-manager
wpasupplicant:
Installed: 0.6.0+0.
Candidate: 0.6.0+0.
Version table:
*** 0.6.0+0.
500 http://
100 /var/lib/
network-manager:
Installed: 0.6.5-0ubuntu14
Candidate: 0.6.5-0ubuntu14
Version table:
*** 0.6.5-0ubuntu14 0
500 http://
100 /var/lib/
To be specific, the situation has improved substantially, but issues still
exist. In the current session I have successfully switched from
unencrypted-
I switched from encrypted-
to reboot then) and prior to that I managed to crash network-manager. I'm
attaching logs from both sessions.
It's not totally finished yet, but it's definitely improving
Gavin McCullagh (gmccullagh) wrote : | #20 |
Gavin McCullagh (gmccullagh) wrote : | #21 |
Is/should this bug be regarded as release critical?
It's certainly not releasable quality in my experience.
unggnu (unggnu) wrote : | #22 |
Never had this issue again after fixed NetworkManager released.
Luís Silva (luis) wrote : | #23 |
This problem shows itself especially on unstable networks (lots of ap's within the same range).
I this it should be considered release critical.
Gavin McCullagh (gmccullagh) wrote : Re: [Bug 141233] Re: MASTER network-manager crashes when wpasupplicant ctrl socket is not available | #24 |
On 04/10/2007, unggnu <email address hidden> wrote:
>
> Never had this issue again after fixed NetworkManager released.
>
Unless there's a recent fix I didn't notice, it definitely wasn't fixed for
me at time of my last post to this bug.
unggnu (unggnu) wrote : | #25 |
I only had the startup issue and this has been fixed.
It's not a frequent bug, but I've seen it at least 2 times. I'm attaching daemon.log. Hardware is ipw3945.
snifer@
ii network-manager 0.6.5-0ubuntu16 network management framework daemon
ii network-
snifer@
ii wpasupplicant 0.6.0+0.
Changed in wpasupplicant: | |
status: | Fix Released → Confirmed |
Alex Mauer (hawke) wrote : | #27 |
I no longer have this problem.
Changed in network-manager: | |
status: | New → Fix Released |
Reinhard Tartler (siretart) wrote : | #28 |
the wpasupplicant part of this bug is not really a problem for wpa_supplicant when used standalone. It is however a problem when used with some frontend like network manager. For network-manager, it has been worked around by alexander, thanks for that.
I'm closing the bugtask for wpasupplicant for now, because from this bugtrail, it is not clear to me how to reproduce this nor how to fix this in wpasupplicant. If you are suffering from this bug in one or the other way, please open a new bug for clarity. thanks.
Changed in wpasupplicant: | |
status: | Confirmed → Invalid |
Changed in network-manager: | |
importance: | Unknown → Critical |
Thanks for help but isn't this a duplicate of https:/ /bugs.launchpad .net/ubuntu/ +source/ network- manager/ +bug/139966 ?