Date: Thu, 8 Aug 2002 12:20:08 -0700 (PDT) From: Stefan Schwarzer <sschwarzer@sschwarzer.net> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/41213: top(1) blocks if NIS-related entries in passwd(5) are in a certain order Message-ID: <200208081920.g78JK8kA096763@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/41213; it has been noted by GNATS. From: Stefan Schwarzer <sschwarzer@sschwarzer.net> To: David Malone <dwmalone@maths.tcd.ie> Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/41213: top(1) blocks if NIS-related entries in passwd(5) are in a certain order Date: Thu, 08 Aug 2002 21:14:23 +0200 Hello David David Malone wrote: > This might be a bug in the code for iterating through all users > in libc. I think that top tries to do this to find the longest > username it will have to deal with. Could you try the included > simple C program and see if you can reproduce the problem? It should > keep looping on the problem user. I've tried the program with my workaround applied and for two different positions of the netgroup entry I spoke of. For the latter two of the three positions, the program loops. > If you want to check it is this code that is looping, the last thing > before top gets stuck in a loop should be the calling of sysctlbyname > on either "machdep.smp_active" or "smp.smp_active". You may be able > to find this in your ktrace output. I couldn't find that, however (searching the dump in less for sysctlbyname). Stefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208081920.g78JK8kA096763>