Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 00:32:11 +0900 (JST)
From:      Norikatsu Shigemura <nork@ninth-nine.com>
To:        freebsd-current@freebsd.org
Subject:   getgrnam(3) core dump problem
Message-ID:  <200304221532.h3MFWBn8004350@nd250009.gab.xdsl.ne.jp>

next in thread | raw e-mail | index | archive | help
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!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304221532.h3MFWBn8004350>