Linux ASan: shader-memory fixture aborts in SPIRV-Tools stable_sort before capture tests #7765
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by Amoenus on 2026-10-19T06:46:42Z.
Observed failure
On unmodified main
46f27623c28b237f6b7dab93862a318e4977cc19, the supported Linux AddressSanitizer configuration buildsagc_shader_memory_tests, but the fixture exits inverifyFrontendPairbefore its memory-capture lifetime cases:The allocation trace names
operator new(unsigned long, std::nothrow_t const&)throughstd::get_temporary_buffer. The cause is not isolated; this report does not assign the defect to SPIRV-Tools, libstdc++ or the project's allocation interposition.Reproduction
Ubuntu 24.04 WSL2,
g++ (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, bundled dependency mode with SPIRV-Tools gitlink7f2d9ee926f98fc77a3ed1e1e0f113b8c9c49458.Our configure additionally reuses the existing current-revision FFmpeg package with
FFMPEG_PREBUILT_DIR. The loader resolves the test'slibc.prxfrom this ASan build's owncore/libs/libs/unpatcheddirectory;LD_LIBRARY_PATHis empty, so this is not a stale runtime override.Controls and scope
e3b8707988421618f3b33092af69cd00ca5e637d, same base/build: ASan again stops atverifyFrontendPairwith the same mismatch, this time with defaultASAN_OPTIONS. Ordinary Linux and Windows shader-memory runs each pass 5/5. No allocation-mismatch suppression is applied.Expected next step: isolate the allocation/deallocation pairing or sanitizer/interposition incompatibility so this fixture can reach the remaining tests under ASan. No runtime workaround or code change is proposed here.
AI-assisted investigation/report: yes, Codex.
Resolution status
Fixed upstream by #7781 (merged 2026-10-19). The fixture now routes nothrow allocation through its own
operator new, pairingstable_sorttemporary allocations with its free-based delete. The PR reports an isolated ASan reproduction passing with allocation-mismatch checking enabled; its author could not execute the full fixture on that host because of the CPU-feature precondition. Our earlier main46f/e3b failures remain historical evidence, and a fresh full-fixture instrumented run on the combined newer source is still pending here.