FS#68778 - [binutils] addr2line: DWARF error: could not find variable specification at offset XXXX

Attached to Project: Arch Linux
Opened by Neven Sajko (Neven) - Saturday, 28 November 2020, 22:55 GMT
Last edited by Allan McRae (Allan) - Wednesday, 17 February 2021, 11:36 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

While pprof from gperftools starts up, I get messages like these:

/usr/bin/addr2line: DWARF error: could not find variable specification at offset 3d47
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 3ad5
/usr/bin/addr2line: DWARF error: could not find variable specification at offset 3ae3

Pprof is analyzing an executable compiled with GCC (g++, more specifically) with options

-std=c++20 -g -march=native -O3 -fno-exceptions -fmax-errors=4 -flto -l profiler

The problem seems to be gone after building binutils-git from AUR.

I think these Debian and upstream bug reports are related to the issue:

https://sourceware.org/bugzilla/show_bug.cgi?id=26520

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965247

The fix for that was backported to the binutils-2_35-branch Git branch.

Additional info:
* gcc 10.2.0-3
* binutils 2.35.1-1
This task depends upon

Closed by  Allan McRae (Allan)
Wednesday, 17 February 2021, 11:36 GMT
Reason for closing:  Fixed

Loading...