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

オープン
#166,048 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Rust
スター
122k
フォーク
16.7k
平均マージ
2日 16時間
マージ済み PR(30日)
515

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rust-lang/rust のほかの issue

rust-lang/rust の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。