From owner-freebsd-hackers Sun May 26 9:55: 8 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from rhadamanth.submonkey.net (pc1-card5-0-cust12.cdf.cable.ntl.com [80.3.216.12]) by hub.freebsd.org (Postfix) with ESMTP id EC59437B403 for ; Sun, 26 May 2002 09:55:03 -0700 (PDT) Received: from setantae by rhadamanth.submonkey.net with local (Exim 3.36 #1) id 17C1IM-0001Np-00; Sun, 26 May 2002 17:55:02 +0100 Date: Sun, 26 May 2002 17:55:02 +0100 From: Ceri Davies To: Dominic Marks Cc: hackers@FreeBSD.org Subject: Re: Another panic in -STABLE, yesterday's tree Message-ID: <20020526165502.GA5138@submonkey.net> Mail-Followup-To: Ceri Davies , Dominic Marks , hackers@FreeBSD.org References: <20020526112641.GA396@submonkey.net> <20020526134812.A64544@host217-39-131-156.in-addr.btop> <20020526153024.GD2271@submonkey.net> <20020526170005.A66005@host217-39-131-156.in-addr.btop> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020526170005.A66005@host217-39-131-156.in-addr.btop> User-Agent: Mutt/1.3.99i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, May 26, 2002 at 05:00:05PM +0100, Dominic Marks wrote: > On Sun, May 26, 2002 at 04:30:24PM +0100, Ceri Davies wrote: > > On Sun, May 26, 2002 at 01:48:12PM +0100, Dominic Marks wrote: > > > I had this problem. To get good backtraces I do the following. I don't > > > know how "good" this method is, but it works for me. > > > > > > After making your system with makeoptions="-g", add the following to > > > /etc/rc.conf: > > > > > > savecore_flags="-N /usr/obj/usr/src/sys/GALLIUM/kernel.debug" > > > > > > Using the correct path for your kernel name. Then, in your crash dump > > > directory (mine is /usr/crash) run gdb -k kernel.N vmcore.N and you > > > should be able to get a good backtrace with symbols. > > > > That backtrace is from a debug kernel though? > > In my kernel config I have : > > makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols > > > > and after running "make installkernel" I just > > cp /usr/obj/usr/src/sys/RHADAMANTH/kernel.debug /var/crash > > > > Is that really not good enough (if not, I'll do it like you've suggested, but > > I don't always keep /usr/obj around) ? > > Well, I should have been more clear. You don't need to keep it in > /usr/obj. The following should work just as well. > > # cp /usr/obj/..BLAH../kernel.debug /var/debugkernels/ > > Then modify the savecore flags appropriately. Trying to get it to work > after this point always failed for me. YMMV. OK, I'm with you - I'll set that up now and wait for the next panic. Thanks again, Ceri -- get the cool shoe shine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message