mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
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#1839
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/1828
Author: @potatoe0100
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:carry/old-7189📝 Commits (4)
cd88535startup trace: a call through a null pointer names its caller07af9e2registry: no module lookup for an address in the null page22effa8startup trace: a null transfer is attributed to a call only when the call is provenea67094startup_trace_test: find the null transfers by their faulting address, not a runs entry📊 Changes
4 files changed (+170 additions, -5 deletions)
View changed files
📝
runtime/README.md(+1 -1)📝
runtime/shims/registry.cpp(+4 -1)📝
runtime/shims/startup_trace.h(+81 -3)📝
runtime/test/startup_trace_test.cpp(+84 -0)📄 Description
Claimed in the coordination issue as: OLD-7189 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7162808978)
What and why
Carries forward
old-pr/7189(draft #41) by @rafaelpssz, rebased onmain0d80bc5dfwith the author's three commits unchanged in content. An access violation at a null-page address is a fetch fault with nothing to unwind from, so the startup trace now names who got there:null_call_fromwhen the instruction before the top-of-stack frame is an indirect call whose operand, with the fault's registers, is the faulting address, otherwisenull_transfer_return(a tail jump).registryskips the module lookup below 0x10000, so a fault at 0 is0x0under Wine too. This helps world-start debugging, where null calls show up in the trace.Rebase notes:
runtime/shims/startup_trace.hconflicted withmain's register dump (regs), thetls_index0event anddump_transient_pool. Kept all ofmain's, put the null-transfer handling afterregs(on the sameCONTEXTcopy, soregsstill shows the registers at the fault), and renumbered the example events in the header comment.startup_trace_testlooked for null transfers with"at":"0x0"anywhere in the line, andmain'srunsentries also carry"at":"0x0", so the read fault inside the image matched as a fifth null transfer. It now matches"at":"0x0","access".Supersedes draft #41 (its branch can be deleted once this lands).
Tested
VS 2022 (MSVC 19.44) RelWithDebInfo + Ninja, Vulkan SDK 1.4.363.0.
startup_trace_test: 43 checks, 0 failed (9 failed before the test fix above, all from the extra match).ctest -j 6: 415 tests, all pass.xmem,xmem_*andxs_proxy_mockfailed once while three other builds ran at the same time and pass 3 of 3 on their own.GPUs tested: NVIDIA GeForce RTX 4060, driver 621.14, Windows 11 Pro 26H2 (build 26300)
AI-assisted: yes (Claude Code), by a non-developer tester.
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.