[Bug #3370] test failure of drb

Bug #3370: test failure of drb
http://redmine.ruby-lang.org/issues/show/3370

e$B5/I<<Te(B: Usaku NAKAMURA
e$B%9%F!<%?%9e(B: Assigned, e$BM%@hEYe(B: Normal
e$BC4Ev<Te(B: Masatoshi Seki, e$B%+%F%4%je(B: lib, Target version: 1.9.2
ruby -v: ruby 1.9.3dev (2010-05-31 trunk 28103) [i386-mswin32]

Windowse$B$G!“e(Bdrbe$B$N%F%9%H$,0J2<$N$h$&$Ke(B1e$B7o$@$1<:GT$7$^$9!#e(B
e$B$A$J$$K%a%C%;!<%8$NCf?H$Oe(B
e$B!V4{B8$N@\B3$O%j%b!<%He(B e$B%[%9%H$K6/@)E*$K@ZCG$5$l$^$7$?!#!We(B
e$B$G$9!#e(B
e$B$3$N%F%9%H$,$J$s$Ge(BArgumentErrore$B$K$J$k$3$H$,4|BT$5$l$k$N$+e(B
e$B$9$i$h$/$o$+$i$J$$$H$$$&%l%Y%k$J$N$G!"Js9p$N$
$G$9!#e(B
e$B$9$_$^$;$s!#e(B
e$B2?$+D4::$9$Y$-$3$H$,$”$C$?$i65$($F$/$@$5$$!#e(B

  1. Failure:
    test_04_many_arg(TestDRbLarge) [C:/trunk/test/drb/test_drb.rb:286]:
    [ArgumentError] exception expected, not
    Class: DRb::DRbConnError
    Message:
    <“\x8A\xF9\x91\xB6\x82\xCC\x90\xDA\x91\xB1\x82\xCD\x83\x8A\x83\x82\x81[\x83g
    \x83z\x83X\x83g\x82\xC9\x8B\xAD\x90\xA7\x93I\x82\xC9\x90\xD8\x92f\x82\xB3\x82\xEA\x82\xDC\x82\xB5\x82\xBD\x81B”>
    —Backtrace—
    C:/trunk/test/drb/test_drb.rb:287:in block in test_04_many_arg' C:/trunk/test/drb/test_drb.rb:286:in test_04_many_arg’

50 tests, 279 assertions, 1 failures, 0 errors, 0 skips

e$B31$H$$$$$^$9!#e(B

On 2010/05/31, at 15:11, Usaku NAKAMURA wrote:

e$B!V4{B8$N@\B3$O%j%b!<%He(B e$B%[%9%H$K6/@)E*$K@ZCG$5$l$^$7$?!#!We(B
Message: <"\x8A\xF9\x91\xB6\x82\xCC\x90\xDA\x91\xB1\x82\xCD\x83\x8A\x83\x82\x81[\x83g \x83z\x83X\x83g\x82\xC9\x8B\xAD\x90\xA7\x93I\x82\xC9\x90\xD8\x92f\x82\xB3\x82\xEA\x82\xDC\x82\xB5\x82\xBD\x81B">
—Backtrace—
C:/trunk/test/drb/test_drb.rb:287:in block in test_04_many_arg' C:/trunk/test/drb/test_drb.rb:286:intest_04_many_arg’

e$B1s$$@N$N$3$H$J$N$G5-21$,$"$d$U$d$G$9!#e(B

dRubye$B$G$O%5!<%PB&$G!"e(BRMIe$B$N:]$N%a%C%;!<%8$N%5%$%:$d0z?t$N?t$K>e8B$re(B
e$B@Dj$G$-$k$s$G$9$,!"7o$N%F%9%H$O$=$N>e8B$rD6$($k$H$-$N%F%9%H$$?$$e(B
e$B$G$9!#e(B

e$B$b$7$+$7$F!“e(BArgumentErrore$B$N%9!<%Q!<%/%i%9$H$+JQ99$”$j$^$7$?$C$1!)e(B

e$B31$H$$$$$^$9!#e(B

On 2010/05/31, at 15:11, Usaku NAKAMURA wrote:

e$B!V4{B8$N@\B3$O%j%b!<%He(B e$B%[%9%H$K6/@)E*$K@ZCG$5$l$^$7$?!#!We(B
e$B$G$9!#e(B
e$B$3$N%F%9%H$,$J$s$Ge(BArgumentErrore$B$K$J$k$3$H$,4|BT$5$l$k$N$+e(B
e$B$9$i$h$/$o$+$i$J$$$H$$$&%l%Y%k$J$N$G!“Js9p$N$$G$9!#e(B
e$B$9$
$^$;$s!#e(B
e$B2?$+D4::$9$Y$-$3$H$,$”$C$?$i65$($F$/$@$5$$!#e(B

e$B0BDj$7$F$$$D$b<:GT$7$^$9$+!)e(B

cliente$B$+$iAw$C$?%a%C%;!<%8$rA4$FFI$_@Z$kA0$K!“e(B
e$BNc30>pJs$rJV?.$7!”$=$N8e%=%1%C%H$re(Bclosee$B$9$k$3$He(B
e$B$,$"$k$h$&$J5$$,$7$F$-$^$7$?!#e(B

e$B$=$&$7$?$ie(BDRb::DRbConnErrore$B$K$J$C$?$j$9$k$N$+$J$"!#e(B

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:41505] Re: [Bug #3370] test failure of drb”
on Jun.02,2010 09:13:49, [email protected] wrote:

e$B0BDj$7$F$$$D$b<:GT$7$^$9$+!)e(B

e$B;d$N<j85$G$O:F8=N(e(B100%e$B$G$9!#e(B
e$B4D6-$K0MB8$9$k2DG=@-$O$“$j$^$9$,!”$^$@3NG’$G$-$F$$$^$;$s!#e(B

100%e$B$@$H;W$C$F$$$?$N$G$9$,!“5)[email protected]$9$k$3$H$,$”$k$H$$$&$3$He(B
e$B$r:#H/8+$7$^$7$?!*e(B

e$B%?%$%_%s%0!"$G$9$+$Me(B?

e$B$=$l$G$O!#e(B

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

In message “[ruby-dev:41500] Re: [Bug #3370] test failure of drb”
on Jun.01,2010 23:33:26, [email protected] wrote:

e$B2?$+D4::$9$Y$-$3$H$,$"$C$?$i65$($F$/$@$5$$!#e(B

e$B0BDj$7$F$$$D$b<:GT$7$^$9$+!)e(B

e$B;d$N<j85$G$O:F8=N(e(B100%e$B$G$9!#e(B
e$B4D6-$K0MB8$9$k2DG=@-$O$“$j$^$9$,!”$^$@3NG’$G$-$F$$$^$;$s!#e(B

e$B$=$l$G$O!#e(B

e$B31$H$$$$$^$9!#e(B

On 2010/06/02, at 17:02, U.Nakamura wrote:

e$B$r:#H/8+$7$^$7$?!*e(B

e$B%?%$%_%s%0!"$G$9$+$Me(B?

e$B$($H!";d$b=P$9J}K!$,$o$+$j$^$7$?!#e(B
e$B7kO@$+$i8@$&$H!"e(BDRbConnErrore$B$,$$$D$bJV$k$h$&$KJQ99$7$?$$$+$b!#e(B

e$B<!$N$h$&$KJQ99$9$k$H:F8=$5$;$i$l$^$9!#e(B
e$B$*$=$i$/!"%/%i%$%"%s%H$,MW5a$rA4$FAw$j$-$kA0$K%5!<%P$,e(B
e$B>e8B$r%A%’%C%/$7$F!"%(%i!<$rJV$7!"@ZCG$9$k%1!<%9$Ge(B
e$B%/%i%$%"%s%H$,e(Bwritee$B$K<:GT$7$Fe(BDRbConnErrore$B$K$J$kM=46!#e(B

e$B$b$&$A$g$C$HD4$Y$^$9!#e(B

Index: test_drb.rb

— test_drb.rb (revision 28118)
+++ test_drb.rb (working copy)
@@ -284,6 +284,8 @@

def test_04_many_arg
assert_raise(ArgumentError) {

  •  arg = Array.new(2000)
    
  •  @there.arg_test(*arg)
     @there.arg_test(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
    
    }
    end

e$B31$H$$$$$^$9!#e(B

e$B$b$&$A$g$C$HD4$Y$^$9!#e(B

e$B$$$:$l$K$7$F$be(BDRbConnErrore$B$rJV$9$h$&$K=$@5$7$h$&$H;W$$$^$9!#e(B
e$B30It;EMMe(B(?)e$BJQ$o$C$A$c$&$1$I!"$^$:$$$+$J$"!#e(B

e$BNc30$N%a%C%;!<%8$Oe(B"too many arguments"e$B$K$J$k$+$J$i$J$$$N$+e(B
e$B$O%?%$%_%s%0$7$@$$$@$1$Ie(Bteste$B$K$J$$$+$i$$$$$N$+e(B!?

Index: lib/drb/drb.rb

— lib/drb/drb.rb (revision 28157)
+++ lib/drb/drb.rb (working copy)
@@ -613,7 +613,7 @@
ro = DRb.to_obj(ref)
msg = load(stream)
argc = load(stream)

  •  raise ArgumentError, 'too many arguments' if @argc_limit < argc
    
  •  raise(DRbConnError, "too many arguments") if @argc_limit < argc
     argv = Array.new(argc, nil)
     argc.times do |n|
    

    argv[n] = load(stream)
    Index: test/drb/test_drb.rb
    ===================================================================
    — test/drb/test_drb.rb (revision 28157)
    +++ test/drb/test_drb.rb (working copy)
    @@ -283,7 +283,7 @@
    end

    def test_04_many_arg

  • assert_raise(ArgumentError) {
  • assert_raise(DRb::DRbConnError) {
    @there.arg_test(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
    }
    end
    Index: test/drb/drbtest.rb
    ===================================================================
    — test/drb/drbtest.rb (revision 28157)
    +++ test/drb/drbtest.rb (working copy)
    @@ -135,7 +135,7 @@

def test_03
assert_equal(8, @there.sum(1, 1, 1, 1, 1, 1, 1, 1))

  • assert_raise(ArgumentError) do
  • assert_raise(DRb::DRbConnError) do
    @there.sum(1, 1, 1, 1, 1, 1, 1, 1, 1)
    end
    assert_raise(DRb::DRbConnError) do

e$B%A%1%C%He(B #3370 e$B$,99?7$5$l$^$7$?!#e(B (by Masatoshi Seki)

e$B%9%F!<%?%9e(B Assignede$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

This issue was solved with changeset r28316.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


http://redmine.ruby-lang.org/issues/show/3370