This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
[Bug tools/23247] Segfault in 0.171 RC1 release candidate
- From: "mark at klomp dot org" <sourceware-bugzilla at sourceware dot org>
- To: elfutils-devel at sourceware dot org
- Date: Wed, 30 May 2018 09:29:26 +0000
- Subject: [Bug tools/23247] Segfault in 0.171 RC1 release candidate
- Auto-submitted: auto-generated
- References: <bug-23247-10460@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=23247
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mark at klomp dot org
--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
Thanks, for some reason we used the wrong listptr for locview attributes.
This fixes it:
diff --git a/src/readelf.c b/src/readelf.c
index 2ccbea5..6f2f637 100644
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -9244,7 +9244,7 @@ print_debug_loc_section (Dwfl_Module *dwflmod,
if (attr == DW_AT_GNU_locviews)
{
- Dwarf_Off next_off = next_listptr_offset (&known_loclistsptr,
+ Dwarf_Off next_off = next_listptr_offset (&known_locsptr,
listptr_idx);
const unsigned char *locp = readp;
const unsigned char *locendp;
While looking at this I also noticed that for this test file eu-readelf
--debug-dump=ranges claims to find some unused garbage in .debug_ranges, which
might indicate that we are either missing some attributes in the associated CU,
or GCC really puts garbage in the .debug_ranges section (which would surprise
me).
--
You are receiving this mail because:
You are on the CC list for the bug.