public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug threads/28375] New: Cannot find user-level thread for LWP: generic error
@ 2021-09-22 12:38 vries at gcc dot gnu.org
0 siblings, 0 replies; only message in thread
From: vries at gcc dot gnu.org @ 2021-09-22 12:38 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=28375
Bug ID: 28375
Summary: Cannot find user-level thread for LWP: generic error
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: threads
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
With patch:
...
diff --git a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
b/gdb/testsuite/gdb
.threads/process-dies-while-detaching.exp
index ac1aad26ec5..3b59afb2fcf 100644
--- a/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
+++ b/gdb/testsuite/gdb.threads/process-dies-while-detaching.exp
@@ -240,6 +240,7 @@ proc test_detach_watch {multi_process cmd} {
global binfile decimal
clean_restart ${binfile}
+ gdb_test_no_output "set can-use-hw-watchpoints 0"
if ![runto_main] {
fail "can't run to main"
@@ -255,14 +256,16 @@ proc test_detach_watch {multi_process cmd} {
}
# Set a watchpoint in the child.
- gdb_test "watch globalvar" ".* watchpoint $decimal: globalvar"
+ gdb_test "watch globalvar" "Watchpoint $decimal: globalvar"
# Continue to the _exit breakpoint. This arms the watchpoint
# registers in all threads. Detaching will thus need to clear
# them out, and handle the case of the thread disappearing
# while doing that (on targets that need to detach from each
# thread individually).
- continue_to_exit_bp
+ with_timeout_factor 100 {
+ continue_to_exit_bp
+ }
do_detach $multi_process $cmd "normal"
}
...
we run into:
...
(gdb) PASS: gdb.threads/process-dies-while-detaching.exp: single-process:
continue: watchpoint: continue to breakpoint: _exit
continue^M
Continuing.^M
Cannot find user-level thread for LWP 10324: generic error^M
(gdb) FAIL: gdb.threads/process-dies-while-detaching.exp: single-process:
continue: watchpoint: continue
...
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-22 12:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-22 12:38 [Bug threads/28375] New: Cannot find user-level thread for LWP: generic error vries at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).