From owner-freebsd-current@FreeBSD.ORG Thu Apr 15 22:17:39 2004 Return-Path: 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 19A4816A4CE for ; Thu, 15 Apr 2004 22:17:39 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D58D343D53 for ; Thu, 15 Apr 2004 22:17:37 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.9/8.12.8) with ESMTP id i3G5HWQ9093542; Fri, 16 Apr 2004 14:47:32 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org Date: Fri, 16 Apr 2004 14:47:29 +0930 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200404161447.29595.doconnor@gsoft.com.au> X-Spam-Score: -2.3 () CARRIAGE_RETURNS,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: GDB broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 16 Apr 2004 05:17:39 -0000 Hi, I was helping someone test patches in -current and got a crash dump, but GDB doesn't like reading it.. [inchoate 14:45] /var/crash >sudo gdb -k /boot/kernel/kernel /var/crash/vmcore.1 GNU gdb 5.2.1 (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-undermydesk-freebsd"...(no debugging symbols found)... zsh: segmentation fault (core dumped) sudo gdb -k /boot/kernel/kernel /var/crash/vmcore.1 OK.. let's try the debug version.. [inchoate 14:45] /usr/src/sys/i386/compile/INCHOATE >sudo gdb -k kernel.debug /var/crash/vmcore.1 GNU gdb 5.2.1 (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-undermydesk-freebsd"... /var/crash/vmcore.1: Unknown error: 0. (kgdb) No dice either.. And the GDB back trace.. [inchoate 14:45] /var/crash >sudo gdb gdb gdb.core GNU gdb 5.2.1 (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-undermydesk-freebsd"...(no debugging symbols found)... Core was generated by `gdb'. Program terminated with signal 11, Segmentation fault. #0 0x08198b5d in ?? () (gdb) bt #0 0x08198b5d in ?? () #1 0x0816d13a in ?? () #2 0x080b19ba in ?? () #3 0x080b27fe in ?? () #4 0x080b2891 in ?? () #5 0x080f87ae in ?? () #6 0x080a6514 in ?? () #7 0x080a6668 in ?? () #8 0x080a6445 in ?? () #9 0x080f82ea in ?? () #10 0x0805888c in ?? () #11 0x080a90ed in ?? () #12 0x080a908e in ?? () #13 0x080a8f86 in ?? () #14 0x080a90c4 in ?? () #15 0x080a912e in ?? () #16 0x08078db3 in ?? () #17 0x080a908e in ?? () #18 0x080a8f86 in ?? () #19 0x080a90c4 in ?? () #20 0x08078f56 in ?? () #21 0x08048136 in ?? () I'd rebuild GDB with -g but I don't know how :( Anyone got any ideas? :) The kernel+world is April 2nd vintage. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5