[Bug symtab/34149] [.debug_names] dwarf2_read_debug_names calls std::lower_bound on unsorted all_units vector
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Fri May 15 07:20:24 GMT 2026
https://sourceware.org/bugzilla/show_bug.cgi?id=34149
--- Comment #10 from Tom de Vries <vries at gcc dot gnu.org> ---
(In reply to Simon Marchi from comment #9)
> - this file has the DWARF 5 type units in a .debug_types section, which is
> not correct (should be in .debug_info), but we still support it for some
> reason (we should perhaps fix the DWARF assembler)
Assuming we're talking about debug-names-bad-cu-index, I don't understand why
you call it a dwarf 5 type unit.
The version field seems to state that it's a v4 one:
...
Contents of the .debug_types section:
Compilation Unit @ offset 0:
Length: 0x42 (32-bit)
Version: 4
...
> Can you test the patch below?
I've tested this, by running the 3 failing test-cases in a loop of 100, and the
regression no longer triggers.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list