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:
parent
574f3af36e
commit
95e7aed82b
Notes:
git
2021-08-18 18:18:53 +09:00
1 changed files with 1 additions and 1 deletions
2
signal.c
2
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);
|
||||
|
|
Loading…
Reference in a new issue