SIGILL can raise at stack overflow on Linux too [Bug #18084]

This commit is contained in:
Nobuyoshi Nakada committed 2021-08-18 17:23:27 +09:00
1 parent 574f3af36e
commit 95e7aed82b
1 file changed
+1 -1
Notes: git 2026-07-01 02:29:17 +00:00
+1 -1
View File
@@ -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);