mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:35:53 +01:00
[PR #1757] runtime/test: only release output pointer when SUCCEEDED(hr) in pipeline library host test (TEST-PIPELINE-LIBRARY-HOST-RELEASE) #1769
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1769
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1757
Author: @abnalstlll-byte
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:feat/test-pipeline-library-host-release📝 Commits (2)
e761c3aruntime/test: only release output pointer when SUCCEEDED(hr) in pipeline library host test (TEST-PIPELINE-LIBRARY-HOST-RELEASE)5e4ae90d3d12, test: preserve hr != kFaulted check on Release and guard test with if(MSVC) (TEST-PIPELINE-LIBRARY-HOST-RELEASE)📊 Changes
3 files changed (+40 additions, -7 deletions)
View changed files
📝
runtime/CMakeLists.txt(+8 -6)📝
runtime/test/d3d12_pipeline_library_host_test.cpp(+1 -1)➕
tests/test_d3d12_pipeline_library_host_release.py(+31 -0)📄 Description
Claimed in Issue #1608:
claiming: TEST-PIPELINE-LIBRARY-HOST-RELEASE(https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7160887151).Summary
Resolves the finding by @whoalin1 regarding
d3d12_pipeline_library_hostcrashing with0xc0000409(STATUS_STACK_BUFFER_OVERRUN / fail-fast) on RTX 4070 SUPER and AMD gfx1036 (comment 7156997734).In
runtime/test/d3d12_pipeline_library_host_test.cpp:243:one_steppreviously executed:Calling
Release()on an output pointer whenFAILED(hr)(e.g.E_NOINTERFACEin step 13 "create: as ID3D12Fence" orE_INVALIDARG) violates COM interface conventions. When a driver or host runtime writes an invalid sentinel or uninitialized pointer on failure, invokingRelease()triggers an immediate fail-fast exception (0xc0000409) or access violation that SEH__except (EXCEPTION_EXECUTE_HANDLER)cannot survive.Release()call withSUCCEEDED(hr):tests/test_d3d12_pipeline_library_host_release.py.Verification
python -I tests/test_d3d12_pipeline_library_host_release.py-> 1/1 PASS in 0.000s.python -I scripts/check_no_game_data.py runtime/test/d3d12_pipeline_library_host_test.cpp tests/test_d3d12_pipeline_library_host_release.py-> Clean (0 violations).bcaa13dad.AI-assisted (Claude Code).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.