From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C446F3858038; Wed, 9 Mar 2022 15:46:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C446F3858038 From: "git at jbrengineering dot co.uk" To: gdb-prs@sourceware.org Subject: [Bug gdb/28874] arm-none-eabi: internal-error: thread_info* inferior_thread(): Assertion `current_thread_ != nullptr' failed Date: Wed, 09 Mar 2022 15:46:13 +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: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: git at jbrengineering dot co.uk X-Bugzilla-Status: WAITING 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: 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: Wed, 09 Mar 2022 15:46:13 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28874 --- Comment #9 from John Whittington --- Created attachment 14012 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14012&action=3Ded= it patched remote add thread I had a bit of time and comparing diff of 11.1 with patch in original ticke= t, the combination of `add_thread_silent` into `remote_add_thread` for bare me= tal targets incorrectly orders the `switch_to_thread` call and the setting of t= he thread states `set_thread..`. I'll be honest I don't fully understand the thread methods here, but this is what appears to be the case and fixes the issue. I assume the `switch_to_thread` makes the phony thread real? --=20 You are receiving this mail because: You are on the CC list for the bug.=