[前][次][番号順一覧][スレッド一覧]

ruby-changes:33921

From: nobu <ko1@a...>
Date: Sun, 18 May 2014 17:47:47 +0900 (JST)
Subject: [ruby-changes:33921] nobu:r46002 (trunk): eval_error.c: investigate core dump

nobu	2014-05-18 17:47:41 +0900 (Sun, 18 May 2014)

  New Revision: 46002

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46002

  Log:
    eval_error.c: investigate core dump
    
    * eval_error.c (error_handle): show backtrace at SIGSEGV, to
      investigate core dump in CI.

  Modified files:
    trunk/eval_error.c
Index: eval_error.c
===================================================================
--- eval_error.c	(revision 46001)
+++ eval_error.c	(revision 46002)
@@ -284,7 +284,8 @@ error_handle(int ex) https://github.com/ruby/ruby/blob/trunk/eval_error.c#L284
 	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 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]