From e44526055a7b70af3fc508aa2d872b9a089a1fd2 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Thu, 30 Jan 2025 16:08:37 +0100 Subject: [PATCH] Move the diagnostic print for stack overflow test failure This is an update of the temporary logging for stack overflow test failure investigation, based on what the previous logging has shown in the CI tests. --- src/coreclr/pal/src/exception/signal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coreclr/pal/src/exception/signal.cpp b/src/coreclr/pal/src/exception/signal.cpp index 6f85f904fad4ce..aa727a6f07b39b 100644 --- a/src/coreclr/pal/src/exception/signal.cpp +++ b/src/coreclr/pal/src/exception/signal.cpp @@ -615,7 +615,7 @@ static bool SwitchStackAndExecuteHandler(int code, siginfo_t *siginfo, void *con // Temporary locals to debug issue https://github.com/dotnet/runtime/issues/110173 static SIZE_T stackOverflowThreadId = -1; static const char StackOverflowOnTheSameThreadMessage[] = "Stack overflow occurred on the same thread again!\n"; -static const char StackOverflowHandlerReturnedMessage[] = "Stack overflow handler has returned!\n"; +static const char StackOverflowHandlerReturnedMessage[] = "Stack overflow handler has returned, invoking previous action!\n"; // /*++ @@ -669,9 +669,9 @@ static void sigsegv_handler(int code, siginfo_t *siginfo, void *context) if (SwitchStackAndExecuteHandler(code | StackOverflowFlag, siginfo, context, (size_t)handlerStackTop)) { - (void)!write(STDERR_FILENO, StackOverflowHandlerReturnedMessage, sizeof(StackOverflowHandlerReturnedMessage) - 1); PROCAbort(SIGSEGV, siginfo); } + (void)!write(STDERR_FILENO, StackOverflowHandlerReturnedMessage, sizeof(StackOverflowHandlerReturnedMessage) - 1); } else {