3.30 Sharing Panel segfaults when avahi.service isn't running
Steps to reproduce:
- Have avahi.service disabled and try to start gnome-control-center.
- Try to select the sharing panel. Have the following segfault.
* thread #1, name = 'gnome-control-c', stop reason = signal SIGSEGV: invalid address (fault address: 0x28)
* frame #0: 0x00005555555a659b gnome-control-center`get_hostname_property.lto_priv.663 + 11
frame #1: 0x000055555564d497 gnome-control-center`cc_sharing_panel_get_host_name_fqdn_done + 327
frame #2: 0x00007ffff7cc10f4 libgio-2.0.so.0`___lldb_unnamed_symbol1696$$libgio-2.0.so.0 + 36
frame #3: 0x00007ffff7cc3ad7 libgio-2.0.so.0`___lldb_unnamed_symbol1735$$libgio-2.0.so.0 + 183
frame #4: 0x00007ffff7c70aa2 libgio-2.0.so.0`___lldb_unnamed_symbol660$$libgio-2.0.so.0 + 210
frame #5: 0x00007ffff7cc10f4 libgio-2.0.so.0`___lldb_unnamed_symbol1696$$libgio-2.0.so.0 + 36
frame #6: 0x00007ffff7cc1129 libgio-2.0.so.0`___lldb_unnamed_symbol1697$$libgio-2.0.so.0 + 9
frame #7: 0x00007ffff7af7271 libglib-2.0.so.0`g_main_context_dispatch + 353
frame #8: 0x00007ffff7af8f89 libglib-2.0.so.0`___lldb_unnamed_symbol345$$libglib-2.0.so.0 + 569
frame #9: 0x00007ffff7af8fce libglib-2.0.so.0`g_main_context_iteration + 46
frame #10: 0x00007ffff7c9d8ce libgio-2.0.so.0`g_application_run + 542
frame #11: 0x00005555555a0359 gnome-control-center`main + 137
frame #12: 0x00007ffff7dca223 libc.so.6`__libc_start_main + 243
frame #13: 0x00005555555a03ae gnome-control-center`_start + 46
journal:
Sep 08 14:44:32 systemd[1]: Starting Hostname Service...
Sep 08 14:44:32 systemd[1]: Started Hostname Service.
Sep 08 14:44:32 dbus-broker-launch[674]: Activation request for 'org.freedesktop.Avahi' failed: Unit dbus-org.freedesktop.Avahi.service not found.
Sep 08 14:44:32 dbus-broker-launch[674]: Activation request for 'org.freedesktop.Avahi' failed: Unit dbus-org.freedesktop.Avahi.service not found.
Expected behavior
Gnome-control-center should work regardless if the Avahi service is running or not. Maybe show an error on the sharing panel similar to the one shown on the network panel when NetworkManager is nor running.