From eb79f0d41240adb98027b898556c50577e61dca2 Mon Sep 17 00:00:00 2001 From: Dean Galvin Date: Mon, 28 Sep 2026 14:22:48 +1300 Subject: [PATCH] fix(libc): don't walk guest frame pointers when reporting an unhandled exception Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01ButHENCbXXt8h4EZuWUabJ --- core/libs/prx/libc/src/exception/Runtime.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/libs/prx/libc/src/exception/Runtime.cpp b/core/libs/prx/libc/src/exception/Runtime.cpp index 411edbf91..244bc1f6f 100644 --- a/core/libs/prx/libc/src/exception/Runtime.cpp +++ b/core/libs/prx/libc/src/exception/Runtime.cpp @@ -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(static_cast(__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); }