From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AC23F3858C39; Thu, 16 Sep 2021 01:17:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC23F3858C39 From: "parke.nexus at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/26761] thread.c:95: internal-error: thread_info* inferior_thread(): Assertion `current_thread_ != nullptr' failed Date: Thu, 16 Sep 2021 01:17:19 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: parke.nexus at gmail 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 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, 16 Sep 2021 01:17:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26761 Parke changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |parke.nexus at gmail dot c= om --- Comment #6 from Parke --- I encounter a similar bug. Easy to reproduce. On Arch Linux: $ gdb --version GNU gdb (GDB) 10.2 [snip] $ gdb -q -ex run /bin/true Reading symbols from /bin/true... (No debugging symbols found in /bin/true) Starting program: /usr/bin/true=20 [Inferior 1 (process 339) exited normally] ../../gdb/thread.c:95: internal-error: thread_info* inferior_thread(): Assertion `current_thread_ !=3D nullptr' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. This is a bug, please report it. For instructions, see: . Aborted (core dumped) $ cat ~/.gdbinit define hook-quit set confirm off end python def exit_handler ( event ): if hasattr ( event, 'exit_code' ) and event .exit_code =3D=3D 0: gdb .execute ( "quit" ) gdb .events .exited .connect ( exit_handler ) end ---- I encounter a similar bug on Ubuntu 20.04. $ gdb --version GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2 [snip] $ gdb -q -ex run /bin/true Reading symbols from /bin/true... (No debugging symbols found in /bin/true) Starting program: /usr/bin/true=20 [Inferior 1 (process 4134946) exited normally] /build/gdb-OxeNvS/gdb-9.2/gdb/inferior.c:283: internal-error: inferior* find_inferior_pid(int): Assertion `pid !=3D 0' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. This is a bug, please report it. For instructions, see: . Aborted (core dumped) Possibly related: https://sourceware.org/bugzilla/show_bug.cgi?id=3D27682 --=20 You are receiving this mail because: You are on the CC list for the bug.=