GDB broken for some backtraces

From: Martin Blapp <mb_at_imp.ch>
Date: Sat, 23 Sep 2006 14:01:57 +0200 (CEST)
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, <mb_at_imp.ch> <mbr_at_FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l mbr_at_freebsd.org>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------
Received on Sat Sep 23 2006 - 10:02:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:00 UTC