You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Backtrace: _Unwind_FindEnclosingFunction fails on aarch64-unknown-linux-pauthtest #166048
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-backtraceArea: BacktracesC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.WG-llvmWorking group: LLVM backend code generation
On aarch64-unknown-linux-pauthtest, libunwind's _Unwind_FindEnclosingFunction fails when given an instruction pointer returned by _Unwind_GetIP. The returned pointer is signed using the original frame's SP as a discriminator. However, _Unwind_FindEnclosingFunction creates a new unwind cursor with a different SP, causing pointer authentication to fail.
As a workaround, pauthtest returns self.ip() directly (instead of calling _Unwind_FindEnclosingFunction), following the approach already used for Apple platforms (#755).
The underlying issue needs to be fixed in libunwind. Once that is resolved, the workaround can be removed.
changed the title [-]`_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/-][+]Backtrace: `_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/+]on Nov 16, 2026
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.A-backtraceArea: BacktracesC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.WG-llvmWorking group: LLVM backend code generation
Activity
[-]`_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/-][+]Backtrace: `_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/+]tgross35 commentedon Nov 16, 2026
Moved since the backtrace repo will eventually be absorbed
niharikaschaudhary commentedon Nov 16, 2026
please assign this issue to me.
tgross35 commentedon Nov 16, 2026
It's an LLVM issue