[llvm-addr2line] configuration errors from perf when used over regular addr2line
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
When collecting perf samples, like so:
`perf record --latency --call-graph=dwarf --output=/tmp/perf.data `
There are config errors with llvm-addr2line that don't appear to be present with the gnu addr2line:
`addr2line_configure /location/of/elf: addr2line configuration failed`
perf appears to be invoking addr2line like so according to `ps aux`:
`addr2line -e /location/of/elf -a -i -f`
It's possible that something changed in the hwe kernel's perf.
My setup:
Ubuntu 24.04
kernel: 6.17.0-14-generic
perf: 6.17.9
llvm-addr2line: Ubuntu LLVM version 21.1.8 (from apt repository)
Contributor guide
Research direction
Reproduce the reported perf invocation on Ubuntu 24.04, then run the shown `addr2line -e /location/of/elf -a -i -f` command directly with llvm-addr2line and GNU addr2line for comparison. Trace the llvm-addr2line configuration failure from that command entry point; done means the perf-style invocation no longer reports a configuration error and remains compatible with the expected addr2line options.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux, ubuntu
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100