Public bug reported:

Binary package hint: network-manager-gnome

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-monitor tarball and
the ./debian dir from the old network-manager (modified))

Crash is:

Starting program: /home/pcjc2/source/nm-applet-0.6.5/src/nm-applet --sm-disable
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_get_network_key_callback (
    result=GNOME_KEYRING_RESULT_OK, found_list=0x0, data=0x83cd710)
    at applet-dbus-info.c:117
warning: Source file is more recent than executable.
117                     nm_gconf_wso_set_key (gconf_wso, found->secret, strlen 
(found->secret));
(gdb) bt
#0  0x0805fa9c in nmi_dbus_get_network_key_callback (
    result=GNOME_KEYRING_RESULT_OK, found_list=0x0, data=0x83cd710)
    at applet-dbus-info.c:117
#1  0xb7fa0a28 in ?? () from /usr/lib/libgnome-keyring.so.0
#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_RESULT_OK status, as there is no error 
per-se (I think), but a NULL (empty) glist. It then proceeds
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-manager and
reloading nm-applet causes the crash to recur.

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-manager-gnome binary being dropped out of network-manager.

Regards,

Peter Clifton

** Affects: network-manager (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Segfault retrieving passphrase for WiFi network
https://bugs.launchpad.net/bugs/121228
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to