From: Kevin Buettner <kevinb@redhat.com>
To: Tom de Vries <tdevries@suse.de>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/testsuite] Fix timeouts in gdb.base/tls-dlobj.exp
Date: Thu, 8 Jan 2026 21:00:35 -0700 [thread overview]
Message-ID: <20260108210035.6134686f@f42-mesa-1> (raw)
In-Reply-To: <20260107091942.2506484-1-tdevries@suse.de>
Hi Tom,
I'll state at the outset that I don't have any firm objections to the
things you've done, but there are some things I'd like to understand
better first.
On Wed, 7 Jan 2026 10:19:42 +0100
Tom de Vries <tdevries@suse.de> wrote:
> When running the testsuite on a busy system, occasionally I run into
> timeouts in test-case gdb.base/tls-dlobj.exp (gdb build with -O0, as
> usual).
>
> When building gdb with Address Sanitizer (and still with -O0), I always
> run into timeouts, though it may differ where in the test-case.
>
> I can address this using with_timeout_factor, and the test-case finishes
> after a while without timeouts:
> ...
> real 2m30.139s
> user 2m32.834s
> sys 0m1.777s
> ...
>
> But the preferred way to deal with this is to cut up the long operation in
> smaller observable steps, each with their own timeout, so I tried out
> eliminating the use of continue in the test-case, and using next instead.
This is the key thing that I don't understand. Why should using 'next'
be faster than continuing to a breakpoint?
> In order not to spent too much time stepping through for loops like this:
> ...
> for (i = 1; i <= 4; i++)
> s0 (i, 10 + i);
> ...
> I rewrote those to a single line.
If using 'next' is truly better, then I'm fine with that change.
> With this new approach, I get instead:
> ...
> real 0m5.950s
> user 0m8.239s
> sys 0m1.318s
Wow - that's a truly astounding difference.
Kevin
next prev parent reply other threads:[~2026-01-09 4:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-07 9:19 Tom de Vries
2026-01-09 4:00 ` Kevin Buettner [this message]
2026-01-09 12:40 ` Tom de Vries
2026-01-09 13:02 ` Tom de Vries
2026-01-10 9:56 ` Tom de Vries
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=20260108210035.6134686f@f42-mesa-1 \
--to=kevinb@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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