From owner-freebsd-current Sat Aug 31 16: 3: 3 2002 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 4C5BD37B400 for ; Sat, 31 Aug 2002 16:03:00 -0700 (PDT) Received: from itesec.hsc.fr (itesec.hsc.fr [192.70.106.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C47043E77 for ; Sat, 31 Aug 2002 16:02:59 -0700 (PDT) (envelope-from yb@sainte-barbe.org) Received: from taz.hsc.fr (ogoun.hsc.fr [192.70.106.75]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "taz.hsc.fr", Issuer "HSC CA" (verified OK)) by itesec.hsc.fr (Postfix) with ESMTP id B41D220F42 for ; Sun, 1 Sep 2002 01:02:58 +0200 (CEST) Received: by taz.hsc.fr (Postfix, from userid 1000) id 4D8A65B0; Sun, 1 Sep 2002 01:02:46 +0200 (CEST) Date: Sun, 1 Sep 2002 01:02:46 +0200 From: Yann Berthier To: current@FreeBSD.org Subject: Re: Problems reading vmcores Message-ID: <20020831230245.GB74473@hsc.fr> Mail-Followup-To: current@FreeBSD.org References: <20020831212639.GA58028@xor.obsecurity.org> <20020831214201.GA74473@hsc.fr> <20020831220043.GA58767@xor.obsecurity.org> <20020831220328.GA58880@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020831220328.GA58880@xor.obsecurity.org> X-Organization: Herve Schauer Consultants X-Web: http://www.hsc.fr/ X-Operating-System: FreeBSD 5.0-CURRENT User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 31 Aug 2002, Kris Kennaway wrote: > On Sat, Aug 31, 2002 at 03:00:43PM -0700, Kris Kennaway wrote: > > On Sat, Aug 31, 2002 at 11:42:01PM +0200, Yann Berthier wrote: > > > On Sat, 31 Aug 2002, Kris Kennaway wrote: > > > > > > > I'm having difficulty reading vmcore images with gdb (either the > > > > system version or the port). > > > > > > > > (gdb) gohan10# gdb /a/kernel.debug /a/vmcore.0 > > > > > > But you need to specify the -k flag to gdb to use it against kernel > > > dumps, I'm sure it will give much better results :) > > > > Oops, pasted the wrong thing: > > > > gohan10# gdb -k kernel.debug vmcore.0 > > GNU gdb 5.2.0 (FreeBSD) 20020627 > > Copyright 2002 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-undermydesk-freebsd"... > > /a/vmcore.0: Undefined error: 0. > > Also > > gohan10# bin/gdb52 -k kernel.debug vmcore.0 > GNU gdb 5.2 (FreeBSD) > Copyright 2002 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-portbld-freebsd5.0"... > /a/vmcore.0: Bad file descriptor. Sorry, I can't help you: I never uncountered this behavior, and certainly not on the recent kernel dumps I have under the hood. PS: I must admit I was a bit surprised by your initial post, I have classified it in the 'he must be aspleep / under caffeined ' category :) - yann To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message