Date: Mon, 12 Jan 2004 02:20:15 -0800 (PST) From: rafan@infor.org To: freebsd-bugs@FreeBSD.org Subject: Re: kern/59962: libc error when using nis passwd.adjunct Message-ID: <200401121020.i0CAKFx2080750@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/59962; it has been noted by GNATS. From: rafan@infor.org To: freebsd-gnats-submit@FreeBSD.org, ggomez@fing.edu.uy Cc: nectar@freebsd.org, ggomez@fing.edu.uy Subject: Re: kern/59962: libc error when using nis passwd.adjunct Date: Mon, 12 Jan 2004 18:12:52 +0800 (CST) First, I coundn't make the test program sigsegv on my 5.2-RELEASE/i386 box. However, this following program does SIGSEGV on my box, #include <stdio.h> #include <sys/types.h> #include <pwd.h> int main(void) { struct passwd *pw; while ((pw = getpwent()) != NULL) printf("%s\n", pw->pw_name); return 0; } This code segment is like some lines in top(1), so top(1) also SIGSEGV. As a notice, if you run this program or top(1) with root than you won't have SIGSEGV. My NIS server also supports passwd.adjunct.byname map (server is a FreeBSD box). I've tried the patch original attached, it's ok. If you want to ask me to do any test on my box, just tell me. Finally, I do consider this is a serious bug, so please fix it ASAP, thanks.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401121020.i0CAKFx2080750>