ruby-changes:37382
From: nobu <ko1@a...>
Date: Sun, 1 Feb 2015 09:29:57 +0900 (JST)
Subject: [ruby-changes:37382] nobu:r49463 (trunk): signal.c: SIGBUS by stack overflow on Funtoo
nobu 2015-02-01 09:29:02 +0900 (Sun, 01 Feb 2015) New Revision: 49463 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49463 Log: signal.c: SIGBUS by stack overflow on Funtoo * signal.c (sigbus): seems that Funtoo Linux also delivers SIGBUS at stack overflow. Modified files: trunk/signal.c Index: signal.c =================================================================== --- signal.c (revision 49462) +++ signal.c (revision 49463) @@ -848,7 +848,8 @@ sigbus(int sig SIGINFO_ARG) https://github.com/ruby/ruby/blob/trunk/signal.c#L848 * 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/