Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v3 00/11] Windows non-stop mode
Date: Fri, 8 May 2026 22:27:33 +0100	[thread overview]
Message-ID: <8a20e6ce-0f71-4a00-b62f-14cfc2ea32d5@palves.net> (raw)
In-Reply-To: <873401oi7w.fsf@tromey.com>

On 2026-05-08 19:43, Tom Tromey wrote:

> As mentioned elsewhere, this caused some regressions in the internal
> AdaCore test suite.

Thanks.

> 
> 
> On x86 Windows 2019 we see the "unwaited-for children" message
> 
>     (gdb) run my_which2
>     Starting program: C:\it\sbx\wave\x86-windows\gdb_version-head_test\tmp\test\gdb-TS-8qgi1zlz\K509-012__path_cmd\my_which.exe my_which2
>     C:\it\sbx\wave\x86-windows\gdb_version-head_test\tmp\test\gdb-TS-8qgi1zlz\K509-012__path_cmd\mybin2\my_which2.exe
>     No unwaited-for children left.
>     FAILED:K509-012__path_cmd:run my_which2
> 
> A few tests seem to fail this way but they are all pretty basic things
> like the above.

That sounds like the same symptom of the problem you saw last year, though I
think it was another test back then.

> 
> The same happens on x86-64 Windows 2019.
> 
> 
> There's another test that adds some event listeners from Python like:
> 
>         gdb.events.stop.connect(signal_stop_handler)
>         gdb.events.stop.connect(breakpoint_stop_handler)
>         gdb.events.exited.connect(exit_handler)
>         gdb.events.cont.connect(continue_handler)
> 
> These just print what happens.  The test started failing because what
> exactly happens has changed:
> 
>      --- Regression: K224-002__py-events:what_happened
>      - Could not match
>          event type: continue
>          event type: stop
>          event  !! FAILS HERE -> type: stop
>          stop reason: breakpoint
>          breakpoint number: @NUMBER
>          all threads stopped
>      - Against input line
>          event type: continue
>          event type: continue
>          event type: stop
>          event type: stop
>          stop reason: breakpoint
>          breakpoint number: 2
>          all threads stopped
> 
> That is, two stop events seem to be produced?
> 

I'm afraid I'm not able to parse the output above off hand.

> According to the notes this test is a port of gdb.python/py-events.exp,
> though I am not sure if they have diverged.

Hmm, I'm cross compiling Cygwin gdb and that doesn't include Python support.
I'll see if I can set things up to enable Python support and run
gdb.python/py-events.exp with Cygwin.

> 
> I'm not really sure that the Windows 2019 detail is completely relevant
> because that seems to be the only version of the OS that we're using to
> test gdb HEAD.

What was the other system that you ran tests on, where they passed?

I don't have a Windows 2019 machine handy.  I've been testing on Windows 11
with latest Microsoft updates.

> 
> Anyway I am happy to produce logs or something if that would help.
> Eventually I'll probably end up debugging this myself but it might be a
> while.

Reducing things to something that I could reproduce myself would help a lot.
We already tried that last year, and the tests I came up with that mimicked
yours didn't trigger the issues for me, unfortunately.  I don't think we ever
confirmed if my tests would trigger the problems for you, though.

Confirming that "maint show target-non-stop" says non-stop is on, and
checking whether "maint set target-non-stop off" makes a difference might help.

"set debug infrun 1" + the usual "set debugfoo 1" Windows target logs are probably
helpful.

Pedro Alves

  reply	other threads:[~2026-05-08 21:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-29 20:14 Pedro Alves
2026-04-29 20:14 ` [PATCH v3 01/11] Windows gdb+gdbserver: Check whether DBG_REPLY_LATER is available Pedro Alves
2026-04-29 20:14 ` [PATCH v3 02/11] linux-nat: Factor out get_detach_signal code to common code Pedro Alves
2026-04-29 20:14 ` [PATCH v3 03/11] Windows GDB: make windows_thread_info be private thread_info data Pedro Alves
2026-04-29 20:15 ` [PATCH v3 04/11] Introduce windows_nat::event_code_to_string Pedro Alves
2026-04-29 20:15 ` [PATCH v3 05/11] Windows gdb: Add non-stop support Pedro Alves
2026-04-29 20:15 ` [PATCH v3 06/11] Windows gdb: Watchpoints while running (internal vs external stops) Pedro Alves
2026-04-29 20:15 ` [PATCH v3 07/11] Windows gdb: extra thread info => show exiting Pedro Alves
2026-04-29 20:15 ` [PATCH v3 08/11] Add gdb.threads/leader-exit-schedlock.exp Pedro Alves
2026-04-29 20:15 ` [PATCH v3 09/11] infrun: with AS+NS, prefer process exit over thread exit Pedro Alves
2026-05-06 10:01   ` Bouhaouel, Mohamed
2026-05-08 21:37     ` Pedro Alves
2026-05-11 11:58       ` Bouhaouel, Mohamed
2026-04-29 20:15 ` [PATCH v3 10/11] Windows gdb: Always non-stop (default to "maint set target-non-stop on") Pedro Alves
2026-04-29 20:15 ` [PATCH v3 11/11] Mention Windows non-stop support in NEWS Pedro Alves
2026-04-30  5:55 ` [PATCH v3 00/11] Windows non-stop mode Eli Zaretskii
2026-04-30 10:13   ` Pedro Alves
2026-04-30 11:14     ` Eli Zaretskii
2026-04-30 12:01       ` Pedro Alves
2026-04-30 14:15         ` [PATCH] Clarify "maint set target-non-stop" in GDB manual (Re: [PATCH v3 00/11] Windows non-stop mode) Pedro Alves
2026-04-30 15:09           ` Eli Zaretskii
2026-04-30 16:18             ` [PATCH v2] " Pedro Alves
2026-04-30 16:27               ` Eli Zaretskii
2026-04-30 16:33                 ` Pedro Alves
2026-04-30 17:45 ` [PATCH v3 00/11] Windows non-stop mode Pedro Alves
2026-05-08 18:43 ` Tom Tromey
2026-05-08 21:27   ` Pedro Alves [this message]
2026-05-22  0:22     ` Pedro Alves
2026-06-02 19:00     ` Tom Tromey

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=8a20e6ce-0f71-4a00-b62f-14cfc2ea32d5@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@adacore.com \
    /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