From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8B3E23858291; Tue, 19 Jul 2022 10:24:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B3E23858291 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:24:11 +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:24:11 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29381 --- Comment #3 from Tom de Vries --- (In reply to Tom de Vries from comment #2) > Zooming in on the actual assert, we have: This fixes the length discrepancy: ... diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c index 143bcfb5374..490cc3dd0b2 100644 --- a/gdb/dwarf2/read.c +++ b/gdb/dwarf2/read.c @@ -4590,7 +4590,8 @@ create_cus_from_debug_names_list (dwarf2_per_bfd *per_bfd, dwarf2_section_info §ion, bool is_dwz) { - if (!map.augmentation_is_gdb) + if (!map.augmentation_is_gdb + || (map.tu_count > 0 && per_bfd->types.size () =3D=3D 0)) { for (uint32_t i =3D 0; i < map.cu_count; ++i) { ... and makes the assert disappear. But in combination with the "[gdbsupport] Use task size in parallel_for_eac= h" patch we run instead into: ... /home/vries/gdb_versions/devel/src/gdb/dwarf2/read.h:298: internal-error: length: Assertion `m_length !=3D 0' failed. ... because we still have those duplicates. --=20 You are receiving this mail because: You are on the CC list for the bug.=