Interrupted stub rebuild can truncate a valid SPIR-V output
メンテナーはふだん 1 日以内に返信
評価
調査の方向性
The stub generator's rebuild path opens the existing SPIR-V output for writing before the new content is complete, so start where that file is opened and written. The test test_failed_rebuild_keeps_existing_stub in open PR #4175 simulates an OSError on a second pass. Work is already under way there, so check that PR before starting. Done means a failed rebuild leaves the original bytes in place.
索引モデルが issue の本文から書いたものです。
説明
What happens
The stub generator opens the existing SPIR-V output for writing before the replacement is complete. An ordinary I/O error can leave a truncated file in place of a previously valid stub. The fix and failure-injection tests are in #4175. AI-assisted (Codex).
Commit
aa2988cc555bad7ecd508b48a702adbb32fe7c95
System
Windows, Python 3.12.13, SPIRV-Tools v2026.4. CPU only.
Where
Finding the game (--find)
Command and steps
Generate a stub twice from a synthetic index. On the second pass simulate an OSError during the write, as in test_failed_rebuild_keeps_existing_stub in #4175.
Output
The rebuild reports a write error, and the existing file contains only the incomplete write. With the fix its original bytes remain available.
- 主要言語
- 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 日以内に返信
-
Semantic SPIR-V interpreter narrows binary64 negate and absolute value対応中かも @lumenpearson が今日担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 18/100
ItsNotRexed/Leonida#4181 ·
メンテナーはふだん 1 日以内に返信
ItsNotRexed/Leonida の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
vllm-project/vllm#69304 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
interpreter-core type-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
pydanty:is-working
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
pydantic/pydantic-ai#14187 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
test
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
prebid/salesagent#2676 ·
メンテナーはふだん 1 日以内に返信