GNOME Bugzilla – Bug 786080
shell: g-c-c may segfault opening Display panel
Last modified: 2017-08-22 17:27:35 UTC
When Opening Display panel in new shell design, g-c-c may segfault. How to reproduce: 1. Open g-c-c shell 2. Search for 'disp' 3. Click on Display panel in the search result Result: g-c-c segfaults. Output from asan: ASAN:DEADLYSIGNAL ================================================================= ==8019==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7f095fb1edf4 bp 0x7ffc5c3162f0 sp 0x7ffc5c3161f0 T0) #0 0x7f095fb1edf3 in g_type_check_instance_cast /home/sadiq/jhbuild/checkout/glib/gobject/gtype.c:4052 #1 0x55a58d2d4b01 in gcm_prefs_connect_cb /home/sadiq/jhbuild/checkout/gnome-control-center/panels/color/cc-color-panel.c:2024 #2 0x7f095fdce38b in g_task_return_now /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1145 #3 0x7f095fdcf041 in g_task_return /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1203 #4 0x7f095fdcf8a4 in g_task_return_error /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1777 #5 0x7f095fdcfaaa in g_task_return_new_error /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1811 #6 0x7f0969a1c620 in cd_client_connect_cb ../../../../../../Main/Software/src/github/colord/lib/colord/cd-client.c:358 #7 0x7f095fdce38b in g_task_return_now /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1145 #8 0x7f095fdcf041 in g_task_return /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1203 #9 0x7f095fdcf8a4 in g_task_return_error /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1777 #10 0x7f095fe136e8 in get_connection_cb /home/sadiq/jhbuild/checkout/glib/gio/gdbusproxy.c:1827 #11 0x7f095fdce38b in g_task_return_now /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1145 #12 0x7f095fdcf041 in g_task_return /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1203 #13 0x7f095fdcf8a4 in g_task_return_error /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1777 #14 0x7f095fe01b49 in bus_get_async_initable_cb /home/sadiq/jhbuild/checkout/glib/gio/gdbusconnection.c:7297 #15 0x7f095fdce38b in g_task_return_now /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1145 #16 0x7f095fdce3c5 in complete_in_idle_cb /home/sadiq/jhbuild/checkout/glib/gio/gtask.c:1159 #17 0x7f095f81995c in g_idle_dispatch /home/sadiq/jhbuild/checkout/glib/glib/gmain.c:5504 #18 0x7f095f81a6a7 in g_main_dispatch /home/sadiq/jhbuild/checkout/glib/glib/gmain.c:3148 #19 0x7f095f81cef1 in g_main_context_dispatch /home/sadiq/jhbuild/checkout/glib/glib/gmain.c:3813 #20 0x7f095f81d056 in g_main_context_iterate /home/sadiq/jhbuild/checkout/glib/glib/gmain.c:3886 #21 0x7f095f81d0d4 in g_main_context_iteration /home/sadiq/jhbuild/checkout/glib/glib/gmain.c:3947 #22 0x7f095fde6820 in g_application_run /home/sadiq/jhbuild/checkout/glib/gio/gapplication.c:2401 #23 0x55a58d28adef in main /home/sadiq/jhbuild/checkout/gnome-control-center/shell/main.c:57 #24 0x7f095e51f2b0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202b0) #25 0x55a58d28abe9 in _start (/media/sadiq/Temp/jhbuild/install/bin/gnome-control-center+0x410be9) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/sadiq/jhbuild/checkout/glib/gobject/gtype.c:4052 in g_type_check_instance_cast ==8019==ABORTING Thanks
also got a crash on display panel, but somewhat different bt:
+ Trace 237811
Created attachment 358172 [details] [review] display: Fix a crash when opening the panel with the lid closed The configuration manager might not be ready yet when we're called from the lid state monitor handler. Don't do anything in that case.
Attachment 358172 [details] pushed as e5a1afe - display: Fix a crash when opening the panel with the lid closed