From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7197D3858281; Tue, 19 Jul 2022 11:34:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7197D3858281 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 11:34:59 +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 11:34:59 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29381 --- Comment #4 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > When running test-case gdb.cp/cpexprs-debug-types/cpexprs-debug-types with > target board cc-with-debug-names on a system with gcc 12.1.1 (defaulting = to > dwarf 5), I run into: > ... > (gdb) file > /data/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.cp/cpexprs- > debug-types/cpexprs-debug-types^M > Reading symbols from > /data/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.cp/cpexprs- > debug-types/cpexprs-debug-types...^M > warning: Section .debug_aranges in > /data/vries/gdb_versions/devel/build/gdb/testsuite/outputs/gdb.cp/cpexprs- > debug-types/cpexprs-debug-types has duplicate debug_info_offset 0x0, > ignoring .debug_aranges.^M > /data/vries/gdb_versions/devel/src/gdb/dwarf2/read.h:309: internal-error: > set_length: Assertion `m_length =3D=3D length' failed.^M > A problem internal to GDB has been detected,^M > further debugging may prove unreliable.^M > ----- Backtrace -----^M > ERROR: Couldn't load cpexprs-debug-types into GDB (GDB internal error). > ...=20 >=20 > The problem is three-fold. >=20 > 1. > The .debug_names index is rejected in dwarf2_read_debug_names because: > ... > if (map->tu_count !=3D 0) > { > /* We can only handle a single .debug_types when we have an > index. */ > if (per_bfd->types.size () !=3D 1) > return false; > ... > there are TUs so the tu_count is > 0 but there's no .debug_types section > (dwarf 5 puts the TUs in the .debug_info section) so the > "per_bfd->types.size () !=3D 1" test fails. >=20 Filed as PR29385. --=20 You are receiving this mail because: You are on the CC list for the bug.=