From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E39A9385829A; Tue, 19 Jul 2022 10:02:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E39A9385829A From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29381] [gdb, debug-types, debug-names] read.h:309: internal-error: set_length: Assertion `m_length == length' failed. Date: Tue, 19 Jul 2022 10:02:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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: Message-ID: In-Reply-To: References: 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: Tue, 19 Jul 2022 10:02:44 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29381 --- Comment #2 from Tom de Vries --- Zooming in on the actual assert, we have: ... #6 0x0000000000714063 in dwarf2_per_cu_data::set_length (this=3D0x2cf2cd0, length=3D34,=20 strict_p=3Dtrue) at /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.= h:309 309 gdb_assert (m_length =3D=3D length); (gdb) p m_length $5 =3D 12611 (gdb) p this->sect_off $7 =3D (unknown: 0x6d) ... So initially, during index reading we assign length 12611 to the CU at 0x6d, but during create_all_comp_units we find that it's actually 34, which looks correct given the TU at offset 0x8f ... CU table: [ 0] 0x0 [ 1] 0x2e [ 2] 0x6d [ 3] 0x31b0 [ 4] 0x7d53 [ 5] 0x7f0b TU table: [ 0] 0x8f [ 1] 0x1eb [ 2] 0x371 [ 3] 0x4b0 [ 4] 0x4f6 [ 5] 0x53c ... The initial 12611 length corresponds to 0x31b0 - 0x6d. So that looks like another bug, which normally doesn't surface because we reject the .debug_names index if it has TUs in the .debug_info section. --=20 You are receiving this mail because: You are on the CC list for the bug.=