From b965da9a9f4dbf98bafc3aeee7139a83fb9633ae Mon Sep 17 00:00:00 2001 From: Jonghyun Park Date: Tue, 6 Dec 2016 09:37:41 +0900 Subject: [PATCH] Add UnhandledExceptionHandlerUnix Stub (dotnet/coreclr#8425) FuncEvalHijack in dbghelpers.S uses UnhandledExceptionHandlerUnix as a personality routine, but UnhandledExceptionHandlerUnix is not avaiable for x86 (UnhandledExceptionHandlerUnix is available only when WIN64EXCEPTIONS which is not defined for x86). This commit adds UnhandledExceptionHandlerUnix to fix dangling reference. Commit migrated from https://github.com/dotnet/coreclr/commit/4e21d57d09174addc4900b64a23d15b3b62de02d --- src/coreclr/src/vm/i386/unixstubs.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/coreclr/src/vm/i386/unixstubs.cpp b/src/coreclr/src/vm/i386/unixstubs.cpp index 80ea40ab33c0d..7804a0614736c 100644 --- a/src/coreclr/src/vm/i386/unixstubs.cpp +++ b/src/coreclr/src/vm/i386/unixstubs.cpp @@ -87,6 +87,19 @@ extern "C" void STDCALL JIT_ProfilerEnterLeaveTailcallStub(UINT_PTR ProfilerHandle) { } + + _Unwind_Reason_Code + UnhandledExceptionHandlerUnix( + IN int version, + IN _Unwind_Action action, + IN uint64_t exceptionClass, + IN struct _Unwind_Exception *exception, + IN struct _Unwind_Context *context + ) + { + PORTABILITY_ASSERT("UnhandledExceptionHandlerUnix"); + return _URC_FATAL_PHASE1_ERROR; + } }; VOID __cdecl PopSEHRecords(LPVOID pTargetSP)