From owner-freebsd-current@FreeBSD.ORG Thu Aug 25 07:57:36 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 5235016A41F for ; Thu, 25 Aug 2005 07:57:36 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD7943D46 for ; Thu, 25 Aug 2005 07:57:33 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j7P7vSID078138; Thu, 25 Aug 2005 10:57:28 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.163] (pc163.ebs.gr [10.1.1.163]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j7P7vShv054798; Thu, 25 Aug 2005 10:57:30 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <430D79E4.2040006@ebs.gr> Date: Thu, 25 Aug 2005 10:57:24 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050816) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nikolay Kalev References: <430C36BD.1020808@gmail.com> <20050824222516.GA1106@wantadilla.lemis.com> <430D665B.9030108@gmail.com> <430D735D.20507@gmail.com> In-Reply-To: <430D735D.20507@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org 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:57:36 -0000 Nikolay Kalev wrote: > 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 ? I can confirm it too, on: FreeBSD ajax.ebs.gr 6.0-BETA3 FreeBSD 6.0-BETA3 #2: Mon Aug 22 23:38:51 EEST 2005 root@:/usr/obj/usr/src/sys/GENERIC i386 I get the following from a full trace: (gdb) bt full #0 0x280bf7b1 in strcspn () from /lib/libc.so.6 No symbol table info available. #1 0x08048a3c in main (argc=65536, argv=0x10000) at /usr/src/usr.sbin/chkgrp/chkgrp.c:137 i = 14 len = 14 n = 30 k = 2 e = 1 line = 0xffffffff
f = {0x804b19a "past", 0x804b19f "1001", 0x804b1a4 "past\ngdm:*:92:\nmessagebus:*:556:\n", 'Π' ..., 0x804b199 ""} p = 0x0 cp = 0xffffffff
gfn = 0x8048c1e "/etc/group" gf = (FILE *) 0x281522c0 (gdb) Cheers, Panagiotis