From owner-freebsd-current@FreeBSD.ORG Thu Aug 25 07:50:45 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 ACA8416A41F for ; Thu, 25 Aug 2005 07:50:45 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mo3so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ABA843D46 for ; Thu, 25 Aug 2005 07:50:45 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd5mr5so.prod.shaw.ca (pd5mr5so-qfe3.prod.shaw.ca [10.0.141.181]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ILR00MCTPSKYM00@l-daemon> for freebsd-current@freebsd.org; Thu, 25 Aug 2005 01:50:44 -0600 (MDT) Received: from pn2ml5so.prod.shaw.ca ([10.0.121.149]) by pd5mr5so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0ILR0037TPSKHK60@pd5mr5so.prod.shaw.ca> for freebsd-current@freebsd.org; Thu, 25 Aug 2005 01:50:44 -0600 (MDT) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0ILR0001ZPSJ8S@l-daemon> for freebsd-current@freebsd.org; Thu, 25 Aug 2005 01:50:44 -0600 (MDT) Date: Thu, 25 Aug 2005 00:50:43 -0700 From: Colin Percival In-reply-to: <430D665B.9030108@gmail.com> To: Nikolay Kalev Message-id: <430D7853.8070407@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.92.0.0 References: <430C36BD.1020808@gmail.com> <20050824222516.GA1106@wantadilla.lemis.com> <430D665B.9030108@gmail.com> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050724) Cc: freebsd-current@freebsd.org, liamfoy@dragonflybsd.org Subject: Coredump in chkgrp (was Re: unknown coredump !) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 25 Aug 2005 07:50:45 -0000 [Bug report CCed to author of bug] Nikolay Kalev wrote: > chkgrp: /etc/group: line 30: missing field(s) > Segmentation fault (core dumped) > Exit 3 > > so i found the problem in my group file there was a bugy line that i > added ... i;m not sure if this is normal to coredump when the syntax in > /etc/group is mistaken ??? > > the line was : "user:1001:" and it has to be "user:*:1001:" This bug was added in revision 1.9 of src/usr.sbin/chkgrp/chkgrp.c. If a line of the group file has the wrong number of fields, the pointers f[0], f[1], f[2], and f[3] might point at deadc0de; prior to this revision, the number of fields was checked first and processing halted if it was wrong. I'm busy for the next few days, but if this is still unfixed on Monday I'll take care of it. Colin Percival