RADV 27.0.0-devel SIGFPEs on two wave64-emulated compute shaders (vfx_proj_decal_hit_detection)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- linux, python
- Ambito
- compilers, testing-qa
Direzione di ricerca
The crash is a SIGFPE inside libvulkan_radeon.so during vkCreateComputePipelines, reproduced with runtime/build/vk_pipeline_check on the two named shaders at indices 21061 and 22522; the backtrace is library-relative only. Start from docs/pipeline_check.md and the chunking logic that shares a VkPipelineCache, then reproduce with --start 21061 --count 1. Done would mean a recorded per-module driver-crash status rather than a lost chunk, and the driver fault itself is upstream Mesa work.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Two shaders from the wave64-emulated corpus kill the RADV compiler on this machine, deterministically and in under a second, so the rest of the corpus cannot be built in one pass without excluding them.
Environment. AMD Radeon RX 7600 (gfx1102), RADV, Mesa 27.0.0-devel (git-f7dd61f78f), Vulkan 1.4.363, Arch/CachyOS kernel 7.3.3, llvm 23.1.5. Corpus translated at 426023a5 with tools/rdna2spirv.py --wave64-emulate --no-asm, 26,503 modules, 13.76 GiB.
The two modules.
| shader | module size, emulated | native |
|---|---|---|
Lvfx_proj_decal_hit_detection_CS_ComputeHitDetectionResults_7b0d06e8_Wrapped |
236,368 B | 180,892 B |
Svfx_proj_decal_hit_detection_CS_ComputeHitDetectionSkinnedResults_7b0d06e8_Wrapped |
704,172 B | compiles |
Both are cs, subgroup size unset (emulated), features bufferDeviceAddress and shaderInt64. Native translations of the same two shaders create their pipelines in 0.03 s.
Reproduce (with a locally translated emulated corpus):
runtime/build/vk_pipeline_check <emu dir> /tmp/cache.bin --start 21061 --count 1 --jobs 1 --slow 0
21061 is the position of the first shader in the sorted index; the second is at 22522 in the same run. A fresh cache file and --jobs 1 make no difference; --max-bytes does, only because it skips modules by size and these are small. The crash is not the multi-MB ScreenProbes: those also take a long time on this driver (see below) but the process dies here first.
Signal. SIGFPE, si_code: FPE_INTDIV, in libvulkan_radeon.so, inside vkCreateComputePipelines; the application frame is only the worker. Stack from the core (libvulkan_radeon.so is stripped, offsets are library-relative):
#0 libvulkan_radeon.so + 0x7dc089
#1 libvulkan_radeon.so + 0x7dc681
#2 libvulkan_radeon.so + 0x7e1edf
#3 libvulkan_radeon.so + 0x87305d
#4 libvulkan_radeon.so + 0x76f9f4
#5 libvulkan_radeon.so + 0x77084e
#6 libvulkan_radeon.so + 0x1a0be9
#7 libvulkan_radeon.so + 0x17b32e
#8 libvulkan_radeon.so + 0x17b6b4
#9 libvulkan_radeon.so + 0x17b99a
#10 libvulkan_radeon.so + 0x17bc26
#11 vk_pipeline_check + 0x12b18
Same offsets for both shaders, and it also happens with RADV_DEBUG=llvm, so it looks like common front-end/lowering code rather than ACO alone.
Where this leaves the corpus run. Chunked 400 entries per process with a shared VkPipelineCache (the scheme in docs/pipeline_check.md): 25,703 of 26,503 pipelines created, 0 failed, 0 skipped, 4,452 s of chunk time. The missing 800 are the two crashing shaders plus the entries that share their 400-entry chunks; every other chunk matches the native corpus shader-for-shader.
The three modules over 16 MiB also behave differently here. ActivateRays (22.2 MiB) compiles inside a 968 s chunk. ActivateProbes (40.8 MiB) and ActivateProbesTarget (40.7 MiB) were still compiling after 48 minutes each when the process died, so on this driver they are measured as "not finished", not as failures; a single-module run of ActivateProbes is going now and I will add the number here.
Not attachable. CONTRIBUTING.md rules out sharing SPIR-V, so there is no reproducer in this issue. The two names, the translation flags and the backtrace are what I can give; if someone wants to take this to Mesa, the useful next step is a synthetic minimizer over the emulation's LDS cross-lane pattern, which is a separate job and probably needs the emulated IR rather than the game shader.
Two follow-ups this suggests:
- the corpus build should be able to record a module as a driver crash rather than lose the whole 400-entry chunk; right now a single bad module costs the chunk and looks like a gap in the counts;
--max-bytescannot exclude a small module, and there is no--skipby name, so finishing a run with one known-bad shader means rebuilding the index without it.
- Lingua principale
- Python
- Stelle
- 14.9k
- Fork
- 1.2k
- Merge medio
- 1h 58m
- PR unite (30g)
- 40
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ItsNotRexed/Leonida
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
ItsNotRexed/Leonida#3990 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
ItsNotRexed/Leonida#4257 · 18 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Python SPIR-V assembler encodes BF16 constants as IEEE halfForse già presa @lumenpearson l’ha presa oggi. Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 25/100
ItsNotRexed/Leonida#4237 ·
I maintainer di solito rispondono entro 1 giorno
-
SPIR-V reflection rejects Int8 array length constantsForse già presa @lumenpearson l’ha presa oggi. Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 22/100
ItsNotRexed/Leonida#4221 ·
I maintainer di solito rispondono entro 1 giorno
-
Interrupted stub rebuild can truncate a valid SPIR-V outputForse già presa @lumenpearson l’ha presa oggi. Apertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 18/100
ItsNotRexed/Leonida#4183 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ItsNotRexed/Leonida
Issue simili
-
pydanty:is-working
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
pydantic/pydantic-ai#14187 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: legacy_json_to_doc crashes on persisted docs with "relationships": nullForse già presa @Harsh23Kashyap l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
run-llama/llama_index#24392 ·
I maintainer di solito rispondono entro 2 giorni
-
Add server: crowllm-mcpAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
pathintegral-institute/mcpm.sh#568 ·
I maintainer di solito rispondono entro 21 giorni