From: Randolph Chung <randolph@tausq.org>
To: Helge Deller <deller@gmx.de>
Cc: linux-parisc <linux-parisc@vger.kernel.org>,
John David Anglin <dave.anglin@nrc-cnrc.gc.ca>,
Carlos O'Donell <carlos@systemhalted.org>
Subject: Re: parisc: unwind tables and backtraces broken?
Date: Tue, 07 Jul 2009 10:57:18 +0800 [thread overview]
Message-ID: <4A52B98E.2070708@tausq.org> (raw)
In-Reply-To: <4A527397.7060306@gmx.de>
Helge,
> but the unwind table when running the kernel with the attached patch
> (see below) shows:
> ...
> unwind_init: start = 0x105fb3c0, end = 0x10634f30, entries = 14775
> unwind 1: 100ff900 - 100ffa80, len=385
> unwind 2: 100ffa84 - 100ffad4, len=81
> unwind 3: 100ffad8 - 100ffb2c, len=85
> unwind 4: 100ffb30 - 100ffbc8, len=153
> unwind 5: 100ffbcc - 100ffc38, len=109
> unwind 6: 100ffc3c - 100ffc9c, len=97
> unwind 7: 100ffca0 - 100ffd00, len=97
> unwind 8: 100ffd04 - 100ffd64, len=97
> unwind 9: 100ffd68 - 100ffdc8, len=97
> unwind 10: 100ffdcc - 100ffdec, len=33
>
> From this table I don't even understand the values of the very first
> entry (unwind 1: 100ff900 - 100ffa80).
> This does not resolve to any entry in the assembly.
I am a little fuzzy on the details, but the numbers printed above are
what is stored in the unwind table. This does not correspond with the
actual address in memory, which is adjusted by an offset. In the case of
kernel symbols, this offset is KERNEL_START (this is a parameter passed
to unwind_table_init()
> My assumption:
> When the linker creates the long-distance jump table, it does not adjusts
> the values in the unwind table.
this used to work.....
> Second, when the linker discards attribute-weak functions,
> it doesn't deletes/adjusts the unwind table entries of the deleted
> functions either.
can you try this with a userspace program? gdb uses this same unwind
information to do backtraces. if the unwind info is wrong gdb will be
very broken.
On the other hand, the kernel does use a more complex linker script so
it is possible that some options in the linker script is triggering some
bug.
randolph
next prev parent reply other threads:[~2009-07-07 2:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-06 21:58 parisc: unwind tables and backtraces broken? Helge Deller
2009-07-07 0:50 ` John David Anglin
2009-07-07 3:07 ` Randolph Chung
2009-07-07 4:42 ` Kyle McMartin
2009-07-07 14:07 ` Carlos O'Donell
2009-07-07 18:02 ` Helge Deller
2009-07-07 2:57 ` Randolph Chung [this message]
2009-07-07 18:01 ` Helge Deller
2009-07-07 18:33 ` John David Anglin
2009-07-07 20:36 ` Carlos O'Donell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A52B98E.2070708@tausq.org \
--to=randolph@tausq.org \
--cc=carlos@systemhalted.org \
--cc=dave.anglin@nrc-cnrc.gc.ca \
--cc=deller@gmx.de \
--cc=linux-parisc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.