Search panel segfault when trying to remove an invalid entry
Using gnome-control-center 3.34.1
- open gnome-control-center -> search
- click on 'search location' in the header
- select the third tab (Others)
- create a temporary folder and add it to the settings list
- close the dialog
- delete the folder
- open the others list again
-> the list includes an empty row https://launchpadlibrarian.net/454664942/Screenshot%20from%202019-12-07%2014-43-57.png
- click on the 'x' to remove that entry
-> the settings segfaults
#0 0x0000555555656b5b in place_get_new_settings_values
(self=self@entry=0x55555600a4b0 [CcSearchLocationsDialog], remove=remove@entry=1, place=<optimized out>, place=<optimized out>)
at ../panels/search/cc-search-locations-dialog.c:390
#1 0x0000555555656d6f in remove_button_clicked
(self=0x55555600a4b0 [CcSearchLocationsDialog], button=<optimized out>)
at ../panels/search/cc-search-locations-dialog.c:476
#2 0x00007ffff7d8f936 in _g_closure_invoke_va
(closure=0x5555564672d0, return_value=0x0, instance=0x5555563cef80, args=0x7fffffffcbd0, n_params=0, param_types=0x0) at ../../../gobject/gclosure.c:873
#3 0x00007ffff7dac36c in g_signal_emit_valist
(instance=0x5555563cef80, signal_id=<optimized out>, detail=0, var_args=var_args@entry=0x7fffffffcbd0) at ../../../gobject/gsignal.c:3306
#4 0x00007ffff7dac9b3 in g_signal_emit
(instance=<optimized out>, signal_id=<optimized out>, detail=<optimized out>) at ../../../gobject/gsignal.c:3453
#5 0x00007ffff767e22e in gtk_button_do_release
(emit_clicked=<optimized out>, button=0x5555563cef80 [GtkButton])
at ../../../../gtk/gtkbutton.c:1845
#6 0x00007ffff767e22e in gtk_button_do_release
(button=0x5555563cef80 [GtkButton], emit_clicked=<optimized out>)
at ../../../../gtk/gtkbutton.c:1832
#7 0x00007ffff767e298 in gtk_real_button_released