From owner-freebsd-stable@FreeBSD.ORG Mon Nov 24 04:53:02 2008 Return-Path: Delivered-To: FreeBSD-stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0BC61065672 for ; Mon, 24 Nov 2008 04:53:02 +0000 (UTC) (envelope-from rorya+freebsd.org@TrueStep.com) Received: from Tserver.TrueStep.com (Tserver.TrueStep.com [64.253.96.188]) by mx1.freebsd.org (Postfix) with ESMTP id 5CC598FC12 for ; Mon, 24 Nov 2008 04:53:02 +0000 (UTC) (envelope-from rorya+freebsd.org@TrueStep.com) Received: from Cypher.TrueStep (Cypher.TrueStep [10.101.1.8]) (authenticated bits=0) by Tserver.TrueStep.com (8.14.3/8.14.3) with ESMTP id mAO4qk3I042740 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 23 Nov 2008 23:52:51 -0500 (EST) (envelope-from rorya+freebsd.org@TrueStep.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=TrueStep.com; s=default; t=1227502372; bh=cvmADO+5h0EIzjQpjhWWyLWleJG8kZKAKr0NBLg HKnc=; h=Cc:Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:References; b=fHG2xREi4JSXil0y8YqEJnc8vn2FBsz254Up4PNKGhsFFHa2krkE+UinaBNNJDJPi RVhtk2ZuwXiODEEW0rrkk2lYSs+TMeQ1Mudd8VN588XWXlUIvYUmBALVLGFZ4Ej0bUC Z53lw8IEG3onMJBWtZsl2i36kPZ6dYnsJhpKxOc= Message-Id: <77652940-BEF4-4CA9-9E28-C3AAD72AA02E@TrueStep.com> From: Rory Arms To: Barbara In-Reply-To: <5113227.789231227483399867.JavaMail.defaultUser@defaultHost> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sun, 23 Nov 2008 23:52:45 -0500 References: <5113227.789231227483399867.JavaMail.defaultUser@defaultHost> X-Mailer: Apple Mail (2.929.2) Cc: kensmith , FreeBSD-stable Subject: Re: R: Re: 6.4-RC2 crashes after a few minutes of uptime X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 04:53:03 -0000 On 2008-11-23, at 18:36 , Barbara wrote: >>> About kgdb... >>> I never used freebsd-update, so sorry if I'm saying > something >>> stupid, but could it be the case that the kernel has been > built >>> without debugging symbols or something like that? Does freebsd- >>> > update provide a kernel.debug? >> >> I haven't had to use a the kernel.debug file > in the obj dir in a long >> time. As far as I know, these days, the GENERIC > kernel includes debug >> symbols. And in cases when there aren't any debug > symbols, that >> shouldn't prevent kgdb from loading, I wouldn't think. > > Hello, > > I had a k panic some hours ago but I think that's related to a > problem with one > of my HDs. > > I've got a dump in /var/crash, and as you were interested, I run: > > > # kgdb /boot/kernel/kernel /var/crash/vmcore.6 > > > 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"...(no debugging symbols found)... > > Attempt to extract a > component of a value that is not a structure pointer. > > Attempt to extract a > component of a value that is not a structure pointer. > > Attempt to extract a > component of a value that is not a structure pointer. > > Attempt to extract a > component of a value that is not a structure pointer. > > Terminated > > > I had > to pkill kgdb as it was in a loop. > > Running it against kernel.debug in > /usr/obj/usr/src/sys/$KERNCONF/ worked as expected. > I've always followed this > way, so I don't know if it was working with earlier releases. Ah, well you must not be using GENERIC then, because it does have the debugging symbols. I think this is the setting in the GENERIC config that controls it: makeoptions DEBUG=-g But I guess what you're doing works if you're using a custom kernel that does not have that config setting. - rory