[Bug testsuite/34427] [gdb/testsuite] FAIL: gdb.threads/vfork-multi-inferior.exp: method=non-stop: inferior 1 (timeout)

"cvs-commit at gcc dot gnu.org via Gdb-prs" <[email protected]>
Newsgroups gmane.comp.gdb.bugs.discuss
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34427

--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tom de Vries <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=d073260de4fcce27a4107e2a0932ca8b84d53529

commit d073260de4fcce27a4107e2a0932ca8b84d53529
Author: Tom de Vries <[email protected]>
Date:   Sat Jul 25 08:29:16 2026 +0200

    [gdb/testsuite] Fix timeout in gdb.threads/vfork-multi-inferior.exp

    With test-case gdb.threads/vfork-multi-inferior.exp I get either:
    ...
    (gdb) run &
    Starting program: vfork-multi-inferior-sleep
    (gdb) PASS: $exp: method=non-stop: run inferior 2
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    inferior 1
    [Switching to inferior 1 [<null>] (<noexec>)]
    (gdb) PASS: $exp: method=non-stop: inferior 1
    ...
    or:
    ...
    (gdb) run &
    Starting program: vfork-multi-inferior-sleep
    (gdb) PASS: $exp: method=non-stop: run inferior 2
    inferior 1^M
    [Switching to inferior 1 [<null>] (<noexec>)]^M
    (gdb) PASS: $exp: method=non-stop: inferior 1
    [Thread debugging using libthread_db enabled]^M
    Using host libthread_db library "/lib64/libthread_db.so.1".^M
    ...

    With a 16.3-based package on aarch64-linux, I ran into:
    ...
    (gdb) run &
    Starting program: vfork-multi-inferior-sleep
    (gdb) PASS: $exp: method=non-stop: run inferior 2
    inferior 1
    [Switching to inferior 1 [<null>] (<noexec>)]
    (gdb) [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    FAIL: $exp: method=non-stop: inferior 1
    (timeout)
    ...

    Unfortunately I have not been able to reproduce this.

    Fix this using -no-prompt-anchor.

    See also commit 5f69c00a6e0 ("[gdb/testsuite] Fix timeout in
    gdb.base/async-shell.exp").

    Reviewed-By: Keith Seitz <[email protected]>
    Approved-By: Kevin Buettner <[email protected]>

    Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34427

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.