`interrupt_poll` isn't handled by the inliner or by stack maps
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
Start with the reproducer inputs and the two reported panic sites: cranelift/codegen/src/inline.rs:239 and cranelift/codegen/src/machinst/lower.rs:966. Run the shown cargo run -p cranelift-tools test foo.clif cases for the inline and compile paths. Done means both inputs pass without panicking; the issue does not identify the relevant implementation or tests beyond these reproducers.
索引モデルが issue の本文から書いたものです。
説明
This input:
test inline
target x86_64
function %callee(i64, i64) -> i64 tail {
block0(v0: i64, v1: i64):
v2 = interrupt_poll v0, v1, user3
return v2
}
function %caller(i64, i64) -> i64 system_v {
fn0 = %callee(i64, i64) -> i64 tail
block0(v0: i64, v1: i64):
v2 = call fn0(v0, v1)
return v2
}
fails with:
$ cargo run -p cranelift-tools test foo.clif
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
Running `target/debug/clif-util test foo.clif`
thread 'worker #3' (2504781) panicked at cranelift/codegen/src/inline.rs:239:21:
should have matched all call instructions, but found: inst0: v2 = interrupt_poll.i64 v0, v1, user3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-10-21T20:48:10Z ERROR cranelift_filetests::concurrent] FAIL: panicked in worker #3: should have matched all call instructions, but found: inst0: v2 = interrupt_poll.i64 v0, v1, user3
FAIL foo.clif: panicked in worker #3: should have matched all call instructions, but found: inst0: v2 = interrupt_poll.i64 v0, v1, user3
1 tests
Error: 1 failure
and this input:
test compile
target x86_64
target aarch64
function %f(i64, i64) -> i64 tail {
ss0 = explicit_slot 8
block0(v0: i64, v1: i64):
v5 = stack_addr.i64 ss0
store v0, v5
v2 = interrupt_poll v0, v1, user3, stack_map=[i64 @ ss0+0]
v3 = load.i64 v5
v4 = iadd v2, v3
return v4
}
fails with:
$ cargo run -p cranelift-tools test foo.clif
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.06s
Running `target/debug/clif-util test foo.clif`
thread 'worker #3' (2506268) panicked at cranelift/codegen/src/machinst/lower.rs:966:17:
assertion `left == right` failed
left: 0
right: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[2026-10-21T20:49:41Z ERROR cranelift_filetests::concurrent] FAIL: panicked in worker #3: assertion `left == right` failed
left: 0
right: 1
FAIL foo.clif: panicked in worker #3: assertion `left == right` failed
left: 0
right: 1
1 tests
Error: 1 failure
cc @erikrose
- 主要言語
- Rust
- スター
- 18.7k
- フォーク
- 1.9k
- 平均マージ
- 20時間 33分
- マージ済み PR(30日)
- 377
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
bytecodealliance/wasmtime のほかの issue
-
bug wasm-proposal:exceptions wasmtime:debugging
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
bytecodealliance/wasmtime#14102 ·
メンテナーはふだん 1 日以内に返信
-
wasm-proposal:gc
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
bytecodealliance/wasmtime#13808 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
cranelift cranelift:area:clif cranelift:goal:optimize-speed enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
bytecodealliance/wasmtime#1598 · コメント 9 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Component `Func::call` (sync call) can fail due to a lack of event loop対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンwasm-proposal:component-model-async
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
bytecodealliance/wasmtime#14950 ·
メンテナーはふだん 1 日以内に返信
-
wasm-proposal:component-model-async
難易度 4/5 3〜5日 初心者へのやさしさ 49/100
bytecodealliance/wasmtime#14949 ·
メンテナーはふだん 1 日以内に返信
bytecodealliance/wasmtime の issue をすべて見る
似ている issue
-
Docker host resolution missing default rootless Docker path対応中かも @500B が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
testcontainers/testcontainers-rs#1000 ·
メンテナーはふだん 3 日以内に返信
-
bug needs triage P3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pbakaus/impeccable#1143 ·
メンテナーはふだん 1 日以内に返信
-
Bundled uv is never updated and trusts the compromised eMudhra certificates対応中かも @FabienDanieau が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
foxglove/mcap#1907 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信