Crash on Intel CPU (i5-14400F): 0xc000001d (STATUS_ILLEGAL_INSTRUCTION) at +0x4e8aa70 #7
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by Alwaze on 2026-11-23T22:39:26Z.
Summary
The title crashes immediately on startup with
0xc000001d(STATUS_ILLEGAL_INSTRUCTION) on an Intel Core i5-14400F before a window opens (likely an AMD-specificSSE4ainstruction such asEXTRQ/INSERTQ).Hardware & OS
Crash Log (
crashes.log)Imported from Marvisak/VIctory. Originally posted by GonBr on 2026-11-23T22:44:58Z.
Same crash as #6, and as ivall/xcl#173 at the same offset. There, ivall identified the instruction at
+0x4e8aa70as CLZERO (AMD-only: the console's Zen 2 has it, Intel CPUs don't), not SSE4a.XCL fixed it by catching STATUS_ILLEGAL_INSTRUCTION in its exception handler, decoding the faulting instruction and emulating it: CLZERO, MONITORX/MWAITX, RDPRU, RDPID and CLWB (ivall/xcl#151). After that, the title also hit SSE4a INSERTQ (
F2 0F 78 C1) and EXTRQ on Intel, emulated in ivall/xcl#216 (immediate and register forms). So on Intel, expect those right after CLZERO.XCL is GPL-2.0-only, so this is a pointer to the diagnosis, not code to copy.
I'm on an Intel i5-13600KF + RTX 3060 Ti (Ampere, 32-lane waves) and can test a fix. I also sent you a message on Discord: besides the Intel crash, I can test VIctory on NVIDIA (debug build, crashdump + console output sent to you privately). XCL runs wave64 programs on 32-lane GPUs as two 32-lane halves that exchange masks and lane values (described in
docs/wave64-on-wave32.mdin ivall/xcl), and its wave64 GPU tests pass on my 3060 Ti (ivall/xcl#42), in case a similar approach is useful for the compute programs that currently need 64-lane waves. Happy to test whenever it helps.(AI-assisted.)
Imported from Marvisak/VIctory. Originally posted by saadsidqui on 2026-11-23T23:05:20Z.
#10 Seems to cover this specific issue.
Imported from Marvisak/VIctory. Originally posted by MichailiK on 2026-11-23T23:35:31Z.
Yes it does, game reaches main menu on my i7-13700K CPU & I'd assume the same for i5-14400F
Imported from Marvisak/VIctory. Originally posted by guilhermemorelidev on 2026-11-23T23:42:58Z.
Same crash on another Intel CPU, and I dumped the bytes at the fault address, so this is confirmed rather than a guess:
0F 01 FCis CLZERO (AMD-only, CPUID Fn8000_0008 EBX bit 0). The code is a cache-line zeroing loop:Intel CPUs raise #UD (0xc000001d) on it, so the title (built for the Zen 2 console CPU) dies in System Init before the first frame, on every run. That also explains why this only affects Intel hosts (same fault as this issue's original report).
System
main, 2026-11-23Also tried (same fault address every time)
diagbuildsVICTORY_D3D12_WARP=1--console series-s--unimplemented zeroPossible fix: emulate CLZERO on hosts without it, either in the exception handler (zero the 64-byte line at rax, rip += 3) or by patching it when the image is prepared. There may be other AMD-only instructions behind this one; I can retest on Intel if a fix lands.
Debug log (
VICTORY_LOG=victory_gpu=debug) andcrashes.logattached. No game data included.crashes.log
victory-20261123-203749-20388.crash.log
Imported from Marvisak/VIctory. Originally posted by 9hvn9yt2vk-netizen on 2026-11-24T01:10:10Z.
This looks resolved: the bytes at the fault address (0F 01 FC) are CLZERO, which PR #10 (merged) now emulates on Intel CPUs. MichailiK confirmed above that the game reaches the main menu on an i7-13700K with it. @Alwaze could you retest on the latest main and close this if it's gone? (PR #34, still open, also makes CLZERO loops much cheaper on Intel.)
Imported from Marvisak/VIctory. Originally posted by jpinat on 2026-11-24T09:13:30Z.
PRs are limited to collaborators right now, so leaving this here: after CLZERO/SSE4a, the other two AMD-only instructions XCL emulated,
rdpruandrdpid, still aren't handled inemulate_amd_only.Branch: https://github.com/jpinat/VIctory/tree/loader/emulate-rdpru-rdpid (one commit,
crates/victory-loader/src/crash.rsonly)rdpru(0f 01 fd, no Intel CPU has it): ECX 0/1 (MPERF/APERF) read the TSC, since only their ratio is meaningful; any other ECX gives 0 with CF clear.rdpid(f3 [rex] 0f c7 /7, missing on Intel before Ice Lake, e.g. Coffee/Comet Lake, which meet the AVX2 requirement): reads TSC_AUX viardtscp.I haven't seen the title execute either one; it's hardening for older Intel hosts, like the existing
clwbpath. 5 synthetic tests, no game data;cargo test -p victory-loaderpasses on Windows 11 / Ryzen (Zen 3), where both are native, so the #UD path is untested on real Intel hardware. If someone here on a pre-Ice Lake Intel could try it, that would confirm it. @Marvisak happy to adjust if you'd like it pulled in.