fix(libc): don't walk guest frame pointers when reporting an unhandled exception

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ
This commit is contained in:
Dean Galvin
2026-09-28 14:22:48 +13:00
parent 7656458121
commit eb79f0d412
+1 -2
View File
@@ -240,8 +240,7 @@ void APS5_VABI __cxa_free_exception_nid_postfix(void* object) {
header->unwind.exception_cleanup = Cleanup;
++globals.uncaught;
_Unwind_RaiseException_nid_postfix(&header->unwind);
RawLog("[libc] unhandled exception '%s' thrown from %p (caller %p)\n", type ? type->name() : "?", __builtin_return_address(0),
static_cast<void**>(static_cast<void**>(__builtin_frame_address(0))[0])[1]);
RawLog("[libc] unhandled exception '%s' thrown from %p\n", type ? type->name() : "?", __builtin_return_address(0));
__cxa_begin_catch_nid_postfix(&header->unwind);
InvokeTerminate(header->terminate);
}