From: Daniel Jacobowitz <drow@false.org>
To: "Zarges, Olav" <Olav.Zarges@imc-berlin.de>,
"gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: gdb-6.5 produces infinite backtrace on ARM
Date: Sat, 19 Aug 2006 05:24:00 -0000 [thread overview]
Message-ID: <20060819052434.GA15612@nevyn.them.org> (raw)
In-Reply-To: <20060815124053.GA18496@nevyn.them.org>
On Tue, Aug 15, 2006 at 08:40:54AM -0400, Daniel Jacobowitz wrote:
> Normally you should get an ugly end of the backtrace, not an infinite
> one. If you'd like, I can take a look at what's gone wrong. I would
> need enough to reproduce the problem - which probably means a tarball
> including the source, compiled executable, and shared libraries which
> it uses, since this may be specific to something about your build
> environment. If you want to do that, let me know; it's too big to post
> to the list.
Thanks a lot for the test case. The underlying cause was that
pthread_start_thread is marked noreturn; GCC seems to have omitted
the LR register save in this case. I thought it wouldn't do that,
but in any case, we should cope.
I know have a fairly general patch set for this problem, which
produces:
(gdb) bt
...
#4 0xxxxxxxx in pthread_start_thread () from /lib/libpthread.so.0
Backtrace stopped: frame did not save the PC
(gdb)
This isn't ideal - we could detect the pthread_start_thread function
name and stop automatically, which might be a wise addition - but it's
better than going off into the woods.
There's about 250 lines of changes involved, to one of the more
complicated parts of GDB, so I will need to go over the patches again
and post them separately. But I'll try to make sure this is fixed
soon.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2006-08-19 5:24 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-15 8:15 Zarges, Olav
2006-08-15 12:41 ` Daniel Jacobowitz
2006-08-15 13:54 ` Zarges, Olav
2006-08-19 5:24 ` Daniel Jacobowitz [this message]
2006-08-21 11:35 ` Zarges, Olav
2006-08-21 12:42 ` Daniel Jacobowitz
2006-08-21 14:37 ` Zarges, Olav
2006-08-21 14:54 ` Daniel Jacobowitz
2006-09-06 13:32 ` Zarges, Olav
2006-09-06 14:44 ` Daniel Jacobowitz
2006-09-06 15:03 ` Zarges, Olav
2006-09-06 15:19 ` Daniel Jacobowitz
2006-09-06 15:38 ` Zarges, Olav
2006-09-06 15:52 ` Daniel Jacobowitz
2006-09-07 16:15 ` Zarges, Olav
2006-09-07 17:38 ` Daniel Jacobowitz
2006-09-10 14:49 ` Daniel Jacobowitz
2006-09-19 1:40 ` Michael Snyder
2006-09-19 3:17 ` Daniel Jacobowitz
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=20060819052434.GA15612@nevyn.them.org \
--to=drow@false.org \
--cc=Olav.Zarges@imc-berlin.de \
--cc=gdb@sourceware.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox