Socket related errors on chkbuild

$B!!$5$5$@$G$9!%(B

http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/recent.html
$B$r8+$F$$$k$H!$(Bsocket
$B2s$j$G%(%i!<$,=P$F$$$k$h$&$J$N$G$9$,!$2?$+$o$+$k$G(B
$B$7$g$&$+!%(B

  1. Error:
    test_write_nonblock(OpenSSL::TestPair):
    OpenSSL::SSL::SSLError: SSL_read:: bad write retry

/home/akr/chkbuild/tmp/build/ruby-trunk/20110630T100400Z/ruby/.ext/common/openssl/buffering.rb:53:in
`sysread’

  1. Failure:
    test_accept_loop_with_unix(TestSocket)
    [/home/akr/chkbuild/tmp/build/ruby-trunk/20110630T100400Z/ruby/test/socket/test_socket.rb:192]:
    connect to #<Addrinfo: [::1]:57294 TCP>.
    Exception raised:
    <#<Errno::ETIMEDOUT: Connection timed out - connect(2)>>.

  2. Error:
    test_tcp(TestSocket):
    Errno::ETIMEDOUT: Connection timed out - connect(2)

/home/akr/chkbuild/tmp/build/ruby-trunk/20110630T100400Z/ruby/.ext/common/socket.rb:43:in
`connect’

  1. Error:
    test_udp_server(TestSocket):
    RuntimeError: no response from #<Addrinfo: ::1>

/home/akr/chkbuild/tmp/build/ruby-trunk/20110630T100400Z/ruby/test/socket/test_socket.rb:297:in
`block (3 levels) in test_udp_server’

make $B;~$K<:GT$9$k$N$OD>$7$^$7$?!%(B

$B$G$b!$$3$l$O(B libc user $B$N@UL3$J$s$@$m$&$+(B…$B!%(B

2011$BG/(B6$B7n(B30$BF|(B20:17 SASADA Koichi [email protected]:

http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/recent.html
$B$r8+$F$$$k$H!$(Bsocket $B2s$j$G%(%i!<$,=P$F$$$k$h$&$J$N$G$9$,!$2?$+$o$+$k$G(B
$B$7$g$&$+!%(B

  1. Failure:
    test_accept_loop_with_unix(TestSocket)
  1. Error:
    test_tcp(TestSocket):
  1. Error:
    test_udp_server(TestSocket):

$B$3$l$i$N860x$O(B OS $B$N%Q%1%C%H%U%#%k%?$r5?$C$F$$$?$b$N$N!“(B
$B3N?.$,;}$F$J$/$FJ|$C$F$*$$$?$N$G$9$,!”(B
$B:#F|!“A0ED$5$s$K2q$C$F5?$o$7$$$H$$$&$3$H$rEA$($?$H$3$m!”(B
$BD>$7$F$/$l$^$7$?!#(B

$BD>$C$?$H$-$NJQ2=$,0J2<$G$9!#(B
$B%=!<%9$OJQ$o$C$F$$$^$;$s$,!"<:GT$,>C$($F$$$^$9!#(B
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110716T080501Z.diff.html.gz

$B$?$@$7!"(B

  1. Error:
    test_write_nonblock(OpenSSL::TestPair):

$B$3$l$O860x$,0c$&$h$&$G!"D>$C$F$$$^$;$s!#(B

2011$BG/(B7$B7n(B16$BF|(B23:09 Tanaka A. [email protected]:

  1. Error:
    test_write_nonblock(OpenSSL::TestPair):

$B$3$l$O860x$,0c$&$h$&$G!"D>$C$F$$$^$;$s!#(B

$B$3$l$,5/$-;O$a$?$N$O$=$s$J$K8E$/$J$$$N$G$9$M!#(B
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
$B$+$i$J$s$G$9$,!"(B

+Fri Jun 24 15:54:14 2011 Hiroshi N. [email protected]
+

  •   * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown 
    

SSL

  •     connection more gracefully. Call SSL_shutdown() max 4 times 
    

until it

  •     returns 1 (success). Bi-directional SSL close has several 
    

states but

  •     SSL_shutdown() kicks only 1 transition per call. Max 4 is from
    
  •     mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data 
    

= 4’.

  •     See #4237.
    

$B$H$$$&%3%_%C%H0JMh$N$h$&$G$9!#(B

  •   * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown SSL
    
  •     connection more gracefully. Call SSL_shutdown() max 4 times until it
    
  •     returns 1 (success). Bi-directional SSL close has several states but
    
  •     SSL_shutdown() kicks only 1 transition per call. Max 4 is from
    
  •     mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data = 4'.
    
  •     See #4237.
    

$B$H$$$&%3%_%C%H0JMh$N$h$&$G$9!#(B

$B$H$$$&$3$H$J$i(B regression$B$J$N$GFCJL$JM}M3$,L5$$8B$j(B1.9.3
release$B$^$G$K=$@5MW$H(B
$B;W$$$^$9!#(B

2011$BG/(B7$B7n(B18$BF|(B7:15 Hiroshi N. [email protected]:

$B?eMKF|$K8+$^$9!#$,!":F8=$5$;$k$N$K;~4V$,$+$+$k$+$b$7$l$^$;$s!#<j85$G$O=P$F$J$$$s$G$9$,!"B>$K$3$N%(%i!<=P$F$kJ}$,5o$?$i>pJsDs6!$*4j$$$7$^$9!#(B

boron $B$G$J$$!"<j85$N(B Debian lenny $B$G$b5/$-$^$9$M!#(B

$B$^$?!“8!:w$9$k$H!”(B
Bug #4923: [ext/openssl] test_ssl.rb: test_client_auth fails - Ruby master - Ruby Issue Tracking System $B$G$O(B
Ubuntu 10.04 with OpenSSL 0.9.8k
$B$G$b5/$-$F$$$k$H$$$&Js9p$,$“$j$^$9$M!#(B
($B$J$R$5$s$N%3%a%s%H$b$”$j$^$9!#(B)

akr$B$5$s$KJ9$$$?$H$3$m$K$h$k$H!“(Bboron$B$O(BDebian lenny$B$G!”(BDebian
lenny$B$O(B0.9.8g$B$J$s$G$9$M!#$=$l$[$I8E$$$o$1$G$b$J$$$J$"!#(B

boron% ldd .ext/i686-linux/openssl.so
linux-gate.so.1 => (0xb7fe8000)
libssl.so.0.9.8 => /usr/lib/i686/cmov/libssl.so.0.9.8
(0xb7f4c000)
libcrypto.so.0.9.8 => /usr/lib/i686/cmov/libcrypto.so.0.9.8
(0xb7df9000)
libpthread.so.0 => /lib/i686/nosegneg/libpthread.so.0
(0xb7de0000)
librt.so.1 => /lib/i686/nosegneg/librt.so.1 (0xb7dd6000)
libdl.so.2 => /lib/i686/nosegneg/libdl.so.2 (0xb7dd2000)
libcrypt.so.1 => /lib/i686/nosegneg/libcrypt.so.1 (0xb7da0000)
libm.so.6 => /lib/i686/nosegneg/libm.so.6 (0xb7d7a000)
libc.so.6 => /lib/i686/nosegneg/libc.so.6 (0xb7c1c000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7c07000)
/lib/ld-linux.so.2 (0x80000000)
boron% dpkg -l|grep libssl
ii libssl-dev 0.9.8g-15+lenny11
SSL development libraries, header files and
ii libssl0.9.7 0.9.7k-3.1etch5
SSL shared libraries
ii libssl0.9.8 0.9.8g-15+lenny11
SSL shared libraries

Issue #5039 has been updated by Hiroshi N…

水曜日に見ます。が、再現させるのに時間がかかるかもしれません。手元では出てないんですが、他にこのエラー出てる方が居たら情報提供お願いします。

akrさんに聞いたところによると、boronはDebian lennyで、Debian
lennyは0.9.8gなんですね。それほど古いわけでもないなあ。

Bug #5039: Re: socket related errors on chkbuild

Author: Akira T.
Status: Assigned
Priority: Normal
Assignee: Hiroshi N.
Category: core
Target version: 1.9.3
ruby -v: -

2011年7月16日23:09 Tanaka A. [email protected]:

  1. Error:
    test_write_nonblock(OpenSSL::TestPair):

これは原因が違うようで、直っていません。

これが起き始めたのはそんなに古くないのですね。
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
からなんですが、

+Fri Jun 24 15:54:14 2011 Hiroshi N. [email protected]
+

  •   * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown 
    

SSL

  •     connection more gracefully. Call SSL_shutdown() max 4 times 
    

until it

  •     returns 1 (success). Bi-directional SSL close has several 
    

states but

  •     SSL_shutdown() kicks only 1 transition per call. Max 4 is 
    

from

  •     mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data 
    

= 4’.

  •     See #4237.
    

というコミット以来のようです。

[田中 哲][たなか あきら][Tanaka A.]

Issue #5039 has been updated by Motohiro KOSAKI.

Priority changed from Normal to High


Bug #5039: Re: socket related errors on chkbuild

Author: Akira T.
Status: Assigned
Priority: High
Assignee: Hiroshi N.
Category: core
Target version: 1.9.3
ruby -v: -

2011年7月16日23:09 Tanaka A. [email protected]:

  1. Error:
    test_write_nonblock(OpenSSL::TestPair):

これは原因が違うようで、直っていません。

これが起き始めたのはそんなに古くないのですね。
http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20110624T071200Z.diff.html.gz
からなんですが、

+Fri Jun 24 15:54:14 2011 Hiroshi N. [email protected]
+

  •   * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown 
    

SSL

  •     connection more gracefully. Call SSL_shutdown() max 4 times 
    

until it

  •     returns 1 (success). Bi-directional SSL close has several 
    

states but

  •     SSL_shutdown() kicks only 1 transition per call. Max 4 is 
    

from

  •     mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data 
    

= 4’.

  •     See #4237.
    

というコミット以来のようです。

[田中 哲][たなか あきら][Tanaka A.]