XCL_NETWORK=0 does not stop the title's crash reporter: a 21.5 MB minidump was uploaded via host WinHttp #305

Closed
opened 2026-11-26 04:19:31 +00:00 by github-bot · 2 comments
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-23 22:56 UTC · original

Summary

XCL_NETWORK=0 did not prevent the title's built-in crash reporter (Backtrace/Breakpad) from uploading a 21.5 MB minidump to submit.backtrace.io through host WinHTTP. The upload completed during a crash (HTTP 200, {"response":"ok"}). Reporting it because XCL_NETWORK reads as the offline switch, and this is host-network traffic from guest code that bypasses it.

What the log shows

%LOCALAPPDATA%\XCL\<package id>\logs\xcl.log (a run on main 9ab7d76 + PR #267, Windows 11, RTX 3080 Ti, XCL_NETWORK=0):

[debug] BacktraceBreakpad:…http_upload.cc:488:parameter `Sandbox`, value: `RETAIL`
[debug] BacktraceBreakpad:…http_upload.cc:505:Added file 'crashcontext.log' (t:\game_scarlett_master-….crash.log)
[debug] BacktraceBreakpad:…http_upload.cc:505:Added file 'upload_file_minidump' (T:\….dmp)
[debug] BacktraceBreakpad:…http_upload.cc:291:URL: https://submit.backtrace.io/paradise/40d97e6dbe025ce8f3d1c0f146a90f6d7878fae3d7
[debug] BacktraceBreakpad:…http_upload.cc:292:Payload size: 22565726
[debug] BacktraceBreakpad:…http_upload.cc:388:HTTP Return code: 200
[debug] BacktraceBreakpad:…http_upload.cc:401:HTTP result: {"response":"ok","_rxid":"…"}

The title's own crash context (Game Locale, Game SKU, Sandbox, TitleID, memory stats, platform, a random per-run SharedId) and the full process dump were included.

Why

XCL_NETWORK=0 covers XCL's HLE networking path. The Breakpad uploader calls host WinHttp (winhttp.dll+0x3aa22 appears in the crash thread dump), so it is not affected. This matches the successful reports in #232, which combined XCL_NETWORK=0 with an OS firewall block on xcl.exe.

Suggested direction (owner’s call)

  • Treat "the guest must not reach the network" as host-level: block/observe WinHttp* for console-code callers the way the D3D12 trace marks console-origin calls, or
  • Document XCL_NETWORK=0 as covering only XCL's own services and pair it with a firewall rule in the README's privacy guidance, or
  • Add an explicit XCL_BLOCK_HOST_NETWORK that rejects winhttp/ws2_32 connects for the guest.

Context

This came up during the Ampere bring-up in #301 (early assert 0x80000003 at title+0x2237178); the reporter ran automatically at that crash. Full process minidumps can contain arbitrary resident memory, so other users testing on their own machines may be surprised by this as well.

AI-assisted (Claude Code CLI via a model proxy). No game files attached; log lines are what xcl printed.

**@⁠vladbondarenko97** on GitHub · 2026-11-23 22:56 UTC · [original](https://github.com/xcl-dev/xcl/issues/305) ## Summary `XCL_NETWORK=0` did not prevent the title's built-in crash reporter (Backtrace/Breakpad) from uploading a **21.5 MB minidump** to `submit.backtrace.io` through **host WinHTTP**. The upload completed during a crash (`HTTP 200`, `{"response":"ok"}`). Reporting it because `XCL_NETWORK` reads as the offline switch, and this is host-network traffic from guest code that bypasses it. ## What the log shows `%LOCALAPPDATA%\XCL\<package id>\logs\xcl.log` (a run on main `9ab7d76` + PR #267, Windows 11, RTX 3080 Ti, `XCL_NETWORK=0`): ``` [debug] BacktraceBreakpad:…http_upload.cc:488:parameter `Sandbox`, value: `RETAIL` [debug] BacktraceBreakpad:…http_upload.cc:505:Added file 'crashcontext.log' (t:\game_scarlett_master-….crash.log) [debug] BacktraceBreakpad:…http_upload.cc:505:Added file 'upload_file_minidump' (T:\….dmp) [debug] BacktraceBreakpad:…http_upload.cc:291:URL: https://submit.backtrace.io/paradise/40d97e6dbe025ce8f3d1c0f146a90f6d7878fae3d7 [debug] BacktraceBreakpad:…http_upload.cc:292:Payload size: 22565726 [debug] BacktraceBreakpad:…http_upload.cc:388:HTTP Return code: 200 [debug] BacktraceBreakpad:…http_upload.cc:401:HTTP result: {"response":"ok","_rxid":"…"} ``` The title's own crash context (`Game Locale`, `Game SKU`, `Sandbox`, `TitleID`, memory stats, platform, a random per-run `SharedId`) and the full process dump were included. ## Why `XCL_NETWORK=0` covers XCL's HLE networking path. The Breakpad uploader calls **host `WinHttp`** (`winhttp.dll+0x3aa22` appears in the crash thread dump), so it is not affected. This matches the successful reports in #232, which combined `XCL_NETWORK=0` with an OS firewall block on `xcl.exe`. ## Suggested direction (owner’s call) - Treat "the guest must not reach the network" as host-level: block/observe `WinHttp*` for console-code callers the way the D3D12 trace marks console-origin calls, or - Document `XCL_NETWORK=0` as covering only XCL's own services and pair it with a firewall rule in the README's privacy guidance, or - Add an explicit `XCL_BLOCK_HOST_NETWORK` that rejects `winhttp`/`ws2_32` connects for the guest. ## Context This came up during the Ampere bring-up in #301 (early assert `0x80000003` at `title+0x2237178`); the reporter ran automatically at that crash. Full process minidumps can contain arbitrary resident memory, so other users testing on their own machines may be surprised by this as well. AI-assisted (Claude Code CLI via a model proxy). No game files attached; log lines are what xcl printed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:19:31 +00:00
Author
Owner

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

Thanks - a serious one. Fixed on main in db1ddb2: with XCL_NETWORK=0 the refusals are now hooked into the system DLLs themselves for the whole process, not only into the title's imports: winhttp (WinHttpSendRequest, WinHttpConnect), wininet (InternetConnect, InternetOpenUrl, HttpSendRequest(Ex) A/W) and ws2_32 (connect, WSAConnect, sendto, WSASendTo, gethostbyname, getaddrinfo, GetAddrInfoW, GetAddrInfoExW). Whatever finds them - an import, GetProcAddress, a DLL of the title's - gets no network; loopback and local names still go through. The log says XCL_NETWORK=0: the system's WinHTTP, WinINet and Winsock refuse the network for the whole process at start.

Checked on an RX 9070: a unit test calls the functions through GetProcAddress (refused) and a lookup of localhost (passes); the retail game still reaches its menu with the hooks (956 frames in 40 s). A crash run with the reporter's debug output on current main would confirm it end to end - please reopen if an upload still shows up. Until then a firewall rule on xcl.exe remains a good belt-and-braces.

**@⁠ivall** on GitHub · 2026-11-23 23:32 UTC · [original](https://github.com/xcl-dev/xcl/issues/305#issuecomment-7117079234) Thanks - a serious one. Fixed on main in db1ddb2: with `XCL_NETWORK=0` the refusals are now hooked into the system DLLs themselves for the whole process, not only into the title's imports: winhttp (`WinHttpSendRequest`, `WinHttpConnect`), wininet (`InternetConnect`, `InternetOpenUrl`, `HttpSendRequest(Ex)` A/W) and ws2_32 (`connect`, `WSAConnect`, `sendto`, `WSASendTo`, `gethostbyname`, `getaddrinfo`, `GetAddrInfoW`, `GetAddrInfoExW`). Whatever finds them - an import, `GetProcAddress`, a DLL of the title's - gets no network; loopback and local names still go through. The log says `XCL_NETWORK=0: the system's WinHTTP, WinINet and Winsock refuse the network for the whole process` at start. Checked on an RX 9070: a unit test calls the functions through `GetProcAddress` (refused) and a lookup of localhost (passes); the retail game still reaches its menu with the hooks (956 frames in 40 s). A crash run with the reporter's debug output on current main would confirm it end to end - please reopen if an upload still shows up. Until then a firewall rule on `xcl.exe` remains a good belt-and-braces.
Author
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-23 23:57 UTC · original

Re-tested end to end on the fix, as asked — db1ddb2, retail 1.0.2.1 package (all archives present), Windows 11, RTX 3080 Ti, XCL_NETWORK=0:

[    0.025][82156][INFO ] XCL_NETWORK=0: the system's WinHTTP, WinINet and Winsock refuse the network for the whole process (loopback and local names excepted)
[   91.324][77728][INFO ] [debug] BacktraceBreakpad:..http_upload.cc:291:URL: https://submit.backtrace.io/paradise/…/minidump
[   91.383][77728][INFO ] [debug] BacktraceBreakpad:..http_upload.cc:292:Payload size: 28578077
[   91.478][77728][INFO ] XCL_NETWORK=0: WinHttpConnect fails (no network)

The uploader now reaches the payload stage — 28,578,077 bytes, i.e. a bigger dump than the 21.5 MB that left the machine before — and then WinHttpConnect refuses it. The run contains no HTTP Return code line and no {"response":"ok"} at all (grep count 0 across the whole log). Before the fix, that same sequence to that same URL ended in HTTP Return code: 200 / {"response":"ok"}.

Repro: complete retail package, XCL_NETWORK=0, let the title crash (ours ends with 0x80000003 at title+0x1330a44 after ~76 s), and the reporter engages on its own. Nothing to reopen from our side; we keep the outbound firewall rule on xcl.exe as the belt-and-braces you suggested.

Unrelated to this issue, same run: with the package complete, our earlier 0x80000003 at title+0x2237178 is gone — it was a missing audio.rpf on our side, the same class as VIctory PR #12. The run now reaches XGameRuntime + the audio HAL and submits ~204k shaders, but still 0 presents.

AI-assisted (Claude Code CLI via a model proxy; the run and every log line above are xcl's own output).

**@⁠vladbondarenko97** on GitHub · 2026-11-23 23:57 UTC · [original](https://github.com/xcl-dev/xcl/issues/305#issuecomment-7117553812) Re-tested end to end on the fix, as asked — `db1ddb2`, retail 1.0.2.1 package (all archives present), Windows 11, RTX 3080 Ti, `XCL_NETWORK=0`: ``` [ 0.025][82156][INFO ] XCL_NETWORK=0: the system's WinHTTP, WinINet and Winsock refuse the network for the whole process (loopback and local names excepted) [ 91.324][77728][INFO ] [debug] BacktraceBreakpad:..http_upload.cc:291:URL: https://submit.backtrace.io/paradise/…/minidump [ 91.383][77728][INFO ] [debug] BacktraceBreakpad:..http_upload.cc:292:Payload size: 28578077 [ 91.478][77728][INFO ] XCL_NETWORK=0: WinHttpConnect fails (no network) ``` The uploader now reaches the payload stage — 28,578,077 bytes, i.e. a bigger dump than the 21.5 MB that left the machine before — and then `WinHttpConnect` refuses it. The run contains **no** `HTTP Return code` line and no `{"response":"ok"}` at all (grep count 0 across the whole log). Before the fix, that same sequence to that same URL ended in `HTTP Return code: 200` / `{"response":"ok"}`. Repro: complete retail package, `XCL_NETWORK=0`, let the title crash (ours ends with `0x80000003` at `title+0x1330a44` after ~76 s), and the reporter engages on its own. Nothing to reopen from our side; we keep the outbound firewall rule on `xcl.exe` as the belt-and-braces you suggested. Unrelated to this issue, same run: with the package complete, our earlier `0x80000003` at `title+0x2237178` is gone — it was a missing `audio.rpf` on our side, the same class as VIctory PR #12. The run now reaches XGameRuntime + the audio HAL and submits ~204k shaders, but still 0 presents. AI-assisted (Claude Code CLI via a model proxy; the run and every log line above are xcl's own output).
This discussion has been locked. Commenting is limited to contributors.
No description provided.