[Bug gdb/25101] New: Assertion `TYPE_NFIELDS (type) > 0' failed

gdb.bugs at mfriebe dot de sourceware-bugzilla@sourceware.org
Mon Oct 14 23:03:00 GMT 2019


            Bug ID: 25101
           Summary: Assertion `TYPE_NFIELDS (type) > 0' failed
           Product: gdb
           Version: 8.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: gdb.bugs at mfriebe dot de
  Target Milestone: ---
             Build: win 64

"&"gdbtypes.c:2160: internal-error: type* resolve_dynamic_struct(type*,
property_addr_info*): Assertion `TYPE_NFIELDS (type) > 0' failed.\nA problem
internal to GDB has been detected,\nfurther debugging may prove unreliable.\n"
&"\nThis is a bug, please report it."

To reproduce compile the below with fpc 3.0.4
using command-line options -gw3 for dwarf 3

Presumingly gdb does dislike the fact that the structure has no members?
However there is nothing in the DWARF spec (not that I have found) that
prohibits this.

program Project1;
  a: IUnknown;

  a:= nil;

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

More information about the Gdb-prs mailing list