Repository navigation
Runtime: trace failed dynamic export lookups during boot - #8859
gabrielsteglich wants to merge 1 commit into
Conversation
|
Verified head
AI-assisted. |
|
AI-assisted independent validation (Claude Code), native Windows, CPU only, no game files. Tested PR head
|
|
Tested de3d5cc (merged onto main 867d922) on RTX 5070, NVIDIA 621.24, Windows 11 (build 26200), Vulkan validation layer on (
Ran the tests that belong to the test files this PR changes (ctest entries, or the test program directly when it is not registered), with no game files ( |
|
Tested
AI-assisted (Claude Code). |
sds-228
left a comment
There was a problem hiding this comment.
The failed-lookup event is scoped to shim pseudo-handles and mapped modules, with deduplication, a bounded event cap, name escaping, and caller attribution. Native and Python tests cover named/ordinal lookups, controls, deduplication/cap and report rendering; the focused Python suite passes 23/23 at head versus 22/22 at base, and docs match the implementation. The C++ changes are diff-review only here because no local C++ compiler is available; no game-data issues were found.
AI-assisted (OpenCode).
What and why
A guest can resolve exports with GetProcAddress after static imports have been processed. If a runtime shim or mapped guest module lacks the requested export, stderr can show the miss while the structured boot report has no matching entry. This adds a get_proc_address_failed event with the target module, export name or ordinal, and mapped caller when available. The event is emitted only with startup tracing enabled, deduplicated, and capped at 256 distinct misses per process. The report displays dynamic lookup misses separately from unimplemented static imports. GetProcAddress still returns NULL with ERROR_PROC_NOT_FOUND in these cases.
Claim in #8683. Related to #8271 (mapped D3D12 trace attribution) and #6582 (XErrorReport implementation).
Validation
Windows 11, MSVC 19.44, Windows SDK 10.0.26100. Tested de3d5cc against main 867d922.
AI-assisted implementation and tests with Codex. Validation used synthetic fixtures.