summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-06 11:34:37 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-06 11:34:37 +0000
commite4bb7513f73ad554bfcd15108d02168a50bc5d9f (patch)
tree0480dbc29b5a214fe78c183e7f89064be75c4ad7 /signal.c
parent1ba0c2594b0f5e9c9527c0da1ba90a9aa06230dc (diff)
merge revision(s) 49463: [Backport #10814]
signal.c: SIGBUS by stack overflow on Funtoo * signal.c (sigbus): seems that Funtoo Linux also delivers SIGBUS at stack overflow. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@49530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index 30769c164d..dcce2b2f2d 100644
--- a/signal.c
+++ b/signal.c
@@ -848,7 +848,8 @@ sigbus(int sig SIGINFO_ARG)
* and it's delivered as SIGBUS instead of SIGSEGV to userland. It's crazy
* wrong IMHO. but anyway we have to care it. Sigh.
*/
-#if defined __APPLE__
+ /* Seems Linux also delivers SIGBUS. */
+#if defined __APPLE__ || defined __linux__
CHECK_STACK_OVERFLOW();
#endif
rb_bug_context(SIGINFO_CTX, "Bus Error" MESSAGE_FAULT_ADDRESS);