From: Pedro Alves <palves@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: gdb-7.11.1 - 2 weeks to go...
Date: Wed, 25 May 2016 15:22:00 -0000 [thread overview]
Message-ID: <512c2f2d-b85b-766e-99e0-d219fca20dc7@redhat.com> (raw)
In-Reply-To: <20160520132452.GF26324@adacore.com>
On 05/20/2016 02:24 PM, Joel Brobecker wrote:
> Hi Pedro,
>
>> Odd, it definitely doesn't work for me on master.
>
> I don't recall exactly, but I must have thought it was fixed just
> because I saw a commit. Sorry if that caused some confusion.
No worries, no real confusion.
>> Another option that just occurred to me, is to apply the fuller fix
>> to the branch (patch #6 in the series), and disable the
>> attach-many-short-lived-threads.exp test in the branch? GDB regresses
>> in the use case of attaching to a program that is constantly spawning
>> many threads in quick succession, though that's a contrived use case
>> to expose problems. Probably no program in the wild is like that.
>> I hope. Use cases like Go programs with tons of goroutines make me
>> worry a bit.
>
> At this stage, I think we should only commit changes we are confident
> about. If that leaves things broken and regressing, well, better
> document them, especially if we have workarounds, or else direct
> people to 7.10 or future releases.
*nod*
>
> In this case, if you feel good about your simpler fix, we could go
> with that on the branch, while we aim at getting your complete
> series on master. Just thinking out loud.
> Another option is doing nothing,
To be clear, the reported bug is unrelated to
attach-many-short-lived-threads.exp. It's just that fixing the bug
surprisingly regresses attach-many-short-lived-threads.exp.
> or disabling attach-many-short-lived-threads.exp. This
> test is very good, but also not always representative of typical
> programs.
>
Right.
The full fix is in master since yesterday. I let the buildbot chew
on it overnight, and looked at fail reports. Although some builders
showed attach-many-short-lived-threads.exp failures, all I saw
looked like pre-existing racy fails that also appear before the fixes.
I've spent today trying to come up with a simpler fix, but all I tried
has some significant drawback. E.g., I tried making the detach path
cope with an lwp not in gdb's thread list (avoiding the
PR gdb/19828 assertion), but then gdb crashes elsewhere. Disabling
all-stop-on-top-of-non-stop would be another potential path forward, but
although it'd be a one-liner, it's quite an invasive change to make
in a patch release, as it completely changes how the infrun.c ->
linux-nat.c cooperate...
So all in all, I prefer the approach of pushing the fuller fix to the
branch, without the invasive optimization bits, and disable the
attach-many-short-lived-threads.exp test.
I'll do that in a bit.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2016-05-25 15:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-10 16:18 Joel Brobecker
2016-05-19 15:21 ` Pedro Alves
2016-05-20 13:25 ` Joel Brobecker
2016-05-25 15:22 ` Pedro Alves [this message]
2016-05-25 17:45 ` Pedro Alves
2016-05-27 14:05 ` 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=512c2f2d-b85b-766e-99e0-d219fca20dc7@redhat.com \
--to=palves@redhat.com \
--cc=brobecker@adacore.com \
--cc=gdb-patches@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