parca-dev / parca-agent

eBPF based always-on profiler auto-discovering targets in Kubernetes and systemd, zero code changes or restarts needed!
https://parca.dev/
Apache License 2.0
556 stars 68 forks source link

unwinding/dwarf: Failed to unwind using native unwinder (eh_frame-based) on musl linked binaries #1658

Open javierhonduco opened 1 year ago

javierhonduco commented 1 year ago

The way we calculate the base address for DWARF-based unwinding works for dynamically linked binaries with libc (C/C++/Rust), as well as statically compiled libc with Rust (haven't tested C/C++).

Static Rust + musl does not work, most likely due to not calculating the base properly.

kakkoyun commented 9 months ago

It's not just statically linked binaries. The native unwinder fails on a binary linked against musl.