Bug 86490 - useradd crashes while adding user
Summary: useradd crashes while adding user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils
Version: 9
Hardware: i386
OS: Linux
medium
high
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-03-24 08:47 UTC by Per Steinar Iversen
Modified: 2007-04-18 16:52 UTC (History)
0 users

Fixed In Version: 4.0.12-5.FC4
Clone Of:
Environment:
Last Closed: 2005-11-09 10:35:56 UTC
Embargoed:


Attachments (Terms of Use)
A small shell-script that illustrates the problem (157 bytes, text/plain)
2003-04-04 13:29 UTC, Per Steinar Iversen
no flags Details

Description Per Steinar Iversen 2003-03-24 08:47:38 UTC
Description of problem:

useradd segfaults while adding user when a large group already exists.

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

shadow-utils-4.0.3-6

How reproducible:

Always.

Steps to Reproduce:
1. Make a very large group.
2. Add users, also adding them to the large group.
3. useradd eventually dies when there are too many member of the group.
    
Actual results:

# /usr/sbin/useradd -u 1440072 -g 1440072 -d /dev/null -s /bin/false aluit32
Segmentation fault

The end of a trace done with "strace -f":
read(8, ",s116518,s116519,s116520,s116521"..., 4096) = 4096
read(8, ",s117249,s117250,s117252,s117253"..., 4096) = 4096
read(8, "s100673,s100681,s100683,s100687,"..., 4096) = 4096
brk(0)                                  = 0x8440000
brk(0x8444000)                          = 0x8444000
read(8, "s109058,s109060,s109061,s109064,"..., 4096) = 4096
brk(0)                                  = 0x8444000
brk(0x8449000)                          = 0x8449000
read(8, "s116530,s116531,s116533,s116534,"..., 4096) = 4096
read(8, "s117270,s117271,s117272,s117273,"..., 4096) = 4096
brk(0)                                  = 0x8449000
brk(0x844c000)                          = 0x844c000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



Expected results:

The user should have been created.

Additional info:

The machine is to be a Samba PDC for a large student network.

Comment 1 Per Steinar Iversen 2003-04-04 13:29:25 UTC
Created attachment 90895 [details]
A small shell-script that illustrates the problem

On a freshly installed test machine running RH 9 and shadow-utils-4.0.3-6 the
output of this script crashes groupadd/groupdel after adding 2057 users. The
only way to recover is to edit passwd, shadow, group, gshadow by hand,
shadow-utils does not handle this case at all.


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