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

ruby-changes:17205

From: nobu <ko1@a...>
Date: Thu, 9 Sep 2010 23:32:46 +0900 (JST)
Subject: [ruby-changes:17205] Ruby:r29205 (trunk): * vm.c (vm_backtrace_each): skip allocator frames which have no

nobu	2010-09-09 23:25:56 +0900 (Thu, 09 Sep 2010)

  New Revision: 29205

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

  Log:
    * vm.c (vm_backtrace_each): skip allocator frames which have no
      name.  [ruby-core:32231]

  Modified files:
    trunk/ChangeLog
    trunk/test/digest/test_digest.rb
    trunk/vm.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29204)
+++ ChangeLog	(revision 29205)
@@ -1,3 +1,8 @@
+Thu Sep  9 23:25:53 2010  Nobuyoshi Nakada  <nobu@r...>
+
+	* vm.c (vm_backtrace_each): skip allocator frames which have no
+	  name.  [ruby-core:32231]
+
 Thu Sep  9 22:39:08 2010  Tanaka Akira  <akr@f...>
 
 	* ext/pathname/pathname.c (path_size): Pathname#size translated from
Index: vm.c
===================================================================
--- vm.c	(revision 29204)
+++ vm.c	(revision 29205)
@@ -741,7 +741,8 @@
 		id = cfp->me->def->original_id;
 	    else
 		id = cfp->me->called_id;
-	    if ((*iter)(arg, file, line_no, rb_id2str(id))) break;
+	    if (id != ID_ALLOCATOR && (*iter)(arg, file, line_no, rb_id2str(id)))
+		break;
 	}
 	cfp = RUBY_VM_NEXT_CONTROL_FRAME(cfp);
     }
Index: test/digest/test_digest.rb
===================================================================
--- test/digest/test_digest.rb	(revision 29204)
+++ test/digest/test_digest.rb	(revision 29205)
@@ -125,4 +125,11 @@
       Data2 => "12a053384a9c0c88e405a06c27dcf49ada62eb2b",
     }
   end if defined?(Digest::RMD160)
+
+  class TestBase < Test::Unit::TestCase
+    def test_base
+      bug3810 = '[ruby-core:32231]'
+      assert_raise(NotImplementedError, bug3810) {Digest::Base.new}
+    end
+  end
 end

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

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