Limits in /etc/group and useradd infinity loop

Hi all I've found strange problems with useradd program. Suddenly useradd stops to work and begins to eat memory till system crash. After some hours of experiments, I've found that I reached some strange limit in /etc/group file. I cannot add more than 85 users to one group. When adding 86'th user useradd stops to work, and due to strace, loops in open("/etc/passwd", O_RDONLY) = 4 fcntl64(4, F_GETFD) = 0 fcntl64(4, F_SETFD, FD_CLOEXEC) = 0 _llseek(4, 0, [0], SEEK_CUR) = 0 fstat64(4, {st_mode=S_IFREG|0644, st_size=6105, ...}) = 0 mmap2(NULL, 6105, PROT_READ, MAP_SHARED, 4, 0) = 0x4036f000 _llseek(4, 6105, [6105], SEEK_SET) = 0 fstat64(4, {st_mode=S_IFREG|0644, st_size=6105, ...}) = 0 munmap(0x4036f000, 6105) = 0 close(4) and so on. First question - what the limit of number of users in one group? And where I can read about this? Second question - why useradd works so terribly? Why it eats memory? It calls mmap2 and then munmap on the same address in a loop .... Third question - why kernel dont kill proccess which eats all of avaliable memory? On other systems swap pager must kill it! I'm using ----- cat /etc/SuSE-release SuSE Linux 9.0 (i586) VERSION = 9.0 ----- uname -a Linux Guantanamo 2.4.21-192-Guantanamo #1 Tue Apr 6 15:32:17 MSD 2004 ----- Thanx -- Best regards, Maxim Cherniavsky MTU-Intel, Internet Department mailto:maxim@mtu.ru

Maxim Cherniavsky wrote:
I've found strange problems with useradd program. Suddenly useradd stops to work and begins to eat memory till system crash.
I'm happy that I'm not the only one and my hope is that this raises prio on this weird issue. http://lists.suse.com/archive/suse-security/2004-Mar/0074.html I suspect it appeared after kernel or shadow.rpm update. I also suspect that it only happens on a SMP system with the SMP-enabled kernel. I already filed a bug report but no notable response from SuSE so far... Ciao, Michael.

Maxim Cherniavsky wrote:
I've found strange problems with useradd program. Suddenly useradd stops to work and begins to eat memory till system crash.
Sad but true that there's absolutely no response from SuSE. :-( Which kernel are you using? Please check with: rpm -qf /boot/vmlinuz Ciao, Michael.
participants (2)
-
Maxim Cherniavsky
-
Michael Ströder