mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #1918] d3d12: the device-fault report names what the process and the driver had at each fault address (RT-FAULT-ADDRESS-OWNER) #1926
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#1926
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/1918
Author: @kawaii-shakal
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fault-address-owner📝 Commits (5)
ae0a3d0d3d12: the device-fault report names what the process and the driver had at each fault address (RT-FAULT-ADDRESS-OWNER)2239135address binding: destroy the debug messenger before its instancec626cb2Merge upstream main into fault-address-owner8ff0a16address_binding: review fixes for RT-FAULT-ADDRESS-OWNER51174c6Merge upstream main into fault-address-owner📊 Changes
6 files changed (+623 additions, -1 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+21 -0)📝
runtime/CMakeLists.txt(+4 -0)📝
runtime/shims/d3d12_vulkan_device.cpp(+9 -1)➕
runtime/src/address_binding.h(+303 -0)📝
runtime/src/vulkan_device_fault.h(+21 -0)➕
runtime/test/address_binding_test.cpp(+265 -0)📄 Description
Claimed in the coordination issue as RT-FAULT-ADDRESS-OWNER: https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7167314476
Problem
A device-fault report gives an address, its type and its precision, but not whose page it is. For the world-start WRITE_INVALID in #1608 several of us have been guessing: an untranslated title address, a raw CPU pointer, an object bound one page short, or driver-internal memory. Without an owner, nothing separates these guesses.
Change
For every fault address in the report:
What the process has at the same number (Windows).
VirtualQuerygives the base, allocation base, state, protection and type. A GPU address isn't a CPU one, but a host import, a range of the title's memory and a raw CPU pointer that reached a shader all share the number.With
LEONIDA_ADDRESS_BINDINGS=1(andLEONIDA_DEVICE_FAULT=1). The device enablesVK_EXT_device_address_binding_report. A debug messenger, installed beforevkCreateDevice, records the GPU virtual address range of every buffer, image and allocation the driver binds and unbinds (runtime/src/address_binding.h). The report then lists:"Nothing live or recently unbound there" means that no object of this device had that GPU address.
The record and the report are pure and covered by
address_binding_test: synthetic bindings, the messenger callback, and the feature and extension on the device chain.docs/d3d12_vulkan.md4.11 describes them.Measured (Windows 11 Pro 26300, RTX 5070 Ti, NVIDIA 617.42, 1.0.2.1 retail boot)
PAGE_READWRITEprivate page of this process, outside everyxmem-largeallocation of the title. Codex reads the same numbers as the arena base plus an untranslated title address (0x299fe000into one 2,199 MiB XMem range in three boots). After main's #1723 that loss no longer happens here (a different stop, about 820 s in).address_bindingandvulkan_device_faultpass.Not done here
vkSetDebugUtilsObjectNameEXTpass over the layer's objects.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.