From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D08E33858413; Thu, 26 Aug 2021 19:39:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D08E33858413 From: "andrew.burgess at embecosm dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28275] commit_resumed_state assertion failure when killing running inferior and running again Date: Thu, 26 Aug 2021 19:39:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andrew.burgess at embecosm dot com 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: cc attachments.created Message-ID: In-Reply-To: References: 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: Thu, 26 Aug 2021 19:39:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28275 Andrew Burgess changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andrew.burgess at embecosm= dot com --- Comment #1 from Andrew Burgess --- Created attachment 13630 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D13630&action=3Ded= it Patch to add a related issue into the testsuite. I ran into the same assertion while debugging some other issue. My steps to reproduce are slightly different, but I thought I'd add the details here as= it feels like these two cases must be related: $ /tmp/gdb/testsuite/outputs/gdb.threads/detach-step-over/detach-step-over $ gdb (gdb) attach 608289 Attaching to program: /tmp/gdb/testsuite/outputs/gdb.threads/detach-step-over/detach-step-over, process 608289 ... snip ... [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". 0x00007f84068f4215 in nanosleep () from /lib64/libc.so.6 (gdb) break detach-step-over.c:54 if 0 Breakpoint 1 at 0x40119c: file /tmp/gdb/testsuite/../../../src/gdb/testsuite/gdb.threads/detach-step-over.= c, line 54. (gdb) continue & Continuing. (gdb) q A debugging session is active. Inferior 1 [process 608289] will be detached. Quit anyway? (y or n) y ../../src/gdb/target.c:3778: internal-error: void target_stop(ptid_t): Assertion `!proc_target->commit_resumed_state' failed. The patch I've attached modifies gdb.threads/detach-step-over.exp to show t= his bug, this patch isn't ready to upstream in its current state. --=20 You are receiving this mail because: You are on the CC list for the bug.=