gdb/crash command aborted (core dumped) due to assertion failure in the copy_type() of GDB.

Solution In Progress - Updated -

Issue

  • gdb/crash command aborted (core dumped) due to assertion failure in the copy_type() of GDB.
# gdb -q /usr/bin/uptime
Reading symbols from /usr/bin/uptime...
Reading symbols from .gnu_debugdata for /usr/bin/uptime...
(No debugging symbols found in .gnu_debugdata for /usr/bin/uptime)
Missing separate debuginfos, use: dnf debuginfo-install procps-ng-3.3.17-8.el9.x86_64
(gdb) start
Temporary breakpoint 1 at 0x12f0
Starting program: /usr/bin/uptime 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Temporary breakpoint 1, 0x00005555555552f0 in main ()
(gdb) p ({unsigned char[]}{0x17})
../../gdb/gdbtypes.c:5517: internal-error: type* copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)' 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:
<https://www.gnu.org/software/gdb/bugs/>.

../../gdb/gdbtypes.c:5517: internal-error: type* copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)' 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)

OR

crash> px __per_cpu_start:0
gdbtypes.c:5505: internal-error: type* copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
gdbtypes.c:5505: internal-error: type* copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)' 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)

Environment

  • Red Hat Enterprise Linux 9.
  • crash-8.0.1-2.el9.x86_64 and below
  • gdb-10.2-10.el9.x86_64 and below

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content