After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 593196 - nm-applet crashes in a VNC session
nm-applet crashes in a VNC session
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nm-applet
git master
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
Depends on:
Blocks:
 
 
Reported: 2009-08-26 18:00 UTC by Jeffrey Bastian
Modified: 2009-08-27 14:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (1014 bytes, patch)
2009-08-26 18:02 UTC, Jeffrey Bastian
none Details | Review

Description Jeffrey Bastian 2009-08-26 18:00:24 UTC
Description of problem:
I just started a VNC server on Fedora 11 PowerPC and nm-applet crashed leaving
behind these errors:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(nm-applet:2295): GLib-WARNING **: GError set over the top of a previous GError
or uninitialized memory.                                                        
This indicates a bug in someone's code. You must ensure an error is NULL before
it's set.                                                                       
The overwriting error message was: Connection ":1.63" is not allowed to own the
service "org.freedesktop.NetworkManagerUserSettings" due to security policies
in the configuration file                                                       

** (nm-applet:2295): WARNING **: <WARN>  request_name(): Could not acquire the
NetworkManagerUserSettings service.                                             
  Message: ''                                                                   

*** glibc detected *** /usr/bin/nm-applet: double free or corruption (out):
0x100da040 ***
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version-Release number of selected component (if applicable):
NetworkManager-0.7.1-8.git20090708.fc11.ppc
NetworkManager-gnome-0.7.1-8.git20090708.fc11.ppc

How reproducible:
every time

Steps to Reproduce:
1. vncserver

Actual results:
nm-applet is started by Gnome, but it crashes
manually trying to start nm-applet crashes in the same way

Expected results:
no crash
Comment 1 Jeffrey Bastian 2009-08-26 18:01:13 UTC
A backtrace from the crash:

  • #0 *__GI_raise
    at ../nptl/sysdeps/unix/sysv/linux/raise.c line 64
  • #1 *__GI_abort
    at abort.c line 88
  • #2 __libc_message
    at ../sysdeps/unix/sysv/linux/libc_fatal.c line 170
  • #3 malloc_printerr
  • #4 IA__g_free
    at gmem.c line 190
  • #5 IA__g_error_free
    at gerror.c line 125
  • #6 request_name
    at applet-dbus-manager.c line 152
  • #7 applet_dbus_manager_start_service
    at applet-dbus-manager.c line 415
  • #8 constructor
    at applet.c line 2611
  • #9 IA__g_object_newv
    at gobject.c line 1215
  • #10 IA__g_object_new_valist
    at gobject.c line 1319
  • #11 IA__g_object_new
    at gobject.c line 1060
  • #12 nm_applet_new
    at applet.c line 2745
  • #13 main
    at main.c line 73

Comment 2 Jeffrey Bastian 2009-08-26 18:02:32 UTC
Created attachment 141771 [details] [review]
proposed patch

It looks like the problem is in 6 in the backtrace, request_name at
applet-dbus-manager.c:152

The attached patch should fix the problem.
Comment 3 Dan Williams 2009-08-27 14:28:52 UTC
5f40e02d79057c7c41d279bf82c884a2dc87c90c (master)
1ecf9bfe2d721729ca62218c5ac0d8cdc888dc73 (0.7.x)

Thanks!