From owner-freebsd-current@FreeBSD.ORG Sat Sep 23 12:02:00 2006 Return-Path: X-Original-To: current@freebsd.org 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 7722716A4D2; Sat, 23 Sep 2006 12:02:00 +0000 (UTC) (envelope-from mb@imp.ch) Received: from pop.imp.ch (mx2.imp.ch [157.161.9.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF14643D53; Sat, 23 Sep 2006 12:01:59 +0000 (GMT) (envelope-from mb@imp.ch) Received: from godot.imp.ch (godot.imp.ch [157.161.4.8]) by pop.imp.ch (8.13.8/8.13.8/Submit_imp) with ESMTP id k8NC1vUV031102; Sat, 23 Sep 2006 14:01:58 +0200 (CEST) (envelope-from mb@imp.ch) Date: Sat, 23 Sep 2006 14:01:57 +0200 (CEST) From: Martin Blapp To: kan@freebsd.org Message-ID: <20060923095351.E91466@godot.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Scanned-By: MIMEDefang 2.57 on 157.161.9.65 Cc: current@freebsd.org Subject: GDB broken for some backtraces X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Sat, 23 Sep 2006 12:02:00 -0000 Hi all, I wonder if this problem has already been adressed by someone: http://lists.freebsd.org/pipermail/freebsd-arch/2005-July/004055.html >It seems worse than that -- the gdb backtrace might show unknown or >completely bogus frames as a result. For example, we've run across >the tty locking issue (discussed on -stable), and backtraces often >look like: > >#6 0xa0723d8a in calltrap () at /usr/src/sys/i386/i386/exception.s:202 >#7 0xc7f10018 in ?? () >#8 0xa05b0010 in power_profile_set_state (state=0) > at /usr/src/sys/kern/subr_power.c:110 >#9 0xa05c942c in ttwakeup (tp=0xa23fdc00) at /usr/src/sys/kern/tty.c:2370 >#10 0xa05c7d71 in ttymodem (tp=0xa23fdc00, flag=0) > at /usr/src/sys/kern/tty.c:1625 A ddb trace is still readable then, but kgdb doesn't show a backtrace and tells me it's hosed. All frames before frame 6 are corrupt in kgdb. Any idea how to fix kgdb ? Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------