1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

This commit is contained in:
Nobuyoshi Nakada 2021-08-18 14:11:34 +09:00
parent 574f3af36e
commit 95e7aed82b
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2021-08-18 18:18:53 +09:00

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);