[Bug gdb/21490] New: gdb/thread.c:1121: internal-error: void finish_thread_state(ptid_t): Assertion `tp' failed.

anton at samba dot org sourceware-bugzilla@sourceware.org
Sat May 13 17:58:00 GMT 2017


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

            Bug ID: 21490
           Summary: gdb/thread.c:1121: internal-error: void
                    finish_thread_state(ptid_t): Assertion `tp' failed.
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: anton at samba dot org
  Target Milestone: ---

I hit this assert on ppc64le with a build of HEAD from today:

gdb/thread.c:1121: internal-error: void finish_thread_state(ptid_t): Assertion
`tp' failed.

To reproduce

# cat testcase.S

#include <ppc-asm.h>
#include <syscall.h>

FUNC_START(_start)
        li      r0,SYS_exit
        li      r3,0
        sc
FUNC_END(_start)

# cat cmds

set pagination off
break _start
run
layout reg
stepi 5

# gcc -ffreestanding -nostdlib -fno-builtin -static -o testcase testcase.S
# gdb -x cmds ./testcase

[Inferior 1 (process 88304) exited normally]
../../binutils-gdb/gdb/thread.c:1121: internal-error: void
finish_thread_state(ptid_t): Assertion `tp' failed.
A problem internal to GDB has been detected,

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


More information about the Gdb-prs mailing list