From 7cfbdc8fdba9561bb0145fa8f685733811f46f97 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 14 Mar 2014 09:50:10 -0600 Subject: [PATCH] call crash if the signal handler is unable to handle the signal Otherwise, the OS will just keep asking us to handle the signal in an infinite loop. --- src/system/posix/signal.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/system/posix/signal.cpp b/src/system/posix/signal.cpp index bd4581697d..07d013372d 100644 --- a/src/system/posix/signal.cpp +++ b/src/system/posix/signal.cpp @@ -140,6 +140,8 @@ void handleSignal(int signal, siginfo_t*, void* context) pthread_sigmask(SIG_UNBLOCK, &set, 0); vmJump(ip, frame, stack, thread, 0, 0); + } else { + crash(); } } break;