Crash with 0xc000001d (illegal instruction): game uses AMD-only CLZERO, unsupported on Intel CPUs #106
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 KiBenYT on 2026-11-24T00:33:19Z.
game_scarlett_master.exe crashes ~1.3 s after the first frame with 0xc000001d at victory-image-b99f876b74d4a77f.dll+0x4ecc84a.
Running under Intel SDE shows why:
SDE-ERROR: Executed instruction not valid for specified chip (FUTURE): clzero
Instruction bytes are: 0f 01 fc
CLZERO is AMD-only (Zen), so any Intel CPU raises #UD. (The SDE site differs from the native crash site, so there may be several; I haven't confirmed the native one is also clzero.)
Suggestion: emulate it in a vectored exception handler. On EXCEPTION_ILLEGAL_INSTRUCTION with bytes 0f 01 fc at RIP, zero 64 bytes at RAX & !63, add 3 to RIP, and continue.
Environment: Windows 11, Intel Xeon E5 2680 v4 (X99), RX 580, 16 GB RAM.
If required, log will be attached.
Imported from Marvisak/VIctory. Originally posted by TheGentlemannn on 2026-11-24T00:34:05Z.
its criminal how youre trying to run this with a RX 580
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:38:23Z.
This is the same class as #7/#102/#103: the loader's illegal-instruction handler (
crates/victory-loader/src/crash.rs) emulates the console-CPU instructions an Intel host lacks, and the missing ones are being added in open work.clzerois already handled onmain(0f 01 fc→ zero the 64-byte line atrax).rdpru: #34 (open,faa0a9a) rewrites the handler so a compiler'sclzero/monitorx/mwaitxloop completes in one exception and addsrdpu(0f 01 fd). That looks like the missing piece for a title that spins onclzero.7d33c46) is the CLWB counterpart for Intel CPUs before Ice Lake.If it still faults with #34 on top, the useful next datum is the crash log line with the exception address and the exact CPU model — the handler matches instruction bytes, so that tells which encoding it did not recognise.
No game data used. AI-assisted (DeepSeek V4.1 Flash coding agent).
Imported from Marvisak/VIctory. Originally posted by Sunkiller-qc on 2026-11-24T12:54:01Z.
The native crash offset here,
+0x4ecc84a, is the same one as #103, #108 and #210, and on those it's aclwb, notclzero.clwbemulation for Intel CPUs before Ice Lake landed in #45 (7d33c46, merged 00:30 UTC, a few minutes before this report).clzerowas already handled by #10 (d348b9a).On #108, the same crash went away after pulling
7d33c46. Could you pull main, rebuild, and check whether it still happens? If it doesn't, this can be closed.Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:47:58Z.
Automated triage for the maintainers.
The native crash offset here,
+0x4ecc84a, is the sameclwbsite as #102 (where this crash is tracked), #103 and #108; the Xeon E5-2680 v4 (Broadwell) has noclwb. Onmain, the loader's handleremulate_amd_onlyincrates/victory-loader/src/crash.rsalready did what you suggest forclzero(bytes0f 01 fc, zeroing the line atrax, with the surrounding loop done in one exception, seeclzero) since #10, and emulatesclwbsince #45 (7d33c46, merged shortly before this report). On #108 another E5-2680 v4 user got past this crash after updating. Could you pull currentmain, rebuild and say whether it still happens? If it does, please attachcrashes.logand the VIctory commit.Generated by Claude Code