Repository navigation
Conversation
|
Tested dbb3ee2 merged with main f847748 on Linux (WSL2 Ubuntu), Python 3.12.16: pass on the diff read, but the new job itself is not run here. The merge is clean and the change is workflow-only, so there are no Python tests and no negative control. I did not run cmake or ctest. I read the diff: the new |
dbb3ee2 to
458ce1b
Compare
|
Thanks @kapitche. Both points are addressed in 458ce1b:
|
458ce1b to
21ffb20
Compare
|
A correction to my reply above. After the rebase on main 4c52ce2, f5a5d17 sets The Build step will still fail until main's |
|
Independent sanitizer run on Debian 13, GCC 14.2, Vulkan loader 1.4.309, and Mesa 25.0.7 llvmpipe (LLVM 19.1.7). I built the runtime from I also ran the two relevant tests with the current
These are software Vulkan results with no game files. The depth conversion test is worth watching for memory use on runners with a different limit. AI-assisted (Codex). |
|
Thanks @ligmaSec. Getting the same result without the leak on a newer loader and Mesa fits the leak being specific to the driver and loader versions. On |
|
CI failure found by my watcher and fixed (AI-assisted, OpenCode; no GPU or game data involved). The Runtime workflow's Pushed Depends on: none. |
|
Tested
I also built |
|
Tested b1fef65 on Linux, CPU only: pass
AI-assisted (Devin); no game files |
|
@AirKyzzZ — thank you for the detailed macOS verification of #3014: actionlint clean on the merged workflow, the three workflow/path tests passing, and a local sanitizer build with Homebrew clang 23 showing 47/50 ctest with no ASan/UBSan report in the runtime. Your note that Apple clang 17's ASan hangs in |
Kam471
left a comment
There was a problem hiding this comment.
Ran this at b1fef6505 on Windows 11: pytest tests/test_ci_registration.py -q -> 8 passed; git diff --check clean.
The sanitizer job builds the Linux CPU and llvmpipe tests with ASan+LSan+UBSan, pins the Vulkan headers to the same 1.4.363 snapshot the GPU job uses, and sets VK_LOADER_DISABLE_DYNAMIC_LIBRARY_UNLOADING=1 so the driver's known unload leak is not reported while the tests' own leaks still are. The registration test accepts the new job. I cannot run GitHub Actions here, so this is static/registration evidence only. No blocking issue.
|
@Andretuta — thank you for the Linux sanitizer-flags reproduction (104 targets built, ctest 43/45). Both of your findings are fixed in |
|
A data point for the other half: the same idea on Windows, where the loader, the shims and the D3D12 layer are built. Not a test of this PR. Result on main 3faac55 (Windows 10 22H2, RTX 3090, NVIDIA 621.24; clang-cl 23.1.5 with The 14 that don't pass, none a memory bug in the runtime as far as I can tell:
So a Windows sanitizer job would need the fixtures built without the sanitizer and those seven tests excluded or adapted. What it took to build (in a Then copy AI-assisted (Claude). No game files. |
|
@stocksock — thank you for the thorough Windows/clang-cl ASan data point. You're right that it isn't a test of #3014: this job builds only the Linux CPU/llvmpipe targets with ASan+LSan+UBSan, so the Windows loader/shim/D3D12 code it cannot build stays out of scope. Your 162/176 result with no runtime ASan report (only the sanitized-fixture/VCRUNTIME exception dispatch), plus the notes about fixtures built without sanitizer and the seven tests needing exclusion/adaptation, is useful evidence that a Windows sanitizer job would be a separate, more invasive item — I won't widen this PR to one. If you'd like it tracked for someone to pick up, a |
|
Re-checked 55b0cff (since b1fef65; code read + CPU tests on Linux, Python 3.14, GCC on Arch): pass for the CPU half; the llvmpipe tests were not run
AI-assisted (Claude Code). No GPU and no game files. |
|
@cynbun — thank you for the thorough re-check at |
|
Re-checked e987b3a: confirmed.
AI-assisted (Claude Code). No GPU and no game files. |
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…g, like linux-gpu-tools Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…t report the driver's allocations Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
e987b3a to
c6ce345
Compare
|
@cynbun — thank you for flagging the conflict with |
|
Confirmed at |
|
Blocking CI regression at Downloadable correction for this head. With the intended flags, isolated ASan and UBSan controls each produced a diagnostic and exited 1; CTest returned 8 for each. These controls are separate from running the runtime suite. AI-assisted review. |
|
Correction to my confirmation above (#3014 (comment)): @richmanstudio is right, and my check (YAML parses, five jobs present, clean merge) didn't look at which steps each job holds. Parsed from
The rebase resolution needs the macOS steps moved back under |
|
@richmanstudio — you were right, and thank you for the precise diagnosis and the patch. My rebase conflict resolution at Fixed in |
|
Full runtime run for With ASan and UBSan active and only leak detection disabled, CTest exited 0: 57 passed, 2 skipped ( |
|
Re-checked |
|
@cynbun — no apology needed; your original catch of the YAML conflict is what prompted the rebase, and the step-ownership gap was mine. Your parsed breakdown matches what I fixed in @richmanstudio — thank you for the full runtime run with the corrected flags: 57 passed / 2 skipped with ASan+UBSan and leak detection off is strong evidence the instrumented build and CTest set are sound. Your LSan result is important context: 58 tests abort with the PR's leak settings, but the same fatal error on an empty |
|
Tested |
|
Tested da184d2 (CPU, Windows 11, Python 3.11): pass. compileall and |
|
@caltr98 — thanks for the CPU check at |
Claimed in the coordination issue as: new TEST item, claim
What and why
No workflow builds
runtime/with sanitizers. An out-of-bounds read, a leak or undefined behaviour in the portable code (shader_library.hparsers and zlib inflate,resource_tiling.h,frame_pacer.h, descriptor and replay helpers) only shows up as a wrong result on some machine, if at all.This adds a
linux-sanitizersjob toruntime.yml. It installs Vulkan headers and llvmpipe likelinux-gpu-tools, buildsruntime/with-fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer(GCC, RelWithDebInfo, sccache,-DLEONIDA_REQUIRE_VULKAN=ONso missing headers fail the configure instead of silently dropping the Vulkan tests), and runsctestwith LeakSanitizer on. Any sanitizer report fails the test and the job. The existing jobs are unchanged.The job sets
VK_LOADER_DISABLE_DYNAMIC_LIBRARY_UNLOADING=1. Without it, the Vulkan loader unloads llvmpipe atvkDestroyInstance, and LeakSanitizer reports 112 bytes (2 allocations, made on a driver thread) that llvmpipe still holds, invk_command_replay, with every frame in<unknown module>. With the driver kept loaded, the report goes away: those bytes are still referenced from the driver. The Khronos validation layer reports no undestroyed objects for that test, so the test frees what it creates. This loader setting exists for leak sanitizers. Leaks in the runtime's own code are still reported.Tested
Rebased on main 4c52ce2. In an
ubuntu:24.04container (GCC 13.3, Mesa 25.2.8 llvmpipe, Vulkan loader 1.3.275, no GPU), fresh build with the job's exact configure flags and environment:ctest --test-dir <build> --output-on-failure: 43/45 passed under ASan, UBSan and LSan, 0 failed.shader_library_corpusandvk_sync_validationskip as they do in the normal build (no game folder, no validation layer).vk_command_replaywithoutVK_LOADER_DISABLE_DYNAMIC_LIBRARY_UNLOADING: the 112-byte LSan report in 10 out of 10 runs. With it: clean. With the llvmpipe ICD preloaded instead: also clean. WithVK_LAYER_KHRONOS_validation: no errors.actionlintpasses onruntime.yml.AI-assisted (Devin).
Checklist
docs/design.md, with how it was confirmed. (n/a: no translator change)Rebased onto main
561b65a8(headda184d231). The earlierDepends on: #3869is obsolete: commitb1fef650pins the Vulkan-Headers checkout in this job, so the build no longer depends on that PR. The macOS job's Configure/Build/test steps stay withmacos(guarded byRuntimeWorkflowJobOwnershipTest).