GNOME Bugzilla – Bug 680950
Instance of GUPnPContextManager crashes when network manager is restarted
Last modified: 2012-08-29 15:16:18 UTC
To reproduce the problem: - ensure network-manager is on - run one of gupnp tools: gupnp-universal-cp, gupnp-network-light or gupnp-av-cp or use custom program like described below - restart network manager several times by "sudo stop network-manager" and "sudo start network-manager" commands To reproduce the problem you can use simple custom program: int main() { g_type_init(); GUPnPContextManager* context_manager = gupnp_context_manager_create(0); // or any other loop like QEventLoop, gtk_loop GMainLoop * mainLoop = g_main_loop_new(g_main_context_get_thread_default(), false); g_main_loop_run (mainLoop); return 0; }
Can you provide a backtrace? All that happens here is that gnome-shell crashes.
Below there is backtrace from gupnp-network-lite program executed on Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux (gupnp-network-light:13864): GLib-GObject-WARNING **: instance with invalid (NULL) class pointer (gupnp-network-light:13864): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed Program received signal SIGSEGV, Segmentation fault. 0x00007ffff6681cf2 in g_object_unref (_object=<optimized out>) at /build/buildd/glib2.0-2.32.3/./gobject/gobject.c:2910 2910 /build/buildd/glib2.0-2.32.3/./gobject/gobject.c:
+ Trace 230612
Can you re-run that with G_DEBUG=fatal-warnings?
marek@marekubuntu:~$ env G_DEBUG=fatal-warnings gdb gupnp-network-light GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2) 7.4-2012.04 Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... Reading symbols from /usr/bin/gupnp-network-light...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/gupnp-network-light [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". (process:17401): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. Program received signal SIGTRAP, Trace/breakpoint trap. g_logv (log_domain=0x7ffff705d69d "Gtk", log_level=<optimized out>, format=0x7ffff70f9418 "Locale not supported by C library.\n\tUsing the fallback 'C' locale.", args1=0x7fffffffe028) at /build/buildd/glib2.0-2.32.3/./glib/gmessages.c:765 765 /build/buildd/glib2.0-2.32.3/./glib/gmessages.c: No such file or directory. (gdb) continue Continuing. [New Thread 0x7fffef571700 (LWP 17404)] [New Thread 0x7fffeed70700 (LWP 17405)] [New Thread 0x7fffe7fff700 (LWP 17406)] Attaching to IP/Host 10.132.155.3 on port 37054 Attaching to IP/Host 127.0.0.1 on port 36351 Dettaching from IP/Host 10.132.155.3 and port 37054 Program received signal SIGSEGV, Segmentation fault. g_type_check_instance (type_instance=0x7fffe000a270) at /build/buildd/glib2.0-2.32.3/./gobject/gtype.c:4073 4073 /build/buildd/glib2.0-2.32.3/./gobject/gtype.c: No such file or directory. (gdb) bt
+ Trace 230613
This is the same bug as 674410. It was fixed with commit 204cadadb495988598d447f63de6adf4e2287f8f and has been released with gupnp-0.18.3. *** This bug has been marked as a duplicate of bug 674410 ***
It seems, the fix works. Thank you.:)