[#23332] to_str再考 — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

15 messages 2004/04/05

[#23380] [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp>

山本です。

17 messages 2004/04/15
[#23400] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。落ちる場所がわかりました。

[#23402] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23403] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — nobu.nakada@... 2004/04/16

なかだです。

[#23405] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[#23407] Re: [SEGV] make test-all (bccwin32 ruby1.9.0) — "H.Yamamoto" <ocean@...2.ccsnet.ne.jp> 2004/04/16

山本です。

[ruby-dev:23394] drb test failure due to multiple value class

From: nobu.nakada@...
Date: 2004-04-16 01:05:26 UTC
List: ruby-dev #23394
なかだです。

多値のクラスがArrayからValuesに変わったために、drbのテストが失
敗しています。

とりあえずこんなところではないかと思うんですが。



* lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform): multiple
  value class changed.

* lib/drb/invokemethod.rb (DRb::DRbServer::InvokeMethod18Mixin::block_yield):
  ditto.


Index: lib/drb/drb.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/lib/drb/drb.rb,v
retrieving revision 1.16
diff -U2 -p -d -r1.16 drb.rb
--- lib/drb/drb.rb	18 Mar 2004 10:09:43 -0000	1.16
+++ lib/drb/drb.rb	15 Apr 2004 04:54:46 -0000
@@ -594,5 +594,5 @@ module DRb
       argc = load(stream)
       raise ArgumentError, 'too many arguments' if @argc_limit < argc
-      argv = Array.new(argc, nil)
+      argv = Values.new(argc, nil)
       argc.times do |n|
 	argv[n] = load(stream)
@@ -1393,5 +1393,5 @@ module DRb
         end
 	@succ = true
-	if @msg_id == :to_ary && @result.class == Array
+	if @msg_id == :to_ary && @result.class == Values
 	  @result = DRbArray.new(@result) 
 	end
Index: lib/drb/invokemethod.rb
===================================================================
RCS file: /cvs/ruby/src/ruby/lib/drb/invokemethod.rb,v
retrieving revision 1.3
diff -U2 -p -d -r1.3 invokemethod.rb
--- lib/drb/invokemethod.rb	30 Oct 2003 14:43:03 -0000	1.3
+++ lib/drb/invokemethod.rb	15 Apr 2004 04:06:01 -0000
@@ -5,5 +5,5 @@ module DRb
     module InvokeMethod18Mixin
       def block_yield(x)
-	if x.size == 1 && x[0].class == Array
+	if x.size == 1 && x[0].class == Values
 	  x[0] = DRbArray.new(x[0])
 	end


-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread

Prev Next