From: "Kristoffer Sjöö" <krsj@nada.kth.se>
To: gdb@sourceware.org
Subject: Re: Hangs in GDB auto-complete
Date: Wed, 17 Nov 2010 10:35:00 -0000 [thread overview]
Message-ID: <4CE3AFED.8030400@nada.kth.se> (raw)
In-Reply-To: <m3sjz1i3rj.fsf@fleche.redhat.com>
On 2010-11-16 18:20, Tom Tromey wrote:
> Kristoffer> After I upgraded my Ubuntu system to Lucid Lynx (10.04)
>
> What version of gdb?
>
gdb --version
GNU gdb (GDB) 7.1-ubuntu
> Kristoffer> It's very irritating, especially when I end up having to
> Kristoffer> kill GDB.
>
> You should be able to C-c out of any completion.
> If you can't, then that is a gdb bug.
>
Well, I can't C-c. I'm stuck in one of these right now, in fact; it's
been locked up for 2-3 minutes now, at 148 % CPU according to top:
7563 krsj 20 0 184m 169m 67m R 148 8.5 5:55.72 gdb
Oh, wait! My C-c went through after 2 minutes! As I said, they're not
infinite lockups, but for practical purposes they may as well be sometimes.
This lockup happened when I typed
(gdb) p m_evaluator.m_lastWitness
...which isn't even an auto-complete, but just a symbol lookup. This
particular one should work, too; it's not a typo. I'll try it again
without C-c to see if it does find the symbol eventually...
The executable in question is attached while running, not started by
gdb, but another smaller project I am working on suffers from the same
problem while being started the usual way.
> Kristoffer> I've no notion of the inner workings of GDB and no idea what
> Kristoffer> this is all due to, but perhaps someone here has some clue?
>
> We need more details, ideally enough to try to reproduce the problem.
> It could be any number of things, depending on the details of what you
> are doing.
>
I'll see if I can find some method in the madness. Pretty sure it's got
nothing to do with the code I'm debugging but with my system and the way
gdb is configured somehow. (I haven't deliberately modded gdb in any
way, I hasten to add.)
There, the print command went through finally:
(gdb) p m_evaluator.m_lastWitness
$111 = {point1 = {x = 0.095000000000000001, y = 0.044999999999999998, z
= 1}, point2 = {x = 0.095000000000000001, y = 0.044999999999999998, z =
1.2599999713897705},
distance = 0.25999997138977049, typeOnA = spatial::WITNESS_FACE,
typeOnB = spatial::WITNESS_VERTEX, idOnA = 0, idOnB = 4, paramOnA = 0,
paramOnB = 7.5651897269402635e-306,
normal = {x = 0, y = 0, z = 1}}
I sure would like to be able to query variables reliably in less than
three minutes, though...
I'll see what I can do about setting up a repro case.
Kristoffer
next prev parent reply other threads:[~2010-11-17 10:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-16 12:31 Kristoffer Sjöö
2010-11-16 17:21 ` Tom Tromey
2010-11-16 17:50 ` Michael Snyder
2010-11-16 18:00 ` Paul Koning
2010-11-17 10:35 ` Kristoffer Sjöö [this message]
2010-11-18 21:31 ` Tom Tromey
2010-11-23 13:43 ` Kristoffer Sjöö
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=4CE3AFED.8030400@nada.kth.se \
--to=krsj@nada.kth.se \
--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