Repository navigation
Conversation
Zunraz
force-pushed
the
fix/startup-trace-exclusive-create
branch
from
November 23, 2026 15:41
3757d46 to
f298ec6
Compare
|
Independent native Windows check of f298ec64 with MSVC 19.44 and Windows SDK 10.0.26100. The stock A new trace with a Unicode name started with the expected AI-assisted. |
devnull34
approved these changes
Nov 23, 2026
devnull34
left a comment
There was a problem hiding this comment.
Verified on Windows 11 (MSVC RelWithDebInfo):
- Built
gta6rt,tiny_game, andstartup_trace_testcleanly. startup_trace_test.exepassed all 26 checks (0 failures), verifying:- Exclusive creation without relying on fopen
xmode (_wsopen_swith_O_CREAT | _O_EXCLand_wfdopen). - Pre-existing files and collision refusal report
EEXISTcleanly and preserve file bytes.
- Exclusive creation without relying on fopen
- CTest targets passed 100%:
23: startup_trace: Passed (0.01s)24: startup_trace_creation: Passed (0.16s)
- Whitespace clean (
git diff HEAD~1..HEAD --check).
This was referenced Nov 23, 2026
|
Tested f298ec6 on Windows 11 26H2 (26300), MSVC 19.44.35229 (v143) + Ninja, RelWithDebInfo (dynamic UCRT): pass.
AI-assisted (Claude Code). |
This was referenced Nov 23, 2026
d3d12_xs: CreateCommandQueueX drops the title's console queue flags (RT-5: the compute queues)
#7037
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: startup trace exclusive creation with the static UCRT.
What and why
With the static UCRT in the documented clang-cl/xwin build,
gta6rt --dry-run <synthetic.exe> --trace fresh.jsonlterminates with0xC0000409before loading the image._wfopen_s(..., L"wxb")invokes the invalid-parameter handler; a separate no-game CRT probe confirms EINVAL forwxb,wbxandwx, whilewbopens.Create the file using
_wsopen_swith_O_CREAT | _O_EXCL | _O_WRONLY | _O_BINARY, then attach its FILE stream with_wfdopen. The documented exclusive-create flags preserve atomic refusal of existing paths. A failed stream conversion closes its descriptor and reports the saved error.The new package-free
startup_trace_creationCTest checks fresh Unicode output and its first JSON event, preservation of an existing trace, preservation of a copied synthetic input image, and clean refusal of directory/missing-parent destinations. Guest arguments are relative for compatibility with the existing Wine runner; Wine was not executed locally.No prerequisite. Rebased onto main
bd3f061adatf298ec64e, retaining #6937's diagnostics. A trial merge with #6410 (d7222bfde) remains clean.Tested
Native Windows x64, build 26300 / 26H2; binaries cross-built in Ubuntu/WSL with clang-cl 21.1.8 and xwin SDK 10.0.26100. CPU only; no GPU/driver paths exercised.
0xC0000409.MultiThreaded) and dynamic (MultiThreadedDLL) CRT builds pass all five CLI scenarios and 26/26 existing startup_trace checks each.test_ctest_registration: 4 passed;test_ci_registration: 14 passed. Both startup trace tests appear in the configured CTest list. Python compileall, whitespace and no-game-data checks pass.bd3f061adworktree:test_runtime_pathsis 4 passed / 1 failed becausetools/replace_retry.pyis absent from the workflow filter;test_text_write_line_endingsis 2 passed / 1 failed at unchangedtools/f64_omod_probe.py:268andtools/leonida_tui.py:753.AI-assisted: yes, Codex. The fix and regressions use synthetic inputs only. This is a diagnostic fix, not a successful-boot claim.
Checklist