public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/26761] thread.c:95: internal-error: thread_info* inferior_thread(): Assertion `current_thread_ != nullptr' failed
Date: Sun, 19 Sep 2021 02:10:39 +0000	[thread overview]
Message-ID: <bug-26761-4717-k5veCymCsO@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-26761-4717@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=26761

--- Comment #7 from Simon Marchi <simark at simark dot ca> ---
(In reply to Parke from comment #6)
> 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 
> [Inferior 1 (process 339) exited normally]
> ../../gdb/thread.c:95: internal-error: thread_info* inferior_thread():
> Assertion `current_thread_ != 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:
> <https://www.gnu.org/software/gdb/bugs/>.
> 
> 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 == 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 
> [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 != 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:
> <http://www.gnu.org/software/gdb/bugs/>.
> 
> Aborted (core dumped)
> 
> Possibly related:
> https://sourceware.org/bugzilla/show_bug.cgi?id=27682

Although the symptom is the same, the root cause for this particular assertion
to fail can be one of many things.  So I would suggest filing a new bug, with a
title that is specific to what you are doing (e.g. "Assertion failure when
using Python exit event handler".

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-09-19  2:10 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-20 16:07 [Bug gdb/26761] New: " vries at gcc dot gnu.org
2020-10-20 16:07 ` [Bug gdb/26761] " vries at gcc dot gnu.org
2020-11-25 21:05 ` marcdufresne at laposte dot net
2020-12-13 13:12 ` ddresser at bmc dot com
2020-12-14 19:04 ` simark at simark dot ca
2020-12-14 19:06 ` simark at simark dot ca
2021-02-17 22:34 ` Minima2014 at iCloud dot com
2021-09-16  1:17 ` parke.nexus at gmail dot com
2021-09-19  2:10 ` simark at simark dot ca [this message]
2021-09-19  3:43 ` parke.nexus at gmail dot com
2022-09-29 10:02 ` vries at gcc dot gnu.org
2022-09-29 12:07 ` vries at gcc dot gnu.org
2022-09-29 14:24 ` simark at simark dot ca
2022-09-29 14:42 ` vries at gcc dot gnu.org
2022-09-29 14:43 ` vries at gcc dot gnu.org
2022-09-29 15:22 ` vries at gcc dot gnu.org
2022-12-15 14:56 ` tromey at sourceware dot org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-02-27 23:21 ` cvs-commit at gcc dot gnu.org
2023-03-09 22:44 ` kevinb at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-26761-4717-k5veCymCsO@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).