Added the repository as specified, but on running "apt-get install network-manager-gnome-dbgsym libnm-glib2-dbgsym libnm-util1-dbgsym libglib2.0-0-dbgsym", it can't find the package libglib2.0-0-dbgsym . I installed without it anyway and tried to get a backtrace without it hoping there's something useful, instead of bugging you guys about the missing package and not delivering any bt. Here it is:
(gdb) run
Starting program: /usr/bin/nm-applet
[Thread debugging using libthread_db enabled]
[New Thread 0xb7ddbb70 (LWP 7787)]
** Message: applet now removed from the notification area
** Message: applet now embedded in the notification area
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 2
** (nm-applet:7784): DEBUG: foo_client_state_changed_cb
** (nm-applet:7784): DEBUG: foo_client_state_changed_cb
** (nm-applet:7784): DEBUG: foo_client_state_changed_cb
** (nm-applet:7784): DEBUG: going for offline with icon: notification-network-wireless-disconnected
** (nm-applet:7784): DEBUG: going for offline with icon: notification-network-wireless-disconnected
Program received signal SIGTERM, Terminated.
0x0012e416 in __kernel_vsyscall ()
(gdb) bt full
#0 0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1 0x00d43df6 in poll () from /lib/libc.so.6
No symbol table info available.
#2 0x00c01a1b in g_poll () from /lib/libglib-2.0.so.0
No symbol table info available.
#3 0x00bf443c in ?? () from /lib/libglib-2.0.so.0
No symbol table info available.
#4 0x00bf4ba7 in g_main_loop_run () from /lib/libglib-2.0.so.0
No symbol table info available.
#5 0x08059567 in main (argc=1, argv=0xbffff3d4) at main.c:101
applet = <value optimized out>
i = <value optimized out>
The 5 log lines before SIGTERM is me disabling the wifi connection in order to have no internet connection, so nm-applet would eventually crash as expected. I see libglib-2.0 is mentioned in the bt, and since I don't have the version of the lib with debug symbols, this bt may not be too useful.
I'm no C programmer, but my impression from all this and earlier debug attempts and peering into nm-applet source code, is that nm-applet is not really crashing - something else is actually killing it. Maybe network-manager itself?
Added the repository as specified, but on running "apt-get install network- manager- gnome-dbgsym libnm-glib2-dbgsym libnm-util1-dbgsym libglib2. 0-0-dbgsym" , it can't find the package libglib2.0-0-dbgsym . I installed without it anyway and tried to get a backtrace without it hoping there's something useful, instead of bugging you guys about the missing package and not delivering any bt. Here it is:
(gdb) run state_changed_ cb state_changed_ cb state_changed_ cb network- wireless- disconnected network- wireless- disconnected
Starting program: /usr/bin/nm-applet
[Thread debugging using libthread_db enabled]
[New Thread 0xb7ddbb70 (LWP 7787)]
** Message: applet now removed from the notification area
** Message: applet now embedded in the notification area
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 0
** (nm-applet:7784): DEBUG: old state indicates that this was not a disconnect 2
** (nm-applet:7784): DEBUG: foo_client_
** (nm-applet:7784): DEBUG: foo_client_
** (nm-applet:7784): DEBUG: foo_client_
** (nm-applet:7784): DEBUG: going for offline with icon: notification-
** (nm-applet:7784): DEBUG: going for offline with icon: notification-
Program received signal SIGTERM, Terminated. 2.0.so. 0 2.0.so. 0 2.0.so. 0
0x0012e416 in __kernel_vsyscall ()
(gdb) bt full
#0 0x0012e416 in __kernel_vsyscall ()
No symbol table info available.
#1 0x00d43df6 in poll () from /lib/libc.so.6
No symbol table info available.
#2 0x00c01a1b in g_poll () from /lib/libglib-
No symbol table info available.
#3 0x00bf443c in ?? () from /lib/libglib-
No symbol table info available.
#4 0x00bf4ba7 in g_main_loop_run () from /lib/libglib-
No symbol table info available.
#5 0x08059567 in main (argc=1, argv=0xbffff3d4) at main.c:101
applet = <value optimized out>
i = <value optimized out>
The 5 log lines before SIGTERM is me disabling the wifi connection in order to have no internet connection, so nm-applet would eventually crash as expected. I see libglib-2.0 is mentioned in the bt, and since I don't have the version of the lib with debug symbols, this bt may not be too useful.
I'm no C programmer, but my impression from all this and earlier debug attempts and peering into nm-applet source code, is that nm-applet is not really crashing - something else is actually killing it. Maybe network-manager itself?