[Bug remote/12228] thread.c:598: internal-error: is_thread_state: Assertion `tp' failed.

b.r.longbons at gmail dot com sourceware-bugzilla@sourceware.org
Tue May 2 23:14:00 GMT 2017


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

Ben Longbons <b.r.longbons at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b.r.longbons at gmail dot com

--- Comment #2 from Ben Longbons <b.r.longbons at gmail dot com> ---
I hit this with a minimal example while filing another bug:

GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
@(gdb) target extended-remote | gdbserver --multi stdio
Remote debugging using | gdbserver --multi stdio
Remote debugging using stdio
@(gdb) set remote exec-file /bin/true
@(gdb) run
Starting program:  
Process /bin/true created; pid = 679
stdin/stdout redirected
Reading /bin/true from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to
access files locally instead.
Reading /bin/true from remote target...
Reading symbols from target:/bin/true...Reading
/bin/e82394864538fa7b23b7f87b259ea2a20889c4.debug from remote target...
Reading /bin/.debug/e82394864538fa7b23b7f87b259ea2a20889c4.debug from remote
target...
(no debugging symbols found)...done.
/build/gdb-A87voC/gdb-7.12/gdb/thread.c:982: internal-error: int
is_thread_state(ptid_t, thread_state): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
@Quit this debugging session? (y or n) y

This is a bug, please report it.  For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.

/build/gdb-A87voC/gdb-7.12/gdb/thread.c:982: internal-error: int
is_thread_state(ptid_t, thread_state): Assertion `tp' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
@Create a core file of GDB? (y or n) y
[1]    669 abort (core dumped)  gdb


For this case, adding `file /bin/true` fixes it.

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


More information about the Gdb-prs mailing list