From owner-freebsd-current@FreeBSD.ORG Thu Aug 25 07:22:35 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 577E916A420 for ; Thu, 25 Aug 2005 07:22:35 +0000 (GMT) (envelope-from nkalev@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id D317643D45 for ; Thu, 25 Aug 2005 07:22:34 +0000 (GMT) (envelope-from nkalev@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so301739rna for ; Thu, 25 Aug 2005 00:22:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=cBZR5zN6PWob/XfzuaOILjPV3gzOJ/vo4A0A4iHjsaJlACryaags2PtlNPQSC/cmQzDCP0d3vnLsykqVdGwdFJwvab+3zgz0PC+eqzoK23v0IVqjxp20mRjw3+hNctz1GFs2ZCdaOhos16yBzGChlpOXzl5c6iOrGPuTge+5VXA= Received: by 10.38.10.35 with SMTP id 35mr923665rnj; Thu, 25 Aug 2005 00:22:34 -0700 (PDT) Received: from ?172.16.101.106? ( [212.36.7.117]) by mx.gmail.com with ESMTP id m35sm1729409rnd.2005.08.25.00.22.33; Thu, 25 Aug 2005 00:22:34 -0700 (PDT) Message-ID: <430D735D.20507@gmail.com> Date: Thu, 25 Aug 2005 10:29:33 +0300 From: Nikolay Kalev User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050722) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Pawel Worach , freebsd-current@freebsd.org References: <430C36BD.1020808@gmail.com> <20050824222516.GA1106@wantadilla.lemis.com> <430D665B.9030108@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: 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:22:35 -0000 Pawel Worach wrote: >On 8/25/05, 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:" >> >> >> > >I can not reproduce this on a 7-CURRENT system. > ># grep -n ^user /etc/group >30:user:1001: ># chkgrp >chkgrp: /etc/group: line 30: missing field(s) >chkgrp: /etc/group: line 30: GID is not numeric > >You can get a chkgrp with debug symbols this way: ># cd /usr/src/usr.sbin/chkgrp/ ># make clean ># make DEBUG_FLAGS=-g ># make STRIP= install > >Then reproduce the problem and fire up gdb as said elsewhere.. > > > [lapi]:/root# gdb -c chkgrp.core /usr/sbin/chkgrp GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... Core was generated by `chkgrp'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libc.so.6...done. Loaded symbols for /lib/libc.so.6 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x280b67b1 in strcspn () from /lib/libc.so.6 (gdb) bt #0 0x280b67b1 in strcspn () from /lib/libc.so.6 #1 0x08048a3c in main (argc=65536, argv=0x10000) at chkgrp.c:137 (gdb) As i said, my system is FreeBSD 6.0 BETA3 i wonder if others have the same problem with beta3 ?