mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #2276] runtime: print the call chain of a fatal fault #2280
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#2280
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/2276
Author: @OldSalty
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:fault-stacks📝 Commits (1)
4469914runtime: print the call chain of a fatal fault📊 Changes
4 files changed (+164 additions, -3 deletions)
View changed files
📝
runtime/src/main.cpp(+6 -2)📝
runtime/src/thread_stacks.cpp(+50 -0)📝
runtime/src/thread_stacks.h(+7 -0)📝
runtime/test/thread_stacks_test.cpp(+101 -1)📄 Description
A run that ends in an exception nothing handles saves the session pipeline cache but says nothing about where the fault was: the log has
unhandled exception 0xc0000005and no call chain, so a fault in the title or one of its DLLs stays a guess. This prints the fault and the threads' call chains before the caches are written.Item: none listed yet -- claimed in #1608 (see the comment linked below).
[rt] fault fatal: read of 0xf at <module>+0x...), or the exception code otherwise, with the module named by the sameshims::module_offsetthe other traces use.LEONIDA_STACKSsnapshot (snapshot_threads), so what the title's worker pool and the compile pool were doing at the fault lands in the same log.thread_stacks_testgains a guarded null read with stderr redirected to a temp file: the fault line names the access and the instruction, frame #0 is that same instruction, the chain unwinds out of the function the fault happened in to the function that called it, and the other threads are snapshotted. 19 checks, no game data.thread_stacks_teston Windows (RelWithDebInfo).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.