From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 52861385842B; Wed, 22 Sep 2021 12:38:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 52861385842B From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug threads/28375] New: Cannot find user-level thread for LWP: generic error Date: Wed, 22 Sep 2021 12:38:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2021 12:38:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28375 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 ... --=20 You are receiving this mail because: You are on the CC list for the bug.=