From owner-freebsd-current@FreeBSD.ORG Wed Sep 15 21:04:26 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 211F916A4CE for ; Wed, 15 Sep 2004 21:04:26 +0000 (GMT) Received: from firetide.com (firetide.com [64.62.241.102]) by mx1.FreeBSD.org (Postfix) with SMTP id EC4E843D48 for ; Wed, 15 Sep 2004 21:04:25 +0000 (GMT) (envelope-from kmcatee@firetide.com) Received: from fbsd01 ([67.52.72.226]) by firetide.com for ; Wed, 15 Sep 2004 14:04:23 -0700 From: Kip McAtee To: freebsd-current@freebsd.org Date: Wed, 15 Sep 2004 11:04:23 -1000 User-Agent: KMail/1.6 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200409151104.23912.kmcatee@firetide.com> Subject: remote kernel gdb stack frames corrupted after breakpoint or step 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: Wed, 15 Sep 2004 21:04:26 -0000 Greetings- I'm building on 5.3-BETA4 (and 6.0 current) with gdb (and kgdb) 6.1.1. I can get into the remote kernel debugger with sysctl debug.kdb.enter=1 I can set a breakpoint and continue. When it hits the breakpoint I get: Breakpoint 2, wakeup (ident=0xc0c0f9e8) at ../../../kern/kern_synch.c:253 253 sleepq_broadcast(ident, SLEEPQ_MSLEEP, -1); (kgdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. Looking at the backtrace implies that the stack frames are not displayed correctly. I'm setting: machine i386 cpu I486_CPU cpu I586_CPU options CPU_ELAN options CPU_GEODE makeoptions DEBUG=-g options KDB options DDB options GDB All flavors of step, next, etc are failing, but I can dereference variables in the current stack frame. Thanks- Kip