Backtrace: `_Unwind_FindEnclosingFunction` fails on `aarch64-unknown-linux-pauthtest`

Abierto
#166,048 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

Start by reading the pauthtest workaround and the Apple-platform approach in issue #755, then follow the upstream libunwind issue llvm/llvm-project#223698. The fix depends on resolving pointer authentication when _Unwind_FindEnclosingFunction creates a cursor with a different SP; done means the upstream failure is fixed and the pauthtest workaround can be removed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

A-backtrace A-LLVM C-bug T-compiler T-libs WG-llvm

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

Lenguaje dominante
Rust
Estrellas
122k
Forks
16.7k
Merge medio
2 d 16 h
PR fusionados (30 d)
515

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de rust-lang/rust

Todos los issues de rust-lang/rust

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.