Crash on Intel CPU (i5-14400F): 0xc000001d (STATUS_ILLEGAL_INSTRUCTION) at +0x4e8aa70 #7

Closed
opened 2026-11-26 03:46:14 +00:00 by github-bot · 6 comments
Owner

@⁠Alwaze on GitHub · 2026-11-23 22:39 UTC · original

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-specific SSE4a instruction such as EXTRQ/INSERTQ).

Hardware & OS

  • OS: Windows 11 x64
  • CPU: Intel Core i5-14400F
  • GPU: NVIDIA GeForce RTX 5060 Ti (8GB)
  • RAM: 16 GB DDR5

Crash Log (crashes.log)

VIctory: unhandled exception 0xc000001d at victory-image-b99f876b74d4a77f.dll+0x4e8aa70
  rax 0xd041e4800 rbx 0x0 rcx 0xd041e47c0 rdx 0xd041eb880 rsi 0xd041e47c0 rdi 0x7ffa51b54828 rsp 0x1bc78ff9c8 rbp 0x1
  r8 0xd041ea9c0 r9 0xd041e9d00 r10 0xd041e8180 r11 0x7ffb2be1e73f r12 0x0 r13 0x0 r14 0x7ffa54ef37a8 r15 0xd041e47c0
  #0  victory-image-b99f876b74d4a77f.dll+0x4e8aa70
  #1  victory-image-b99f876b74d4a77f.dll+0x4e8a9fd
  #2  victory-image-b99f876b74d4a77f.dll+0x4e8a64d
  #3  victory-image-b99f876b74d4a77f.dll+0x4e8a534
  #4  victory-image-b99f876b74d4a77f.dll+0x4e8a4e4
  #5  victory-image-b99f876b74d4a77f.dll+0x4e8a425
  #6  victory-image-b99f876b74d4a77f.dll+0x4e8a35d
  #7  victory-image-b99f876b74d4a77f.dll+0x248426a
  #8  victory-image-b99f876b74d4a77f.dll+0x248412e
  #9  victory-image-b99f876b74d4a77f.dll+0xce03df
  #10 victory-image-b99f876b74d4a77f.dll+0xce039d
  #11 victory-image-b99f876b74d4a77f.dll+0x120cf6
  #12 victory-image-b99f876b74d4a77f.dll+0x2240772
  #13 victory-image-b99f876b74d4a77f.dll+0x224071a
  #14 victory-image-b99f876b74d4a77f.dll+0x23cf00a
  #15 victory-image-b99f876b74d4a77f.dll+0x2215eca
  #16 KERNEL32.DLL+0x2dda7
  #17 ntdll.dll+0xc9c5c
**@⁠Alwaze** on GitHub · 2026-11-23 22:39 UTC · [original](https://github.com/Marvisak/VIctory/issues/7) 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-specific `SSE4a` instruction such as `EXTRQ`/`INSERTQ`). Hardware & OS - **OS:** Windows 11 x64 - **CPU:** Intel Core i5-14400F - **GPU:** NVIDIA GeForce RTX 5060 Ti (8GB) - **RAM:** 16 GB DDR5 Crash Log (`crashes.log`) ```text VIctory: unhandled exception 0xc000001d at victory-image-b99f876b74d4a77f.dll+0x4e8aa70 rax 0xd041e4800 rbx 0x0 rcx 0xd041e47c0 rdx 0xd041eb880 rsi 0xd041e47c0 rdi 0x7ffa51b54828 rsp 0x1bc78ff9c8 rbp 0x1 r8 0xd041ea9c0 r9 0xd041e9d00 r10 0xd041e8180 r11 0x7ffb2be1e73f r12 0x0 r13 0x0 r14 0x7ffa54ef37a8 r15 0xd041e47c0 #0 victory-image-b99f876b74d4a77f.dll+0x4e8aa70 #1 victory-image-b99f876b74d4a77f.dll+0x4e8a9fd #2 victory-image-b99f876b74d4a77f.dll+0x4e8a64d #3 victory-image-b99f876b74d4a77f.dll+0x4e8a534 #4 victory-image-b99f876b74d4a77f.dll+0x4e8a4e4 #5 victory-image-b99f876b74d4a77f.dll+0x4e8a425 #6 victory-image-b99f876b74d4a77f.dll+0x4e8a35d #7 victory-image-b99f876b74d4a77f.dll+0x248426a #8 victory-image-b99f876b74d4a77f.dll+0x248412e #9 victory-image-b99f876b74d4a77f.dll+0xce03df #10 victory-image-b99f876b74d4a77f.dll+0xce039d #11 victory-image-b99f876b74d4a77f.dll+0x120cf6 #12 victory-image-b99f876b74d4a77f.dll+0x2240772 #13 victory-image-b99f876b74d4a77f.dll+0x224071a #14 victory-image-b99f876b74d4a77f.dll+0x23cf00a #15 victory-image-b99f876b74d4a77f.dll+0x2215eca #16 KERNEL32.DLL+0x2dda7 #17 ntdll.dll+0xc9c5c ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:46:14 +00:00
Author
Owner

@⁠GonBr on GitHub · 2026-11-23 22:44 UTC · original

Same crash as #6, and as ivall/xcl#173 at the same offset. There, ivall identified the instruction at +0x4e8aa70 as 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.md in 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.)

**@⁠GonBr** on GitHub · 2026-11-23 22:44 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7116134382) Same crash as #6, and as ivall/xcl#173 at the same offset. There, ivall identified the instruction at `+0x4e8aa70` as **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.md` in 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.)
Author
Owner

@⁠saadsidqui on GitHub · 2026-11-23 23:05 UTC · original

#10 Seems to cover this specific issue.

**@⁠saadsidqui** on GitHub · 2026-11-23 23:05 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7116537008) #10 Seems to cover this specific issue.
Author
Owner

@⁠MichailiK on GitHub · 2026-11-23 23:35 UTC · original

#10 Seems to cover this specific issue.

Yes it does, game reaches main menu on my i7-13700K CPU & I'd assume the same for i5-14400F

**@⁠MichailiK** on GitHub · 2026-11-23 23:35 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7117135564) > [#10](https://git.gtahub.st/github/Marvisak--VIctory/pulls/10) Seems to cover this specific issue. Yes it does, game reaches main menu on my i7-13700K CPU & I'd assume the same for i5-14400F
Author
Owner

@⁠guilhermemorelidev on GitHub · 2026-11-23 23:42 UTC · original

Same crash on another Intel CPU, and I dumped the bytes at the fault address, so this is confirmed rather than a guess:

crash-4e8aa70.bin: 0F 01 FC 48 83 C0 40 4C 39 D0 72 F4 ...

0F 01 FC is CLZERO (AMD-only, CPUID Fn8000_0008 EBX bit 0). The code is a cache-line zeroing loop:

clzero
add rax, 0x40
cmp rax, r10
jb  <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

  • CPU: Intel Core i5-14600KF (AVX2: yes, no CLZERO)
  • GPU: AMD Radeon RX 9070, driver 26.11.2
  • RAM: 32 GB DDR4
  • OS: Windows 26H2 (build 26300.9974)
  • VIctory: ZIP download of main, 2026-11-23
  • Title build (from the game's own debug dump): 930.048.020-vb_sub_story

Also tried (same fault address every time)

  • release and diag builds
  • VICTORY_D3D12_WARP=1
  • --console series-s
  • --unimplemented zero

Possible 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) and crashes.log attached. No game data included.

crashes.log

victory-20261123-203749-20388.crash.log

**@⁠guilhermemorelidev** on GitHub · 2026-11-23 23:42 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7117281522) Same crash on another Intel CPU, and I dumped the bytes at the fault address, so this is confirmed rather than a guess: crash-4e8aa70.bin: 0F 01 FC 48 83 C0 40 4C 39 D0 72 F4 ... `0F 01 FC` is **CLZERO** (AMD-only, CPUID Fn8000_0008 EBX bit 0). The code is a cache-line zeroing loop: clzero add rax, 0x40 cmp rax, r10 jb <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** - CPU: Intel Core i5-14600KF (AVX2: yes, no CLZERO) - GPU: AMD Radeon RX 9070, driver 26.11.2 - RAM: 32 GB DDR4 - OS: Windows 26H2 (build 26300.9974) - VIctory: ZIP download of `main`, 2026-11-23 - Title build (from the game's own debug dump): 930.048.020-vb_sub_story **Also tried (same fault address every time)** - release and `diag` builds - `VICTORY_D3D12_WARP=1` - `--console series-s` - `--unimplemented zero` **Possible 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`) and `crashes.log` attached. No game data included. [crashes.log](https://github.com/user-attachments/files/35303875/crashes.log) [victory-20261123-203749-20388.crash.log](https://github.com/user-attachments/files/35303886/victory-20261123-203749-20388.crash.log)
Author
Owner

@⁠9hvn9yt2vk-netizen on GitHub · 2026-11-24 01:10 UTC · original

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.)

**@⁠9hvn9yt2vk-netizen** on GitHub · 2026-11-24 01:10 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7118826604) 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.)
Author
Owner

@⁠jpinat on GitHub · 2026-11-24 09:13 UTC · original

PRs are limited to collaborators right now, so leaving this here: after CLZERO/SSE4a, the other two AMD-only instructions XCL emulated, rdpru and rdpid, still aren't handled in emulate_amd_only.

Branch: https://github.com/jpinat/VIctory/tree/loader/emulate-rdpru-rdpid (one commit, crates/victory-loader/src/crash.rs only)

  • 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 via rdtscp.

I haven't seen the title execute either one; it's hardening for older Intel hosts, like the existing clwb path. 5 synthetic tests, no game data; cargo test -p victory-loader passes 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.

**@⁠jpinat** on GitHub · 2026-11-24 09:13 UTC · [original](https://github.com/Marvisak/VIctory/issues/7#issuecomment-7127122056) PRs are limited to collaborators right now, so leaving this here: after CLZERO/SSE4a, the other two AMD-only instructions XCL emulated, `rdpru` and `rdpid`, still aren't handled in `emulate_amd_only`. Branch: https://github.com/jpinat/VIctory/tree/loader/emulate-rdpru-rdpid (one commit, `crates/victory-loader/src/crash.rs` only) - `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 via `rdtscp`. I haven't seen the title execute either one; it's hardening for older Intel hosts, like the existing `clwb` path. 5 synthetic tests, no game data; `cargo test -p victory-loader` passes 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.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#7
No description provided.