Attribute host-exception pc to module and print guest stack #1182
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1182
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1182/head"
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?
@baz947 on GitHub · 2026-10-08 02:30 UTC · original
baz947:fix/1070-fault-module-attribution→main· +10 −0 · 1 files · 1 commits · closed without mergingRefs #1070 (Astro Bot Linux host exception).
The host-exception report had registers/code/stack but no module attribution
and no guest unwind, although StackTrace() and FindProgramByAddr() already
exist for exactly this. The handler now prints module+offset for the fault
pc and the guest stack trace before EXIT, reusing those helpers.
Diagnostic-only: report path only, same termination behavior.
@coderabbitai[bot] on GitHub · 2026-10-08 02:33 UTC · original
📝 Walkthrough
Walkthrough
The host exception handler now reports the faulting module’s filename and base-relative offset when the address belongs to a loaded program. Otherwise, it reports
module: ???. When aRuntimeLinkerinstance is available, the handler also logs a stack trace using the exception’s frame and stack pointers.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: 🔵 Low · up to
886f6Some host-exception reports can omit the guest trace from stdout in File or Silent logging modes, limiting debugging. This is a bounded diagnostic gap, not a change to guest termination behavior.
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-08 02:33 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
8b592e7f-595b-4899-9577-f8982e6693f6📥 Commits
Reviewing files that changed from the base of the PR and between
5a8808086aand886f6532fc.📒 Files selected for processing (1)
src/loader/runtimeLinker.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.
@ -715,0 +720,4 @@} else {std::printf("module: ???\n");}linker->StackTrace(info->rbp, info->rsp);@coderabbitai[bot] on GitHub · 2026-10-08 02:33 UTC · original
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 20323
Send the guest stack trace to the fault report output.
StackTrace()usesLOGF, which resolves toLog::Write(...). The surrounding fault report usesstd::printf, so the guest stack trace may not appear in the report output whenLog::Writetargets only the logger or file. Use the same console-and-log path as the surrounding report, or otherwise ensure that the trace is written to its output stream.Pull request closed