Bug 439401 - system-config-users crashes on startup w/ unassigned variable "gid"
Summary: system-config-users crashes on startup w/ unassigned variable "gid"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-users
Version: 4.8
Hardware: i386
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Nils Philippsen
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-28 15:26 UTC by Robert Kinstler
Modified: 2008-08-18 15:52 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-08-18 15:52:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Robert Kinstler 2008-03-28 15:26:44 UTC
Description of problem:
system-config-users crashes on startup with the following traceback:
# system-config-users
Traceback (most recent call last):
  File "/usr/share/system-config-users/system-config-users.py", line 45, in ?
    mainWindow.mainWindow()
  File "/usr/share/system-config-users/mainWindow.py", line 280, in __init__
    self.refresh()
  File "/usr/share/system-config-users/mainWindow.py", line 454, in refresh
    self.populate_lists()
  File "/usr/share/system-config-users/mainWindow.py", line 546, in populate_lists
    self.populate_group_list()
  File "/usr/share/system-config-users/mainWindow.py", line 529, in
populate_group_list
    if long (gid) > 499 and not (cn == "nfsnobody" and (long (gid) == 65534L or
long (gid) == 4294967294L)):UnboundLocalError: local variable 'gid' referenced
before assignment
# 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. start system-config-users on my host.
2. see the window flash on your screen and then observe the traceback
3.
  
Actual results:
no function

Expected results:
working application

Additional info:

Comment 1 Nils Philippsen 2008-03-28 16:54:52 UTC
I'm a bit curious why libuser wouldn't return a GID at that point, Mirek can you
comment on that?

Other than that, perhaps you should check whether there are illegal or
inconsistent entries in your /etc/group and/or /etc/gshadow files.

Comment 2 Miloslav Trmač 2008-03-31 15:20:38 UTC
Some probably exists in /etc/gshadow, but not in /etc/groups.

Comment 3 Miloslav Trmač 2008-03-31 15:21:07 UTC
s/Some/& group/

Comment 4 Robert Kinstler 2008-03-31 16:17:29 UTC
Quite right.  gshadow has wheel.

Comment 5 Phillip S. Brown 2008-05-19 20:22:30 UTC
I've also seen this problem in RHEL4-U6, system-config-users version .  
Attempting to duplicate in RHEL5-U1, system-config-users version 1.2.51-1.el5, 
I get the following, more precise error:

"The user database cannot be read. This problem is most likely caused by a 
mismatch between /etc/passwd and /etc/shadow or /etc/group and /etc/gshadow. 
The program will exit now."



Comment 6 Phil Knirsch 2008-08-18 15:52:29 UTC
This request was evaluated by Red Hat Engineering for inclusion in a Red
Hat Enterprise Linux maintenance release.

Red Hat does not currently plan to provide this change in a Red Hat Enterprise
Linux update release for currently deployed products.

With the goal of minimizing risk of change for deployed systems, and in
response to customer and partner requirements, Red Hat takes a conservative
approach when evaluating enhancements for inclusion in maintenance updates
for currently deployed products. The primary objectives of update releases
are to enable new hardware platform support and to resolve critical
defects.

However, Red Hat will further review this request for potential inclusion
in future major releases of Red Hat Enterprise Linux.


Note You need to log in before you can comment on or make changes to this bug.