LIBBACKTRACE is unable to perform a trace beyond the signal handler trampoline
Using LIBBACKTRACE I am unable to see past the signal handler trampoline with MUSL runtime used by Alpine Linux. I tested with Alpine v3.9 and v3.16. Testing on x86_64 and i386 architectures and the GCC toolchain provided by the Distro.
cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.16.3
PRETTY_NAME="Alpine Linux v3.16"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
I logged a ticket with the project maintainer here: https://github.com/ianlancetaylor/libbacktrace/issues/104
He indicated that the problem is with the toolchain and/or the MUSL runtime not implementing _Unwind_Backtrace
correctly.
So it looks like there is an issue with incorrect implementation of _Unwind_Backtrace
within Alpine.
Edited by Jose Santiago