GNOME Bugzilla – Bug 778595
gnome-control-center may segfault in User Accounts panel
Last modified: 2017-02-16 08:32:15 UTC
In certain cases gnome-control-center may segfault in User Accounts. This also happens in latest stable (3.22 as packaged in Debian testing, may not be upto date). How to reproduce: 1. Open 'Add User...' dialog 2. Give some Full Name, say "My Name" 3. Press and hold backspace untill the typed name is deleted completely 4. Press 'Escape' key Result: Sometimes gnome-control-center segfaults The following is logged to terminal: (gnome-control-center:8437): Gtk-CRITICAL **: gtk_combo_box_text_get_active_text: assertion 'GTK_IS_COMBO_BOX_TEXT (combo_box)' failed (gnome-control-center:8437): Gtk-CRITICAL **: gtk_bin_get_child: assertion 'GTK_IS_BIN (bin)' failed (gnome-control-center:8437): Gtk-CRITICAL **: gtk_label_set_label: assertion 'GTK_IS_LABEL (label)' failed (gnome-control-center:8437): Gtk-CRITICAL **: gtk_entry_get_text: assertion 'GTK_IS_ENTRY (entry)' failed bt from gdb (As jhbuild builds are not built with debugging enabled by default, this all is what I get, sorry): (gdb) bt full
+ Trace 237139
(gdb) Thanks
Created attachment 345778 [details] [review] user-accounts: Fix timeouts handling when changing name Timeout id variables contain typos and consequently, the sources are not properly removed in all cases. Then the dialog may crash in certain cases if it is closed before the source functions are called.
Review of attachment 345778 [details] [review]: > Fix timeouts handling when changing name The users don't care about the timeouts. Something like this: "Fix crash when name is changed and dialogue closed" would be better. It also doesn't look like a typo. It's the wrong variable being used, plain and simple.
Created attachment 345923 [details] [review] user-accounts: Fix crash when name is changed and dialogue closed Wrong variables are used to store timeout id, consequently, the sources are not properly removed in all cases. Then the dialog may crash in certain cases if it is closed before the source functions are called.
Review of attachment 345923 [details] [review]: Looks good.
Attachment 345923 [details] pushed as 60c315b - user-accounts: Fix crash when name is changed and dialogue closed
Pushed to gnome-3-22 also.