aboutsummaryrefslogtreecommitdiffstats
path: root/signal.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-18 14:11:34 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-08-18 17:23:27 +0900
commit95e7aed82bb2b6ce5268a78d38d51cb6db7f044d (patch)
tree62f623f423509638853cf794bda67f90410a2b6a /signal.c
parent574f3af36ea008896419d2e2407f8fce83bdcd2e (diff)
downloadruby-95e7aed82bb2b6ce5268a78d38d51cb6db7f044d.tar.gz
SIGILL can raise at stack overflow on Linux too [Bug #18084]
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index dd05e8270e..764031e78a 100644
--- a/signal.c
+++ b/signal.c
@@ -971,7 +971,7 @@ static void
sigill(int sig SIGINFO_ARG)
{
check_reserved_signal("ILL");
-#if defined __APPLE__
+#if defined __APPLE__ || defined __linux__
CHECK_STACK_OVERFLOW();
#endif
rb_bug_for_fatal_signal(default_sigill_handler, sig, SIGINFO_CTX, "Illegal instruction" MESSAGE_FAULT_ADDRESS);