From: Paul Pluzhnikov <ppluzhnikov@google.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb@sourceware.org
Subject: Re: More info on PR/9711 (quadratic slowdown for deep stack traces)
Date: Wed, 02 Sep 2009 03:42:00 -0000 [thread overview]
Message-ID: <8ac60eac0909012041i1a9d4f8fmbd13d19ec8039ef0@mail.gmail.com> (raw)
In-Reply-To: <20090901204815.GK4379@adacore.com>
On Tue, Sep 1, 2009 at 1:48 PM, Joel Brobecker<brobecker@adacore.com> wrote:
> Taking a step back, it does not feel like this is actually a super
> common issue. For this to happen, we need a program such that we get
> a really deep stack (with 1000 iterations, it takes 1.5 secs before
> my change, about 0.5 sec after IIRC), and a register that does not
> get saved throughout the entire stack. Since we still end up printing
> the correct value at the end, is it worth enhancing the design to
> handle this case?
It's been almost a year since I filed this PR, so am hazy on details :-(
AFAIR, the real problem showed up while debugging GDB itself, when I
made it go into infinite recursion loop. Making programs spin into the
ground via infinite recursion is not that uncommon (IMHO) and when
that happens, you do get 100_000 or more frames, and usually you only
care about the outermost 10 of so. It is quite annoying if GDB takes
several minutes to tell you what these 10 interesting frames are.
Cheers,
--
Paul Pluzhnikov
next prev parent reply other threads:[~2009-09-02 3:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-01 20:48 Joel Brobecker
2009-09-02 3:42 ` Paul Pluzhnikov [this message]
2009-09-02 4:52 ` Joel Brobecker
2009-09-02 4:57 ` Paul Pluzhnikov
2009-09-02 11:43 ` Daniel Jacobowitz
2009-09-02 16:24 ` Joel Brobecker
2009-09-03 18:40 ` Joel Brobecker
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=8ac60eac0909012041i1a9d4f8fmbd13d19ec8039ef0@mail.gmail.com \
--to=ppluzhnikov@google.com \
--cc=brobecker@adacore.com \
--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