From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 48B2A3898528; Mon, 7 Jun 2021 19:35:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48B2A3898528 From: "simark at simark dot ca" To: gdb-prs@sourceware.org Subject: [Bug gdb/27962] New: Internal error when using binary from gdb.dwarf2/arr-stride.exp Date: Mon, 07 Jun 2021 19:35:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: simark at simark dot ca X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jun 2021 19:35:54 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27962 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=3Ddata-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 =3D {intfield =3D 1, arrayfield =3D { /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 <=3D 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)=20 (top-gdb) p offset2 $1 =3D 32 (top-gdb) p length $2 =3D 32 (top-gdb) p TYPE_LENGTH (val2->enclosing_type) $3 =3D 4 (top-gdb) p TARGET_CHAR_BIT $4 =3D 8 --=20 You are receiving this mail because: You are on the CC list for the bug.=