[Bug gdb/27962] New: Internal error when using binary from gdb.dwarf2/arr-stride.exp

simark at simark dot ca sourceware-bugzilla@sourceware.org
Mon Jun 7 19:35:54 GMT 2021


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

            Bug ID: 27962
           Summary: Internal error when using binary from
                    gdb.dwarf2/arr-stride.exp
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simark at simark dot ca
  Target Milestone: ---

I stumbled on this a bit randomly while trying to reproduce a failure.  With
the binary from gdb.dwarf2/arr-stride.exp, with current master:

$ ./gdb -nx -q --data-directory=data-directory
testsuite/outputs/gdb.dwarf2/arr-stride/arr-stride  -ex "print the_struct"
Reading symbols from testsuite/outputs/gdb.dwarf2/arr-stride/arr-stride...
$1 = {intfield = 1, arrayfield = {
/home/simark/src/binutils-gdb/gdb/value.c:851: internal-error: bool
value_contents_bits_eq(const value*, int, const value*, int, int): Assertion
`offset2 + length <= TYPE_LENGTH (val2->enclosing_type) * TARGET_CHAR_BIT'
failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) 



(top-gdb) p offset2
$1 = 32
(top-gdb) p length
$2 = 32
(top-gdb) p TYPE_LENGTH (val2->enclosing_type)
$3 = 4
(top-gdb) p TARGET_CHAR_BIT
$4 = 8

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


More information about the Gdb-prs mailing list