AMD Windows driver crashes creating lds_fuzz wave64 programs translated with --wave64-emulate
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 領域
- compilers, testing-qa
調査の方向性
Start by reproducing with tools/lds_fuzz.py --programs 1 --seed 1 --wave 64 --emulate, then run runtime/build/vk_pipeline_check.exe on the generated spirv directory to confirm the crash during compute pipeline creation. Compare the emulated and native wave64 SPIR-V for the ds_* LDS operations, and minimise which op triggers the access violation. Done means either a translator change that avoids the crash on the AMD driver with the output still matching, or a clear finding that it is a driver bug.
索引モデルが issue の本文から書いたものです。
説明
On an AMD RDNA2 iGPU under the AMD Windows driver, vk_compute_test and vk_pipeline_check crash with an access violation (exit 0xC0000005) for most wave64 lds_fuzz.py programs translated with --wave64-emulate. Found while running TEST-71; counts in #166.
Setup: AMD Radeon(TM) Graphics, Ryzen 7 9800X3D iGPU (RDNA2, PCI 1002:13C0), AMD proprietary driver 2026.04.17 (32.0.21042.62), Vulkan 1.4.315, subgroup 32..64. Windows 11 Home 10.0.26300. Main dedd75c, MSVC 14.44, llvm-mc 21.1.8, Vulkan SDK 1.4.363.0. VK_LOADER_DRIVERS_SELECT=*amd*, VK_LOADER_LAYERS_DISABLE=~implicit~.
Repro (no game files):
python -I tools/lds_fuzz.py --programs 1 --seed 1 --wave 64 --emulate --work <dir>
runtime\build\vk_pipeline_check.exe <dir>\spirv
Both crash every time (vk_pipeline_check stops after "checking 1 shaders", exit -1073741819), so the crash is in compute pipeline creation, inside the driver, before any dispatch.
What I checked:
- Seed 1, 100 programs: 58 of the 100 emulated wave64 programs crash; the other 42 run and match. Programs 0, 1 and 2 crash on every rerun.
- The same programs pass on the same GPU without
--emulate(native wave64), and pass with--emulateon an RTX 5070 (617.42). - The crashing SPIR-V passes
spirv-val --target-env vulkan1.3. Program 0 uses onlyShader,Int64andPhysicalStorageBufferAddresses,LocalSize 64 1 1; its ds ops are ds_cmpst_rtn_b32, ds_max_rtn_i32, ds_read_b32, ds_read_i8_d16_hi, ds_read2st64_b32, ds_sub_rtn_u32, ds_swizzle_b32, ds_write_b32, ds_write2_b32, ds_wrxchg_rtn_b32. valu_fuzz.py --emulate(f16 and mem) runs fine on this GPU, 200/200 each, so it looks specific to the LDS emulation path.
Not checked: other AMD Windows driver versions, a discrete RDNA2 card, or which op triggers it (I haven't minimised the program). Possibly a driver compiler bug, but the translator might be able to avoid it.
AI-assisted: found and written up with Claude Code. Synthetic programs only, no game data.
- 主要言語
- Python
- スター
- 14.9k
- フォーク
- 1.2k
- 平均マージ
- 1時間 58分
- マージ済み PR(30日)
- 40
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ItsNotRexed/Leonida のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ItsNotRexed/Leonida#3990 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 25/100
ItsNotRexed/Leonida#4257 · コメント 18 件 ·
メンテナーはふだん 1 日以内に返信
-
Python SPIR-V assembler encodes BF16 constants as IEEE half対応中かも @lumenpearson が今日担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 25/100
ItsNotRexed/Leonida#4237 ·
メンテナーはふだん 1 日以内に返信
-
SPIR-V reflection rejects Int8 array length constants対応中かも @lumenpearson が今日担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 22/100
ItsNotRexed/Leonida#4221 ·
メンテナーはふだん 1 日以内に返信
-
Interrupted stub rebuild can truncate a valid SPIR-V output対応中かも @lumenpearson が今日担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 18/100
ItsNotRexed/Leonida#4183 ·
メンテナーはふだん 1 日以内に返信
ItsNotRexed/Leonida の issue をすべて見る
似ている issue
-
pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pydantic/pydantic-ai#14187 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: legacy_json_to_doc crashes on persisted docs with "relationships": null対応中かも @Harsh23Kashyap が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
run-llama/llama_index#24392 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
pathintegral-institute/mcpm.sh#568 ·
メンテナーはふだん 21 日以内に返信