From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 15:39:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17B3816A4D0 for ; Fri, 20 May 2005 15:39:08 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 23D6243D86 for ; Fri, 20 May 2005 15:39:07 +0000 (GMT) (envelope-from aurelbodenmann@gmx.ch) Received: (qmail 19471 invoked by uid 0); 20 May 2005 15:39:02 -0000 Received: from 80.238.133.37 by www14.gmx.net with HTTP; Fri, 20 May 2005 17:39:02 +0200 (MEST) Date: Fri, 20 May 2005 17:39:02 +0200 (MEST) From: "Aurel Bodenmann" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Priority: 3 (Normal) X-Authenticated: #14536212 Message-ID: <16574.1116603542@www14.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Subject: kgdb doesn't seem to work, says "Cannot read PTD" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 15:39:08 -0000 Hello! My FreeBSD box is giving me quite a hard time, it panics from time to time (normally after a few days uptime), I suspect it has something to do with this cheap SATA controller I'm using (Promise SATA150 TX4). Anyway, I wanted to locate the problem and do something about it (aka submit an useful coredump to this list :-) but unfortunately neither gdb nor kgdb seem to work for me. I've tried to make a coredump as described in [1] and have now a kernel.debug file (containing the kernel with debug information) and a vmcore.1 file (whose size is 768MB as it should be). Now, I'm trying to open these two with gdb -k kernel.debug vmcore.1 but it says gdb: unrecognized option `-k' Use `gdb --help' for a complete list of options. so I read the manpage only to find out that -k still exists and that it should work like described in [1]. Ok, so I've tried kgdb but it gives me an error too: root> kgdb kernel.debug vmcore.1 kgdb: cannot read PTD after some googling I found out, that some people are having the same trouble ([2] and [3]) but unfortunately I couldn't find any advice on how-to create an useful coredump without using kgdb or gdb. I would really appreciate if someone could help me, I would like to help on this bug. Thanks, Aurel Bodenmann [1] http://www.onlamp.com/pub/a/bsd/2002/04/04/Big_Scary_Daemons.html [2] http://lists.freebsd.org/mailman/htdig/freebsd-hackers/2005-April/ 011461.html [3] http://lists.freebsd.org/pipermail/freebsd-stable/2005-May/ 014515.html -- 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail +++ GMX - die erste Adresse für Mail, Message, More +++