Runtime / Loader / Platform: static TLS alignment & attach races, eh::dump_threads deadlock & VEH bounds, C-unwind FFI boundaries, AVX2 check, and hybrid CPU affinity / PLS quota #106

Open
opened 2026-11-26 04:10:17 +00:00 by github-bot · 6 comments
Owner

@⁠raylitebull on GitHub · 2026-11-23 11:15 UTC · original

Summary

Verified several PE loader, static TLS, exception-handling, and host-platform edge cases during an audit of crates/xcl/src/ (on main 60599a9) that warrant focused follow-up PRs:

1. Static TLS edge cases (crates/xcl/src/tls.rs, crates/xcl/src/main.rs, crates/xcl/src/loader.rs)

  • on_thread_attach() IMAGES.try_read() contention: If a game DLL with static TLS is being installed (IMAGES.write()), concurrently attaching OS/game threads hit WouldBlock and silently skip copying all mapped TLS templates, leaving thread_local variables zeroed.
  • .CRT$XLY ordering after take_slot_zero: XCL_TLS_CALLBACK is placed in .CRT$XLY, which runs after Rust std's .CRT$XLB callback. Once take_slot_zero rewrites xcl.exe's _tls_index to k, any .CRT$XLB...CRT$XLX callback on a new thread reads slot k (the title's carrier block) before exchange_for_new_thread swaps slots 0 and k.
  • take_slot_zero ThreadLocalStoragePointer UAF window & MOVED stale TEBs: Raw arr = *(teb + 0x58) pointers are held across Sleep(20) without suspending threads (vulnerable if a thread loads a TLS DLL and reallocates its TLS pointer array), and TerminateThread leaves stale TEBs in MOVED.
  • Ignored IMAGE_TLS_DIRECTORY64.Characteristics alignment & unchecked AddressOfIndex == 0: tls.rs hardcodes Characteristics = 0 in the carrier DLL (dropping 32B/64B alignment required by AVX2/cache-line thread_locals), and callback-only TLS directories with address_of_index == 0 dereference adj(0).

2. Exception-handling & diagnostic safety (crates/xcl/src/eh.rs)

  • dump_threads() deadlock: Allocates (Vec/format!) and calls RtlLookupFunctionEntry, GetModuleHandleExW (Loader Lock), and GetThreadDescription/LocalFree (Process Heap lock) while holding another thread suspended via SuspendThread. Capturing CONTEXT on the stack and calling ResumeThread immediately before symbolizing/formatting avoids deadlocking if the target held the heap or loader lock.
  • cpp_exception_logger VEH crash risk: Performs unbounded CStr::from_ptr after checking only readable(s, 1) (and assumes [object + 8] is std::exception::what for every thrown C++ object), which can fault inside the VEH near a guard/unmapped page and turn a caught C++ exception fatal; also lacks null checks on info/ExceptionRecord/ContextRecord.
  • watch_writes / start_probes: Missing snap != INVALID_HANDLE_VALUE and SuspendThread(h) != u32::MAX guards.

3. PE loader bounds & failure cleanup (crates/xcl/src/pe.rs, crates/xcl/src/loader.rs)

  • pe.rs::relocations (and thunks/imports/delay_imports/exports) use unchecked u32 addition without verifying block <= d.size - pos (panic in debug / potential infinite loop in release on malformed reloc blocks).
  • loader.rs registers mapped modules before pe.imports() / tls_install() without unregistering (or freeing on TLS error) on failure, and caches DLLs whose DllMain(PROCESS_ATTACH) returned FALSE in MAPPED so a second load_game_dll returns Ok(m).

4. FFI -unwind boundaries, startup CPUID check, and PC-sized platform values

  • Guest callbacks across non--unwind extern "system" / extern "C" boundaries: XMemAlloc/XMemFree guest hooks (hle/kernelx.rs), console_wndproc (hle/user.rs), DllMain/TlsCallback (loader.rs), and blocking GameInput::RegisterDeviceCallback (hle/gameinput.rs) cross non--unwind Rust frames; C++/SEH exceptions unwinding across them abort or skip Drop guards.
  • Startup AVX2 / Zen 2 CPUID check (host.rs / launcher.rs): Retail Xbox Series X|S binaries assume Zen 2 (AVX2/FMA/F16C/BMI1/BMI2/POPCNT/SSE4.2/LZCNT); detecting missing ISA features at startup and printing a clear error avoids opaque 0xC000001D crashes on unsupported CPUs.
  • Hybrid CPU affinity masks & core counts (hle/kernelx.rs): SetThreadAffinityMask / SetThreadGroupAffinity / GetSystemInfo / GlobalMemoryStatusEx currently fall through unshimmed to Windows, which can fail on <7-core CPUs, pin console 7-core masks onto E-cores on hybrid Intel CPUs, or report PC-sized logical CPU counts / RAM.
  • S:\ PLS disk space quota (vfs_hooks.rs): GetDiskFreeSpaceExW/A reports the full host NVMe volume instead of clamping S:\ to config.pls_mb.
  • Minor: Config::load_or_create (config.rs) overwrites xcl.toml on any read error (not just ErrorKind::NotFound), and Config::resolve matches "auto"/"advanced" case-sensitively; report::write_final (report.rs) can drop crash if WRITE_LOCK.try_lock() fails concurrently; RegisterClassExA (hle/user.rs) omits cbSize validation and console_window passes SWP_NOSIZE after subclassing WM_GETMINMAXINFO.
**@⁠raylitebull** on GitHub · 2026-11-23 11:15 UTC · [original](https://github.com/xcl-dev/xcl/issues/106) ## Summary Verified several PE loader, static TLS, exception-handling, and host-platform edge cases during an audit of `crates/xcl/src/` (on `main` `60599a9`) that warrant focused follow-up PRs: ### 1. Static TLS edge cases (`crates/xcl/src/tls.rs`, `crates/xcl/src/main.rs`, `crates/xcl/src/loader.rs`) - **`on_thread_attach()` `IMAGES.try_read()` contention:** If a game DLL with static TLS is being installed (`IMAGES.write()`), concurrently attaching OS/game threads hit `WouldBlock` and silently skip copying *all* mapped TLS templates, leaving `thread_local` variables zeroed. - **`.CRT$XLY` ordering after `take_slot_zero`:** `XCL_TLS_CALLBACK` is placed in `.CRT$XLY`, which runs *after* Rust `std`'s `.CRT$XLB` callback. Once `take_slot_zero` rewrites `xcl.exe`'s `_tls_index` to `k`, any `.CRT$XLB`..`.CRT$XLX` callback on a new thread reads slot `k` (the title's carrier block) before `exchange_for_new_thread` swaps slots `0` and `k`. - **`take_slot_zero` `ThreadLocalStoragePointer` UAF window & `MOVED` stale TEBs:** Raw `arr = *(teb + 0x58)` pointers are held across `Sleep(20)` without suspending threads (vulnerable if a thread loads a TLS DLL and reallocates its TLS pointer array), and `TerminateThread` leaves stale TEBs in `MOVED`. - **Ignored `IMAGE_TLS_DIRECTORY64.Characteristics` alignment & unchecked `AddressOfIndex == 0`:** `tls.rs` hardcodes `Characteristics = 0` in the carrier DLL (dropping 32B/64B alignment required by AVX2/cache-line `thread_local`s), and callback-only TLS directories with `address_of_index == 0` dereference `adj(0)`. ### 2. Exception-handling & diagnostic safety (`crates/xcl/src/eh.rs`) - **`dump_threads()` deadlock:** Allocates (`Vec`/`format!`) and calls `RtlLookupFunctionEntry`, `GetModuleHandleExW` (Loader Lock), and `GetThreadDescription`/`LocalFree` (Process Heap lock) while holding another thread suspended via `SuspendThread`. Capturing `CONTEXT` on the stack and calling `ResumeThread` immediately before symbolizing/formatting avoids deadlocking if the target held the heap or loader lock. - **`cpp_exception_logger` VEH crash risk:** Performs unbounded `CStr::from_ptr` after checking only `readable(s, 1)` (and assumes `[object + 8]` is `std::exception::what` for every thrown C++ object), which can fault inside the VEH near a guard/unmapped page and turn a caught C++ exception fatal; also lacks null checks on `info`/`ExceptionRecord`/`ContextRecord`. - **`watch_writes` / `start_probes`:** Missing `snap != INVALID_HANDLE_VALUE` and `SuspendThread(h) != u32::MAX` guards. ### 3. PE loader bounds & failure cleanup (`crates/xcl/src/pe.rs`, `crates/xcl/src/loader.rs`) - `pe.rs::relocations` (and `thunks`/`imports`/`delay_imports`/`exports`) use unchecked `u32` addition without verifying `block <= d.size - pos` (panic in debug / potential infinite loop in release on malformed reloc blocks). - `loader.rs` registers mapped modules before `pe.imports()` / `tls_install()` without unregistering (or freeing on TLS error) on failure, and caches DLLs whose `DllMain(PROCESS_ATTACH)` returned `FALSE` in `MAPPED` so a second `load_game_dll` returns `Ok(m)`. ### 4. FFI `-unwind` boundaries, startup CPUID check, and PC-sized platform values - **Guest callbacks across non-`-unwind` `extern "system"` / `extern "C"` boundaries:** `XMemAlloc`/`XMemFree` guest hooks (`hle/kernelx.rs`), `console_wndproc` (`hle/user.rs`), `DllMain`/`TlsCallback` (`loader.rs`), and blocking `GameInput::RegisterDeviceCallback` (`hle/gameinput.rs`) cross non-`-unwind` Rust frames; C++/SEH exceptions unwinding across them abort or skip `Drop` guards. - **Startup AVX2 / Zen 2 CPUID check (`host.rs` / `launcher.rs`):** Retail Xbox Series X|S binaries assume Zen 2 (AVX2/FMA/F16C/BMI1/BMI2/POPCNT/SSE4.2/LZCNT); detecting missing ISA features at startup and printing a clear error avoids opaque `0xC000001D` crashes on unsupported CPUs. - **Hybrid CPU affinity masks & core counts (`hle/kernelx.rs`):** `SetThreadAffinityMask` / `SetThreadGroupAffinity` / `GetSystemInfo` / `GlobalMemoryStatusEx` currently fall through unshimmed to Windows, which can fail on <7-core CPUs, pin console 7-core masks onto E-cores on hybrid Intel CPUs, or report PC-sized logical CPU counts / RAM. - **`S:\` PLS disk space quota (`vfs_hooks.rs`):** `GetDiskFreeSpaceExW/A` reports the full host NVMe volume instead of clamping `S:\` to `config.pls_mb`. - **Minor:** `Config::load_or_create` (`config.rs`) overwrites `xcl.toml` on any read error (not just `ErrorKind::NotFound`), and `Config::resolve` matches `"auto"`/`"advanced"` case-sensitively; `report::write_final` (`report.rs`) can drop `crash` if `WRITE_LOCK.try_lock()` fails concurrently; `RegisterClassExA` (`hle/user.rs`) omits `cbSize` validation and `console_window` passes `SWP_NOSIZE` after subclassing `WM_GETMINMAXINFO`.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:10:17 +00:00
Author
Owner

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

Thanks. Triage against current main:

  • Config::load_or_create overwriting xcl.toml on any read error – confirmed, fixed in ea4bd62 (only a missing file gets the defaults; an unreadable one is an error).
  • S:\ free space – true that it reports the host volume; titles compare it against what they need, so a larger answer is harmless. Low priority.
  • AVX2 / Zen 2 check – a clear startup error would be nice; small PR welcome.
  • TLS / EH / loader edge cases – plausible; each needs a focused PR with a test (the TLS ones are delicate – every change there should run the console DLL e2e tests and a game).
  • Hybrid CPU affinity – the title sees the PC's processors by design (user decision in HANDOFF); masks for > available cores are worth clamping if a title is seen failing on them.
**@⁠ivall** on GitHub · 2026-11-23 11:42 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7099993118) Thanks. Triage against current `main`: - **`Config::load_or_create` overwriting `xcl.toml` on any read error – confirmed, fixed in ea4bd62** (only a missing file gets the defaults; an unreadable one is an error). - **`S:\` free space** – true that it reports the host volume; titles compare it against what they need, so a larger answer is harmless. Low priority. - **AVX2 / Zen 2 check** – a clear startup error would be nice; small PR welcome. - **TLS / EH / loader edge cases** – plausible; each needs a focused PR with a test (the TLS ones are delicate – every change there should run the console DLL e2e tests and a game). - **Hybrid CPU affinity** – the title sees the PC's processors by design (user decision in HANDOFF); masks for > available cores are worth clamping if a title is seen failing on them.
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:14 UTC · original

Progress: #141 (a DLL that failed to load is not left registered), #148 (title_memory in any case), #183 (TLS without an index variable) and #147 (crash report below a module's base) are merged; #196 (TLS Characteristics alignment / attach contention) and #197 (system-unwind across guest re-entry) are open.

**@⁠ivall** on GitHub · 2026-11-23 21:14 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7114204334) Progress: #141 (a DLL that failed to load is not left registered), #148 (title_memory in any case), #183 (TLS without an index variable) and #147 (crash report below a module's base) are merged; #196 (TLS Characteristics alignment / attach contention) and #197 (system-unwind across guest re-entry) are open.
Author
Owner

@⁠yous0serious on GitHub · 2026-11-23 21:15 UTC · original

The hybrid CPU affinity item: #221 clamps SetThreadAffinityMask / SetThreadGroupAffinity masks that name processors outside the process's affinity (the case triaged above as worth clamping). Masks made from the PC's processors pass unchanged, so the title still sees the PC's processors.

Measured on an i7-13700KF: Windows fails such a mask with ERROR_INVALID_PARAMETER when none of its processors exists (0xFF000000 on 24 processors), or when any is outside a limited process mask (0x7F / 0x3F / 0x40 under start /affinity F). The E-core concern above does not hold there: Windows numbers the P-core threads first (0–15), so console masks (bits 0–13) land on P-cores.

The other items of this issue are not touched by #221.

**@⁠yous0serious** on GitHub · 2026-11-23 21:15 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7114218829) The **hybrid CPU affinity** item: #221 clamps `SetThreadAffinityMask` / `SetThreadGroupAffinity` masks that name processors outside the process's affinity (the case triaged above as worth clamping). Masks made from the PC's processors pass unchanged, so the title still sees the PC's processors. Measured on an i7-13700KF: Windows fails such a mask with `ERROR_INVALID_PARAMETER` when none of its processors exists (`0xFF000000` on 24 processors), or when any is outside a limited process mask (`0x7F` / `0x3F` / `0x40` under `start /affinity F`). The E-core concern above does not hold there: Windows numbers the P-core threads first (0–15), so console masks (bits 0–13) land on P-cores. The other items of this issue are not touched by #221.
Author
Owner

@⁠mariuslozo-boop on GitHub · 2026-11-23 21:36 UTC · original

A crash in eh::dump_threads (XCL_THREAD_DUMP_AT), adding to the dump_threads item here.

On main d4f17ca with XCL_THREAD_DUMP_AT=90,180,270 and a retail title running (RTX 5070 Ti, Windows 11 26300), the dumps at 90 s and 180 s were fine. At 270.052 s, the dump thread itself crashed and took the process down:

unhandled exception 0xc0000005 in ntdll.dll+0x1ff2a (read at address 0xf8) rax=0x0 rbx=0x3 rcx=0x0 … r8=0xf8 … ; on the stack: xcl.exe+0x5b1e00, xcl.exe+0x268e1e, xcl.exe+0x630308, xcl.exe+0xdac7a
  • ntdll+0x1ff2a is inside RtlVirtualUnwind2: mov rcx, qword ptr [r8] with r8 = 0xf8. While walking a suspended thread's stack, the unwinder dereferences a near-null context pointer.
  • The likely cause is a frame that eh::unwind starts from a context it should not trust, or a frame without a valid function entry. The read happens inside RtlVirtualUnwind, so no check in unwind after the call can catch it.
  • So far it has happened once out of three dumps in that run. I have not reproduced it yet.

AI-assisted (Claude Code). No game files attached.

**@⁠mariuslozo-boop** on GitHub · 2026-11-23 21:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7114683441) A crash in `eh::dump_threads` (`XCL_THREAD_DUMP_AT`), adding to the dump_threads item here. On main `d4f17ca` with `XCL_THREAD_DUMP_AT=90,180,270` and a retail title running (RTX 5070 Ti, Windows 11 26300), the dumps at 90 s and 180 s were fine. At 270.052 s, the dump thread itself crashed and took the process down: ``` unhandled exception 0xc0000005 in ntdll.dll+0x1ff2a (read at address 0xf8) rax=0x0 rbx=0x3 rcx=0x0 … r8=0xf8 … ; on the stack: xcl.exe+0x5b1e00, xcl.exe+0x268e1e, xcl.exe+0x630308, xcl.exe+0xdac7a ``` - `ntdll+0x1ff2a` is inside `RtlVirtualUnwind2`: `mov rcx, qword ptr [r8]` with `r8 = 0xf8`. While walking a suspended thread's stack, the unwinder dereferences a near-null context pointer. - The likely cause is a frame that `eh::unwind` starts from a context it should not trust, or a frame without a valid function entry. The read happens inside `RtlVirtualUnwind`, so no check in `unwind` after the call can catch it. - So far it has happened once out of three dumps in that run. I have not reproduced it yet. AI-assisted (Claude Code). No game files attached.
Author
Owner

@⁠notquiteog on GitHub · 2026-11-24 17:41 UTC · original

A field occurrence that fits the dump_threads() deadlock in section 2, on main 9e3831e (release, cargo build --release --workspace), Windows 11 26100, RTX 5060 Ti, XCL_NETWORK=0, retail title 1.0.2.1.

The title takes its usual watchdog exit (+0x23cf683, #846) at 104.8 s. xcl.log ends on that line:

[  104.828][13436][ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 ...

Nothing follows it: no on the stack: list, no process ends with status … line, no thread dump, and no crash-reporter lines. The process stayed alive for another 8+ minutes until my harness killed it at its 10-minute cap.

For comparison, on the same machine and title the same exit was handled normally three times: twice on 077ce40 and once on the theaustinayers fork at 76d3b9f. Each time the log has the stack, a full per-thread dump and process ends with status 0xc0000005 within about 1 s, and the process exits. So it's intermittent, as a lock held by a suspended thread would be. eh.rs did not change between 077ce40 and 9e3831e.

I don't have a dump of the hung process, so this is consistent with the suspended-thread heap/loader-lock deadlock described above rather than proof of it. One practical effect: a run that should end in ~1 s after the title's fatal exit instead hangs indefinitely, so unattended test runs need their own timeout.

**@⁠notquiteog** on GitHub · 2026-11-24 17:41 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7139572998) A field occurrence that fits the **`dump_threads()` deadlock** in section 2, on `main` `9e3831e` (release, `cargo build --release --workspace`), Windows 11 26100, RTX 5060 Ti, `XCL_NETWORK=0`, retail title 1.0.2.1. The title takes its usual watchdog exit (`+0x23cf683`, #846) at 104.8 s. `xcl.log` ends on that line: ``` [ 104.828][13436][ERROR] unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0) rax=0x0 rbx=0x0 rcx=0x70024c348 rdx=0x1 ... ``` Nothing follows it: no `on the stack:` list, no `process ends with status …` line, no thread dump, and no crash-reporter lines. The process stayed alive for another 8+ minutes until my harness killed it at its 10-minute cap. For comparison, on the same machine and title the same exit was handled normally three times: twice on `077ce40` and once on the theaustinayers fork at `76d3b9f`. Each time the log has the stack, a full per-thread dump and `process ends with status 0xc0000005` within about 1 s, and the process exits. So it's intermittent, as a lock held by a suspended thread would be. `eh.rs` did not change between `077ce40` and `9e3831e`. I don't have a dump of the hung process, so this is consistent with the suspended-thread heap/loader-lock deadlock described above rather than proof of it. One practical effect: a run that should end in ~1 s after the title's fatal exit instead hangs indefinitely, so unattended test runs need their own timeout.
Author
Owner

@⁠pickles976 on GitHub · 2026-11-26 06:46 UTC · original

Follow-through on the dump_threads() recommendation: resuming before symbolization avoids the original lock problem, but resuming before unwinding leaves the stack live.

Current main b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7 still has ResumeThread(h) at eh.rs:681, then unwind(&mut c.0, 14) at685; unwind reads the original RSP and calls RtlVirtualUnwind at644. Capturing CONTEXT alone does not freeze the stack bytes subsequently read by the unwinder.

Runtime evidence, not a clean-main reproduction: local mixed 1bfa05d9214cf5f68e602233072d8786fd3c529a (#2573 + sparse 4MiB pools/#735/#850 integration), with eh.rs unchanged, fresh release build, XCL_THREAD_DUMP_AT=12,24 and XCL_ACTIVITY=1. Instead of the previous title watchdog exception, this attempt logged a different early AV: ntdll.dll+0x38a26, read address 0xf0. One55-thread dump was emitted; the second scheduled sample was not reached.

  • The exception's captured stack included xcl.exe+0x54e01d.
  • Matching local PE/PDB GUID+age resolves that address to xcl::eh::dump_threads+0x21d.
  • Exact bounded disassembly shows the preceding instruction at +0x54e017 calls IAT +0x821b60; PE imports resolve that slot to kernel32!RtlVirtualUnwind.
  • The captured xcl+0x4bc83 value resolves to d3d12x::frame::clock_thread+0x4c3. The report's stack scan is heuristic, not a certified call chain.

This implicates the diagnostic unwinding call; a changed live stack is an inference, not an independently proven trigger. It also does not prove the cause of the separate GPU-telemetry timeout that stopped this run at18.38s. The guard requested scope kill in8ms; no kernel journal entries in the inspected interval; a later bounded GPU query recovered. I will not rerun this unchanged dump probe or use these stacks to assert a title/GPU root cause.

A safe follow-up needs stable stack data plus lock-safe unwinding/symbolization. Simply moving all the existing work back under SuspendThread reintroduces the heap/loader-lock risk identified here.

Local artifacts .compat-xcl/logs/20261126T063124Z-{console.log,resources.csv,guard-events.jsonl} and 20261126T063124Z-xcl-dump.asm.txt. Wine11.0, NVIDIA590.48.1 / RTX4060 Laptop8GiB,16GiB RAM; diagnostic relaxed vkd3d-proton3.2.0 2576c0b4adfae4a+ (assertions disabled; allocator/list vtable identity checks removed, null checks retained), not stock-runtime certification. Unchanged GPU6000MiB/RAM-available2048MiB/disk-available10GiB guards and9GiB cgroup/512MiB swap caps. No code PR/push or title patch.

**@⁠pickles976** on GitHub · 2026-11-26 06:46 UTC · [original](https://github.com/xcl-dev/xcl/issues/106#issuecomment-7184770320) Follow-through on the `dump_threads()` recommendation: **resuming before symbolization avoids the original lock problem, but resuming before unwinding leaves the stack live.** Current `main` `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7` still has `ResumeThread(h)` at `eh.rs:681`, then `unwind(&mut c.0, 14)` at685; `unwind` reads the original RSP and calls `RtlVirtualUnwind` at644. Capturing CONTEXT alone does not freeze the stack bytes subsequently read by the unwinder. Runtime evidence, **not a clean-main reproduction**: local mixed `1bfa05d9214cf5f68e602233072d8786fd3c529a` (#2573 + sparse 4MiB pools/#735/#850 integration), with `eh.rs` unchanged, fresh release build, `XCL_THREAD_DUMP_AT=12,24` and `XCL_ACTIVITY=1`. Instead of the previous title watchdog exception, this attempt logged a different early AV: `ntdll.dll+0x38a26`, read address `0xf0`. One55-thread dump was emitted; the second scheduled sample was not reached. - The exception's captured stack included `xcl.exe+0x54e01d`. - Matching local PE/PDB GUID+age resolves that address to `xcl::eh::dump_threads+0x21d`. - Exact bounded disassembly shows the preceding instruction at `+0x54e017` calls IAT `+0x821b60`; PE imports resolve that slot to `kernel32!RtlVirtualUnwind`. - The captured `xcl+0x4bc83` value resolves to `d3d12x::frame::clock_thread+0x4c3`. The report's stack scan is heuristic, not a certified call chain. This implicates the diagnostic unwinding call; **a changed live stack is an inference, not an independently proven trigger**. It also does not prove the cause of the separate GPU-telemetry timeout that stopped this run at18.38s. The guard requested scope kill in8ms; no kernel journal entries in the inspected interval; a later bounded GPU query recovered. I will not rerun this unchanged dump probe or use these stacks to assert a title/GPU root cause. A safe follow-up needs stable stack data plus lock-safe unwinding/symbolization. Simply moving all the existing work back under `SuspendThread` reintroduces the heap/loader-lock risk identified here. Local artifacts `.compat-xcl/logs/20261126T063124Z-{console.log,resources.csv,guard-events.jsonl}` and `20261126T063124Z-xcl-dump.asm.txt`. Wine11.0, NVIDIA590.48.1 / RTX4060 Laptop8GiB,16GiB RAM; **diagnostic relaxed vkd3d-proton3.2.0 `2576c0b4adfae4a+`** (assertions disabled; allocator/list vtable identity checks removed, null checks retained), not stock-runtime certification. Unchanged GPU6000MiB/RAM-available2048MiB/disk-available10GiB guards and9GiB cgroup/512MiB swap caps. No code PR/push or title patch.
This discussion has been locked. Commenting is limited to contributors.
No description provided.