Bug 1086375

Summary: [abrt] system-config-users: mainWindow.py:889:on_delete_activate:IndexError: list index out of range
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: system-config-usersAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 22CC: jfrieben, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/c878e0c5f2aab3a845e44da7820a386c8f34ca10
Whiteboard: abrt_hash:f6f4482579bdc8ea3d2e02d785d48c72313f1941
Fixed In Version: system-config-users-1.3.6-1.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-03 14:04:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Joachim Frieben 2014-04-10 17:35:34 UTC
Version-Release number of selected component:
system-config-users-1.3.5-1.fc20

Additional info:
reporter:       libreport-2.2.1
cmdline:        /usr/bin/python /usr/share/system-config-users/system-config-users.py
executable:     /usr/share/system-config-users/system-config-users.py
kernel:         3.15.0-0.rc0.git9.2.fc21.x86_64
runlevel:       N 3
type:           Python
uid:            0

Truncated backtrace:
mainWindow.py:889:on_delete_activate:IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/share/system-config-users/mainWindow.py", line 889, in on_delete_activate
    if (userEnt.get(libuser.GIDNUMBER)[0] ==
IndexError: list index out of range

Local variables in innermost frame:
userName: 'frieben'
groupEnt: <Entity object at 0x7f78e2d1e768>
self: <mainWindow.mainWindow object at 0x7f78e826a810>
args: (<gtk.ToolButton object at 0x7f78e2d16a50 (GtkToolButton at 0xd04cd0)>,)
iter: <GtkTreeIter at 0xfe3e80>
groupName: 'frieben'
members: ['frieben']
userEnt: <Entity object at 0x7f78e2d1e7c8>
data: <gtk.ListStore object at 0x7f78e2d16c30 (GtkListStore at 0xe15010)>
page: 1

Comment 1 Joachim Frieben 2014-04-10 17:35:39 UTC
Created attachment 885059 [details]
File: backtrace

Comment 2 Joachim Frieben 2014-04-10 17:35:41 UTC
Created attachment 885060 [details]
File: environ

Comment 3 Jaroslav Reznik 2015-03-03 15:41:13 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.

More information and reason for this action is here:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22

Comment 4 Nils Philippsen 2016-06-03 11:11:41 UTC
Sorry for dropping the ball on this.

I've looked at the backtrace and can only imagine that either the primary group of your user in /etc/passwd was missing (or not numeric), or maybe that the user entry was missing from /etc/passwd completely but still present in /etc/shadow. Both situations would let userEnt.get(libuser.GIDNUMBER) return an empty list.

I couldn't reproduce the crash with the current version on Fedora 23 (1.3.8, should be the same on 22), they flagged the inconsistencies in the passwd/group/shadow files instead. Can you reproduce this now?