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

ruby-changes:26482

From: tarui <ko1@a...>
Date: Fri, 21 Dec 2012 21:17:17 +0900 (JST)
Subject: [ruby-changes:26482] tarui:r38533 (trunk): * vm_dump.c (rb_vm_bugreport): commentout addr2line call temporarily

tarui	2012-12-21 21:17:03 +0900 (Fri, 21 Dec 2012)

  New Revision: 38533

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

  Log:
    * vm_dump.c (rb_vm_bugreport): commentout addr2line call temporarily
      in order to avoid segv. anyone can fix addr2line?
      [Bug #7597] [ruby-dev:46786]

  Modified files:
    trunk/ChangeLog
    trunk/vm_dump.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38532)
+++ ChangeLog	(revision 38533)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Dec 21 21:12:54 2012  Masaya Tarui  <tarui@r...>
+
+	* vm_dump.c (rb_vm_bugreport): commentout addr2line call temporarily
+	  in order to avoid segv. anyone can fix addr2line?
+	  [Bug #7597] [ruby-dev:46786]
+
 Fri Dec 21 20:38:28 2012  Koichi Sasada  <ko1@a...>
 
 	* iseq.c (Init_ISeq): remove definition of the following methods:
Index: vm_dump.c
===================================================================
--- vm_dump.c	(revision 38532)
+++ vm_dump.c	(revision 38533)
@@ -644,14 +644,15 @@ rb_vm_bugreport(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L644
 	char **syms = backtrace_symbols(trace, n);
 
 	if (syms) {
-#ifdef USE_ELF
-	    rb_dump_backtrace_with_lines(n, trace, syms);
-#else
+/* commentout temporarily. we have to fix addr2line. see [Bug #7597] */
+/* #ifdef USE_ELF */
+/* 	    rb_dump_backtrace_with_lines(n, trace, syms); */
+/* #else */
 	    int i;
 	    for (i=0; i<n; i++) {
 		fprintf(stderr, "%s\n", syms[i]);
 	    }
-#endif
+/* #endif */
 	    free(syms);
 	}
 #elif defined(_WIN32)

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

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