GNOME Bugzilla – Bug 671484
segfault in um_user_set_icon_file() (when uid < UID_MIN?)
Last modified: 2012-04-10 15:23:09 UTC
The bug has been reported on https://launchpad.net/bugs/908140 on GNOME 3.2 but recent duplicates (i.e https://launchpad.net/bugs/944571) are on GNOME 3.3.90 3.3.90 stacktrace: "#0 0x00007f3ef7dad304 in um_user_set_icon_file (user=0x0, icon_file=<optimized out>) at um-user.c:849 result = <optimized out> error = 0x0
+ Trace 229820
This fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=757424 has interesting hints "this bug only happens if the user is a system user, i.e. has a user id < 1000. I changed the border from 500 to 1000 during the update to Fedora 16 but did not change the user id, hence I was logged in as a system user. For "normal" users this bug does not happen." it seems to happen when uid is < MIN_UID
There's 2 problems. The fact that the panel doesn't survive being given a NULL user, and the fact that accountsservice wrongly assumes that all UIDs under < UID_MIN (as defined in /etc/login.defs) are system ones, even if we're logged in with it. Added patches here: https://bugs.freedesktop.org/show_bug.cgi?id=44408 If somebody's interested in fixing the bug another way, feel free to reopen here.
*** Bug 665066 has been marked as a duplicate of this bug. ***
Hello! I'm going to reopen this, as you suggested if someone was interested in providing the gnome-control-center side of the equation. I'll provide a patch shortly.
Created attachment 211733 [details] [review] Proposed patch As mentioned, there were two bugs here. Accountsservice was wrongly identifying system users, and that's now fixed in a separate bug. But g-c-c was also not handling the case of a logged-in-system user well. And that bug is still there and can be hit if a user does end up logging in as a system user. Here's a patch to start the user panel widgets as insensitive until a user is selected.
Review of attachment 211733 [details] [review]: Sounds good, to commit to master and gnome-3-4.
commit 04eca6d9515ea1eb6827f334d6c57c26b0e58718 Author: Michael Terry <michael.terry@canonical.com> Date: Tue Apr 10 09:19:03 2012 -0400 user-accounts: Make controls insensitive when a user is not selected https://bugzilla.gnome.org/show_bug.cgi?id=671484l