public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/26271] New: thread.c:93: internal-error: thread_info* inferior_thread(): Assertion `tp' failed
@ 2020-07-21  5:49 koen at kdvelectronics dot eu
  0 siblings, 0 replies; only message in thread
From: koen at kdvelectronics dot eu @ 2020-07-21  5:49 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 26271
           Summary: thread.c:93: internal-error: thread_info*
                    inferior_thread(): Assertion `tp' failed
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: koen at kdvelectronics dot eu
  Target Milestone: ---

Created attachment 12715
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12715&action=edit
core dump, gdb 9.3.1

Host arm/linux (raspbian), target arm. gdb-9.3.1 from
https://xpack.github.io/blog/2020/07/03/arm-none-eabi-gcc-v9-3-1-1-1-released/ 
gdb crashes upon unexpected response from debugger probe. Session transcript:


koen@raspberrypi:~/src/sh/bluepill$ arm-none-eabi-gdb
GNU gdb (xPack GNU Arm Embedded GCC, 32-bit) 8.3.1.20191211-git
Copyright (C) 2019 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 "--host=armv8l-unknown-linux-gnueabihf
--target=arm-none-eabi".
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 /dev/ttyBmpGdb
Remote debugging using /dev/ttyBmpGdb
warning: No executable has been specified and target does not support
determining executable automatically.  Try using the "file" command.
0x080039ec in ?? ()
(gdb) mon ver
Black Magic Probe (Firmware v1.6.1-512-gbe69913) (Hardware stm32f723iek on
stlink3mini)
Copyright (C) 2015  Black Sphere Technologies Ltd.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
(gdb) mon tp ena
Enabling target power
(gdb) file SemihostingTest.ino.elf 
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from SemihostingTest.ino.elf...
(gdb) lo
Loading section .isr_vector, size 0x10c lma 0x8000000
Loading section .text, size 0x52c0 lma 0x800010c
Loading section .rodata, size 0x8a0 lma 0x80053cc
Loading section .init_array, size 0x10 lma 0x8005c6c
Loading section .fini_array, size 0xc lma 0x8005c7c
Loading section .data, size 0x208 lma 0x8005c88
Start address 0x80039a4, load size 24208
Transfer rate: 72 KB/sec, 834 bytes/write.
(gdb) compare-sections 
Section .isr_vector, range 0x8000000 -- 0x800010c: matched.
Section .text, range 0x800010c -- 0x80053cc: matched.
Section .rodata, range 0x80053cc -- 0x8005c6c: matched.
Section .init_array, range 0x8005c6c -- 0x8005c7c: matched.
Section .fini_array, range 0x8005c7c -- 0x8005c88: matched.
Section .data, range 0x8005c88 -- 0x8005e90: matched.
(gdb) set debug serial 1
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
[
w $][v][K][i][l][l][;][a][4][1][0][#][3][3][
r +][$][#][0][0][
w +][$][k][#][6][b][
r +][
w $][?][#][3][f][
r -][
w $][?][#][3][f][
r +][$][T][0][5][#][b][9][
w
+]/Host/home/ilg/Work/arm-none-eabi-gcc-9.3.1-1.1/sources/gdb/gdb/thread.c:93:
internal-error: thread_info* inferior_thread(): 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/>.

/Host/home/ilg/Work/arm-none-eabi-gcc-9.3.1-1.1/sources/gdb/gdb/thread.c:93:
internal-error: thread_info* inferior_thread(): 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
Aborted (core dumped)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-21  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-21  5:49 [Bug gdb/26271] New: thread.c:93: internal-error: thread_info* inferior_thread(): Assertion `tp' failed koen at kdvelectronics dot eu

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).