fix(libc): don't walk guest frame pointers when reporting an unhandled exception #52
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/52"
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?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-09-28T01:24:50Z.
What
When
_Unwind_RaiseExceptionreturns without finding a handler,__cxa_throwlogs the caller by walking one frame-pointer link. Guest code is built without frame pointers, sorbpholds arbitrary data, and the log itself segfaults (e.g. reading0xc8000008). That hides the real error, which in my case was astd::invalid_argumentthrown byMapAligned.How
Only log
__builtin_return_address(0), which doesn't depend on the guest's frames. After the fix, the log prints the exception type and the terminate handler printswhat().