Bug 151484 - Memory leak, and CPU spinning with duplicate group entries
Memory leak, and CPU spinning with duplicate group entries
Status: CLOSED RAWHIDE
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: shadow-utils (Show other bugs)
3.0
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Vrabec
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-18 09:21 EST by Bastien Nocera
Modified: 2007-11-30 17:07 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-04 05:03:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
shadow-utils update (1.01 MB, application/octet-stream)
2005-04-04 05:00 EDT, Peter Vrabec
no flags Details

  None (edit)
Description Bastien Nocera 2005-03-18 09:21:05 EST
Really shouldn't happen, but.
shadow-utils-4.0.3-23.06 from RHEL3 U5 HEAD

Add another "users" line to your /etc/group (so the entry is duplicated):
users:x:100:

Launch:
adduser -G users test
Check dmesg after a while (2 minutes in, and it was using around 300 megs of RAM):
Out of Memory: Killed process 28151 (adduser).
Comment 1 Peter Vrabec 2005-03-21 08:06:41 EST
How do u add next entry? Did u edit /etc/group by hand?
It looks this problem affect all versions of shadow-utils.
Comment 2 Bastien Nocera 2005-03-21 09:52:34 EST
I edited /etc/group by hand (a stupid mistake, but I would have expected adduser
to handle my error rather than to eat all my RAM).
Comment 3 Peter Vrabec 2005-04-04 05:00:24 EDT
Created attachment 112642 [details]
shadow-utils update

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