ruby-changes:34713
From: nobu <ko1@a...>
Date: Sun, 13 Jul 2014 10:56:44 +0900 (JST)
Subject: [ruby-changes:34713] nobu:r46796 (trunk): configure.in: exit with failure
nobu 2014-07-13 10:56:27 +0900 (Sun, 13 Jul 2014) New Revision: 46796 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46796 Log: configure.in: exit with failure * configure.in (rb_cv_broken_backtrace): exit with failure normally, no needs to abort. [ruby-core:63678] [Bug #10008] Modified files: trunk/ChangeLog trunk/configure.in Index: configure.in =================================================================== --- configure.in (revision 46795) +++ configure.in (revision 46796) @@ -3050,24 +3050,25 @@ void sigsegv(int signum, siginfo_t *info https://github.com/ruby/ruby/blob/trunk/configure.in#L3050 if (n > 0) { /*fprintf(stdout, "backtrace:%d\n",n);*/ } else { - abort(); + _exit(EXIT_FAILURE); } - _exit(0); + _exit(EXIT_SUCCESS); } int -main() +main(void) { + volatile int *a = NULL; stack_t ss; ss.ss_sp = malloc(SIGSTKSZ); if (ss.ss_sp == NULL) { fprintf(stderr, "cannot allocate memory for sigaltstack\n"); - abort(); + return EXIT_FAILURE; } ss.ss_size = SIGSTKSZ; ss.ss_flags = 0; if (sigaltstack(&ss, NULL) == -1) { fprintf(stderr, "sigaltstack failed\n"); - abort(); + return EXIT_FAILURE; } struct sigaction sa; memset(&sa, 0, sizeof(struct sigaction)); @@ -3076,9 +3077,8 @@ main() https://github.com/ruby/ruby/blob/trunk/configure.in#L3077 sa.sa_flags |= SA_SIGINFO; sa.sa_flags |= SA_ONSTACK; sigaction(SIGSEGV, &sa, NULL); - int *a = NULL; a[0] = 1; - return 0; + return EXIT_SUCCESS; } ], rb_cv_broken_backtrace=no, Index: ChangeLog =================================================================== --- ChangeLog (revision 46795) +++ ChangeLog (revision 46796) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Jul 13 10:56:26 2014 Nobuyoshi Nakada <nobu@r...> + + * configure.in (rb_cv_broken_backtrace): exit with failure + normally, no needs to abort. [ruby-core:63678] [Bug #10008] + Sat Jul 12 15:10:22 2014 Masaki Suketa <masaki.suketa@n...> * ext/win32ole/win32ole.c (fole_record_method_missing): correct -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/