Skip to content

Backtrace: _Unwind_FindEnclosingFunction fails on aarch64-unknown-linux-pauthtest #166048

Open

Description

@jchlanda

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.

Upstream issue: llvm/llvm-project#223698

Activity

  1. added
    needs-triage
    on Nov 16, 2026
  2. changed the title [-]`_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/-] [+]Backtrace: `_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`[/+] on Nov 16, 2026
  3. tgross35 commented on Nov 16, 2026

    @tgross35
    Member

    Moved since the backtrace repo will eventually be absorbed

  4. niharikaschaudhary commented on Nov 16, 2026

    @niharikaschaudhary

    please assign this issue to me.

  5. tgross35 commented on Nov 16, 2026

    @tgross35
    Member

    It's an LLVM issue

  6. added
    A-LLVM
    T-compiler
    C-bug
    WG-llvm
    T-libs
    A-backtrace
    and removed
    needs-triage
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMA-backtraceC-bugT-compilerT-libsWG-llvm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions