getgrnam(3) core dump problem
Norikatsu Shigemura
nork at ninth-nine.com
Tue Apr 22 08:32:15 PDT 2003
Hi NSS workers!
I report about getgrnam(3) core dump problem.
1. On FreeBSD 5.0-CURRENT 22 Apr 2003 JST. (may be after NSS)
$FreeBSD: src/lib/libc/gen/getgrent.c,v 1.27 2003/04/20 01:12:00 nectar Exp $
2. This machine is NIS slave/client one.
NIS master server is 4-STABLE machine.
3. /etc/group has +:*:: line.
A user (as foo:foo account) which causes a problem is not in
/etc/group of current, but is on NIS.
4. Following simple program(or id, chown, tar, etc..) does crash in
getgrnam(3).
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#include <grp.h>
int main(void) { struct group *grp = getgrnam("foo"); return 0; }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5. Add foo:*:: to /etc/group of current. But above program dosen't
crash.
6. On (3) and (4) environment, I try to gdb it. I can't follow it.
Anyone, please check this problem!
More information about the freebsd-current
mailing list