Bug 106684

Summary: getgrnam fails with invalid group and long group line
Product: Red Hat Enterprise Linux 3 Reporter: Seth Lepzelter <spl>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 2.3.2-90 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-17 14:14:13 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
simple test code
none
group file that causes the problem none

Description Seth Lepzelter 2003-10-09 12:04:08 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.2)
Gecko/20021120 Netscape/7.01

Description of problem:
getgrnam goes into an infinite loop (reading /etc/group over and over) when
(symptom was tar, but a simple test program fails as well).

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

How reproducible:
Always

Steps to Reproduce:
1. look up a non-existant group
2. use the attached group file

Actual Results:  calls to getgrnam never return, read /etc/group indefinitely

Expected Results:  should return NULL

Additional info:
Comment 1 Seth Lepzelter 2003-10-09 12:07:55 EDT
Created attachment 95075 [details]
simple test code
Comment 2 Seth Lepzelter 2003-10-09 12:08:53 EDT
Created attachment 95076 [details]
group file that causes the problem
Comment 3 Seth Lepzelter 2003-10-17 13:38:17 EDT
This appears to be fixed in the 2.3.2-90 release of glibc.
Comment 4 Jakub Jelinek 2003-10-17 14:14:13 EDT
I was wondering why I cannot reproduce it...