From owner-freebsd-current Tue Jul 9 9:47:24 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 E00B637B400 for ; Tue, 9 Jul 2002 09:47:18 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ED4243E54 for ; Tue, 9 Jul 2002 09:47:18 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 6536 invoked from network); 9 Jul 2002 16:47:14 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 9 Jul 2002 16:47:14 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g69Gl2f09398; Tue, 9 Jul 2002 12:47:02 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020709.100217.71087662.imp@bsdimp.com> Date: Tue, 09 Jul 2002 12:47:06 -0400 (EDT) From: John Baldwin To: "M. Warner Losh" Subject: RE: Crash dumps on current Cc: current@freebsd.org 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 09-Jul-2002 M. Warner Losh wrote: > OK. How the ***** do I get a *!@#$@$#% crash dump on current? I > did a dumpon to enable the dumping, which appeared to work. I then > did a savecore after the system came back up (but before any swapping > happened) and that seemed to work. I then tried to use gdb to read > the core dump and got the following: > > 9:58am hammer:/dell/crash[52]> sudo gdb -k *.2 > GNU gdb 4.18 (FreeBSD) > Copyright 1998 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-unknown-freebsd"... > > "/dell/crash/info.2": not in executable format: File format not recognized > > > kgdb could not open the exec-file, please check the name you used ! > (kgdb) quit > sudo gdb -k ~/FreeBSD/src/sys/i386/compile/GENERIC/kernel.debug vmcore.2 > GNU gdb 4.18 (FreeBSD) > Copyright 1998 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-unknown-freebsd"...Deprecated bfd_read called at > /dell/imp/FreeBSD/src/contrib/gdb/gdb/dwarf2read.c line 3049 in dwarf2_read_section > > > Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader. > > > kernel symbol `cpuhead' not found. > (kgdb) quit > > Needless to say, I'm somewhat frustrated as to what to do. Ideas? If you still want to use gdb 4.18, you have to build your kernel with DEBUG=-gstabs+ or some such. Either that or use gdb52 from ports or from a more recent system with your kernel and dump. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message