--init crashes with 0xC0000005 in dedsec_rt.exe at offset 0x2045B #6

Open
opened 2026-11-26 20:41:08 +00:00 by github-bot · 0 comments
Owner

@⁠miguelferreiraferreira826-boop on GitHub · 2026-11-26 19:48 UTC · original

Summary

dedsec_rt.exe --init crashes with an access violation (0xC0000005) inside the runtime itself (not in game code). The crash occurs during loader.initialise() — likely in TLS callback or DllMain execution.

Reproduction

  1. Build with: python make_game.py --stages runtime
  2. Run:

dedsec_rt.exe --init "C:\gta6\GTA6.Xbox.v1.0.2.1-CYBERLEEK\game_scarlett_master.exe" --game-dir "C:\gta6\GTA6.Xbox.v1.0.2.1-CYBERLEEK"

Environment

  • Windows 11 x64
  • MSVC 19.44.35230.0 (VS BuildTools 2022)
  • CMake 3.24+, Ninja
  • No Vulkan SDK installed
  • Game: GTA6.Xbox.v1.0.2.1-CYBERLEEK (108 files + game_scarlett_master.exe)

Crash Output

[CRASH] Code=0xC0000005 Address=00007FF756E2045B
[CRASH] RIP=00007FF756E2045B
[CRASH] RAX=0000000000000591 RBX=0000000000000596 RCX=000000000000058F RDX=0000000000000004
[CRASH] RSI=000000000000058D RDI=000000000000058E RBP=0000000005F3F966
[CRASH] (no symbol for faulting address)
[CRASH] Module: 00007FF756E00000 +0xCC000 dedsec_rt.exe <-- CRASH HERE

Analysis

  • The crash is in dedsec_rt.exe itself (offset 0x2045B from base), not in game code.
  • Register values are small sequential integers (0x58D–0x596), suggesting an index/offset is being used where a pointer is expected, or an array is being iterated with a wrong stride.
  • --dry-run works fine (maps all 5 modules, reports imports correctly).
  • The crash happens after module mapping, during initialise() (TLS callbacks / DllMain).

Notes

  • All 32 previously-unimplemented imports have been stubbed (xmem, d3d12_xs, chad, xg_xs, XCRDAPI, xapu, AcpHal) — the crash is not caused by a missing import.
  • The stubs log their calls via fprintf(stderr, "[stub] ...") — none of them print before the crash, confirming the crash happens before any stub is invoked.
**@⁠miguelferreiraferreira826-boop** on GitHub · 2026-11-26 19:48 UTC · [original](https://github.com/Hylanderry/DedSec/issues/6) ## Summary `dedsec_rt.exe --init` crashes with an access violation (0xC0000005) inside the runtime itself (not in game code). The crash occurs during `loader.initialise()` — likely in TLS callback or DllMain execution. ## Reproduction 1. Build with: `python make_game.py --stages runtime` 2. Run: dedsec_rt.exe --init "C:\gta6\GTA6.Xbox.v1.0.2.1-CYBERLEEK\game_scarlett_master.exe" --game-dir "C:\gta6\GTA6.Xbox.v1.0.2.1-CYBERLEEK" ## Environment - Windows 11 x64 - MSVC 19.44.35230.0 (VS BuildTools 2022) - CMake 3.24+, Ninja - No Vulkan SDK installed - Game: GTA6.Xbox.v1.0.2.1-CYBERLEEK (108 files + game_scarlett_master.exe) ## Crash Output [CRASH] Code=0xC0000005 Address=00007FF756E2045B [CRASH] RIP=00007FF756E2045B [CRASH] RAX=0000000000000591 RBX=0000000000000596 RCX=000000000000058F RDX=0000000000000004 [CRASH] RSI=000000000000058D RDI=000000000000058E RBP=0000000005F3F966 [CRASH] (no symbol for faulting address) [CRASH] Module: 00007FF756E00000 +0xCC000 dedsec_rt.exe <-- CRASH HERE ## Analysis - The crash is **in dedsec_rt.exe itself** (offset 0x2045B from base), not in game code. - Register values are small sequential integers (0x58D–0x596), suggesting an index/offset is being used where a pointer is expected, or an array is being iterated with a wrong stride. - `--dry-run` works fine (maps all 5 modules, reports imports correctly). - The crash happens after module mapping, during `initialise()` (TLS callbacks / DllMain). ## Notes - All 32 previously-unimplemented imports have been stubbed (xmem, d3d12_xs, chad, xg_xs, XCRDAPI, xapu, AcpHal) — the crash is not caused by a missing import. - The stubs log their calls via `fprintf(stderr, "[stub] ...")` — none of them print before the crash, confirming the crash happens before any stub is invoked.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:41:08 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.