summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-01 00:29:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-01 00:29:02 +0000
commit0f7bd5738b18cbef722787d487c38c6631c598d7 (patch)
tree5bb7b608b4845abf45652cf653b2237be9db39d4
parent8f02de20502c491a8df636e1bce614ce1e8cd1c5 (diff)
downloadruby-0f7bd5738b18cbef722787d487c38c6631c598d7.tar.gz
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/trunk@49463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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);