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 680950 - Instance of GUPnPContextManager crashes when network manager is restarted
Instance of GUPnPContextManager crashes when network manager is restarted
Status: RESOLVED DUPLICATE of bug 674410
Product: GUPnP
Classification: Other
Component: gupnp
0.18.x
Other Linux
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-01 06:41 UTC by Marek
Modified: 2012-08-29 15:16 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Marek 2012-08-01 06:41:37 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;
}
Comment 1 Jens Georg 2012-08-01 07:07:06 UTC
Can you provide a backtrace? All that happens here is that gnome-shell crashes.
Comment 2 Marek 2012-08-01 08:12:34 UTC
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: 


  • #0 g_object_unref
    at /build/buildd/glib2.0-2.32.3/./gobject/gobject.c line 2910
  • #1 on_device_signal
    at gupnp-network-manager.c line 341
  • #2 on_device_signal
    at gupnp-network-manager.c line 317
  • #3 ffi_call_unix64
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #4 ffi_call
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #5 g_cclosure_marshal_generic
    at /build/buildd/glib2.0-2.32.3/./gobject/gclosure.c line 1454
  • #6 g_closure_invoke
    at /build/buildd/glib2.0-2.32.3/./gobject/gclosure.c line 777
  • #7 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3547
  • #8 g_signal_emit_valist
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3296
  • #9 g_signal_emit
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3352
  • #10 on_signal_received
    at /build/buildd/glib2.0-2.32.3/./gio/gdbusproxy.c line 927
  • #11 emit_signal_instance_in_idle_cb
    at /build/buildd/glib2.0-2.32.3/./gio/gdbusconnection.c line 3665
  • #12 g_main_dispatch
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 2539
  • #13 g_main_context_dispatch
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3075
  • #14 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3146
  • #15 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3083
  • #16 g_main_loop_run
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3340
  • #17 gtk_main
    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  • #18 main

Comment 3 Jens Georg 2012-08-01 09:02:55 UTC
Can you re-run that with G_DEBUG=fatal-warnings?
Comment 4 Marek 2012-08-01 09:37:13 UTC
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
  • #0 g_type_check_instance
    at /build/buildd/glib2.0-2.32.3/./gobject/gtype.c line 4073
  • #1 g_signal_emit_by_name
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3377
  • #2 on_device_signal
    at gupnp-network-manager.c line 337
  • #3 on_device_signal
    at gupnp-network-manager.c line 317
  • #4 ffi_call_unix64
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #5 ffi_call
    from /usr/lib/x86_64-linux-gnu/libffi.so.6
  • #6 g_cclosure_marshal_generic
    at /build/buildd/glib2.0-2.32.3/./gobject/gclosure.c line 1454
  • #7 g_closure_invoke
    at /build/buildd/glib2.0-2.32.3/./gobject/gclosure.c line 777
  • #8 signal_emit_unlocked_R
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3547
  • #9 g_signal_emit_valist
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3296
  • #10 g_signal_emit
    at /build/buildd/glib2.0-2.32.3/./gobject/gsignal.c line 3352
  • #11 on_signal_received
    at /build/buildd/glib2.0-2.32.3/./gio/gdbusproxy.c line 927
  • #12 emit_signal_instance_in_idle_cb
    at /build/buildd/glib2.0-2.32.3/./gio/gdbusconnection.c line 3665
  • #13 g_main_dispatch
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 2539
  • #14 g_main_context_dispatch
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3075
  • #15 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3146
  • #16 g_main_context_iterate
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3083
  • #17 g_main_loop_run
    at /build/buildd/glib2.0-2.32.3/./glib/gmain.c line 3340
  • #18 gtk_main
    from /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
  • #19 main

Comment 5 Jens Georg 2012-08-19 15:09:12 UTC
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 ***
Comment 6 Marek 2012-08-29 15:16:18 UTC
It seems, the fix works. Thank you.:)