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 exp/21162] New: GDB internal error with unbounded array typecast expression


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

            Bug ID: 21162
           Summary: GDB internal error with unbounded array typecast
                    expression
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: exp
          Assignee: unassigned at sourceware dot org
          Reporter: arnez at linux dot vnet.ibm.com
  Target Milestone: ---

GDB crashes with internal error when trying to evaluate the following
expression:

(gdb) p ((char*)(short[]){1})[1]
/home/arnez/src/binutils-gdb/gdb/gdbtypes.c:4722: internal-error: type*
copy_type(const type*): Assertion `TYPE_OBJFILE_OWNED (type)' failed.

-- 
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]