Bug 31443 - [gdb/external, arm] FAIL: gdb.threads/threads-after-exec.exp: continue until exec (the program exited)
Summary: [gdb/external, arm] FAIL: gdb.threads/threads-after-exec.exp: continue until ...
Status: RESOLVED MOVED
Alias: None
Product: gdb
Classification: Unclassified
Component: external (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-02 12:35 UTC by Tom de Vries
Modified: 2024-03-05 23:25 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom de Vries 2024-03-02 12:35:32 UTC
On arm-linux, I ran into:
...
(gdb) PASS: gdb.threads/threads-after-exec.exp: catch exec
continue^M
Continuing.^M
[New Thread 0xf76a5420 (LWP 4211)]^M
[Inferior 1 (process 4209) exited normally]^M
(gdb) FAIL: gdb.threads/threads-after-exec.exp: continue until exec (the program exited)
...
Comment 1 Tom de Vries 2024-03-04 13:06:30 UTC
Another variant:
...
(gdb) catch exec^M
Catchpoint 2 (exec)^M
(gdb) PASS: gdb.threads/threads-after-exec.exp: catch exec
continue^M
Continuing.^M
[New Thread 0xf76a5420 (LWP 11994)]^M
ptrace: No such process.^M
(gdb) FAIL: gdb.threads/threads-after-exec.exp: continue until exec
p $_inferior_thread_count^M
Unable to fetch general registers: No such process.^M
(gdb) FAIL: gdb.threads/threads-after-exec.exp: p $_inferior_thread_count
[Inferior 1 (process 11992) exited normally]^M
print /d $_thread^M
$1 = 0^M
(gdb) FAIL: gdb.threads/threads-after-exec.exp: get integer valueof "$_thread" (the program exited)
...
Comment 2 Tom de Vries 2024-03-05 23:25:10 UTC
I ran this again with a newer kernel and didn't hit this in 100 repetitions.

I'm gonna assume it's external.