Bug 29177 - [gdb, read1] FAIL: gdb.threads/manythreads.exp: stop threads 1
Summary: [gdb, read1] FAIL: gdb.threads/manythreads.exp: stop threads 1
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: testsuite (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: 13.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-25 09:43 UTC by Tom de Vries
Modified: 2022-06-07 14:32 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 2022-05-25 09:43:17 UTC
When running the test-case with check-read1, we run into:
...
[New Thread 0x7ffff7318700 (LWP 31125)]^M
[Thread 0x7ffff7321700 (LWP 31124) exited]^M
[New T^C^M
^M
Thread 769 "manythreads" received signal SIGINT, Interrupt.^M
[Switching to Thread 0x7ffff6d66700 (LWP 31287)]^M
0x00007ffff7586a81 in clone () from /lib64/libc.so.6^M
(gdb) FAIL: gdb.threads/manythreads.exp: stop threads 1
...

This regexp:
...
        -re "\\\[New \[^\]\]*\\\]\r\n" {
            exp_continue
        }   
...
swallows everything until a terminating ']', and consequently swallows the "received signal SIGINT".