summaryrefslogtreecommitdiff
path: root/eval_error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 08:47:41 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 08:47:41 +0000
commit0e8574f5bda308d750e34c5d28286c2992667833 (patch)
treea287617aa3f23b289773057ef18f458cae38c880 /eval_error.c
parentbd4fdb714ff6cf3d42d5a7e6597e83cbe4de65b8 (diff)
eval_error.c: investigate core dump
* eval_error.c (error_handle): show backtrace at SIGSEGV, to investigate core dump in CI. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval_error.c')
-rw-r--r--eval_error.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eval_error.c b/eval_error.c
index 2ce6612..c6a1252 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -284,7 +284,8 @@ error_handle(int ex)
if (rb_obj_is_kind_of(errinfo, rb_eSystemExit)) {
status = sysexit_status(errinfo);
}
- else if (rb_obj_is_instance_of(errinfo, rb_eSignal)) {
+ else if (rb_obj_is_instance_of(errinfo, rb_eSignal) &&
+ rb_iv_get(errinfo, "signo") != INT2FIX(SIGSEGV)) {
/* no message when exiting by signal */
}
else {