[gutsy] segfault retrieving passphrase for WiFi network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNOME Keyring |
Fix Released
|
Low
|
|||
gnome-keyring (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
network-manager (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
Binary package hint: network-
After upgrading to nm-applet 0.6.5, nm-applet would segfault upon trying to retrieve the passphrase for my network.
(Ok, not a released Ubuntu package, but pre-empting the release a tiny bit by rolling my own from a vanilla gnome-network-
Crash is:
Starting program: /home/pcjc2/
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1214376256 (LWP 32363)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1214376256 (LWP 32363)]
0x0805fa9c in nmi_dbus_
result=
at applet-
warning: Source file is more recent than executable.
117 nm_gconf_
(gdb) bt
#0 0x0805fa9c in nmi_dbus_
result=
at applet-
#1 0xb7fa0a28 in ?? () from /usr/lib/
#2 0x00000000 in ?? ()
Patch is attached which fixed the issue for me - I just had to re-enter the passphrase afterwards, and all was ok.
It seems like gnome-keyring didn't find any matching keys (when network-manager expected to find one for a network it already knew).
nm-applet gets passed a GNOME_KEYRING_
to use that glist without checking its length.
Reverting the patch, nm-applet doesn't crash again (presumably as it now finds the key which the patched version successfully stored)
Quitting nm-applet, deleting the key in gnome-keyring-
Probably ought to get pushed upstream - but I'm keen that Ubuntu gets a heads-up on this since there have already been issues with the
network-
Regards,
Peter Clifton
Related branches
Changed in network-manager: | |
importance: | Undecided → High |
Changed in gnome-keyring: | |
status: | Unknown → Fix Released |
Changed in gnome-keyring: | |
importance: | Unknown → Low |
Funny - even with patch applied, all is not 100% normal.
After loading patched nm-applet:
the network is found
when I click on it prompts for a passphrase
NM connects to the network
The passphrase is stored in the keyring
NM disconnects the network
I then have to re-select it before the network will stay connected. (Perhaps the disconnect is related to storing the passphrase in the keyring?)