ruby-changes:14603
From: kazu <ko1@a...>
Date: Wed, 27 Jan 2010 23:25:48 +0900 (JST)
Subject: [ruby-changes:14603] Ruby:r26447 (trunk): * vm_dump.c (bugreport_backtrace): trivial change.
kazu 2010-01-27 23:25:27 +0900 (Wed, 27 Jan 2010) New Revision: 26447 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26447 Log: * vm_dump.c (bugreport_backtrace): trivial change. * vm_dump.c (rb_vm_bugreport): uninitialized local variable i. * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): follow above change. Modified files: trunk/ChangeLog trunk/test/ruby/test_rubyoptions.rb trunk/vm_dump.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26446) +++ ChangeLog (revision 26447) @@ -1,3 +1,12 @@ +Wed Jan 27 23:22:54 2010 Kazuhiro NISHIYAMA <zn@m...> + + * vm_dump.c (bugreport_backtrace): trivial change. + + * vm_dump.c (rb_vm_bugreport): uninitialized local variable i. + + * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test): + follow above change. + Wed Jan 27 23:20:52 2010 Kazuhiro NISHIYAMA <zn@m...> * test/ruby/test_exception.rb Index: vm_dump.c =================================================================== --- vm_dump.c (revision 26446) +++ vm_dump.c (revision 26447) @@ -571,8 +571,8 @@ bugreport_backtrace(void *arg, VALUE file, int line, VALUE method) { if (!*(int *)arg) { - fprintf(stderr, "-- Ruby level backtrace information" - "-----------------------------------------\n"); + fprintf(stderr, "-- Ruby level backtrace information " + "----------------------------------------\n"); *(int *)arg = 1; } fprintf(stderr, "%s:%d:in `%s'\n", RSTRING_PTR(file), line, RSTRING_PTR(method)); @@ -586,7 +586,7 @@ rb_vm_bugreport(void) { if (GET_THREAD()->vm) { - int i; + int i = 0; SDR(); if (rb_backtrace_each(bugreport_backtrace, &i)) { Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 26446) +++ test/ruby/test_rubyoptions.rb (revision 26447) @@ -333,6 +333,7 @@ --\scontrol\sframe\s----------\n (?:c:.*\n)* ---------------------------\n + --\sRuby\slevel\sbacktrace\sinformation\s----------------------------------------\n -e:1:in\s`<main>'\n -e:1:in\s`kill'\n\n (?: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/