This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]