From owner-freebsd-current@FreeBSD.ORG Tue Apr 22 08:32:15 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CFE337B401; Tue, 22 Apr 2003 08:32:15 -0700 (PDT) Received: from nd250009.gab.xdsl.ne.jp (nd250009.gab.xdsl.ne.jp [61.202.250.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A3C143F93; Tue, 22 Apr 2003 08:32:13 -0700 (PDT) (envelope-from nork@ninth-nine.com) Received: from nd250009.gab.xdsl.ne.jp (nadesico.ninth-nine.com [192.168.36.3]) by nd250009.gab.xdsl.ne.jp (8.12.9/8.12.9/NinthNine) with SMTP id h3MFWBn8004350; Wed, 23 Apr 2003 00:32:12 +0900 (JST) (envelope-from nork@ninth-nine.com) Date: Wed, 23 Apr 2003 00:32:11 +0900 (JST) Message-Id: <200304221532.h3MFWBn8004350@nd250009.gab.xdsl.ne.jp> From: Norikatsu Shigemura To: freebsd-current@freebsd.org X-Mailer: Sylpheed version 0.8.11 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: getgrnam(3) core dump problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 15:32:15 -0000 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 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!