Bug #8831

test-all error: OpenSSL::SSL::SSLError: SSL_write: bad write retry

Added by Koichi Sasada 8 months ago. Updated 3 months ago.

[ruby-dev:47660]
Status:Assigned
Priority:Normal
Assignee:Aaron Patterson
Category:ext/openssl
Target version:current: 2.2.0
ruby -v:r42695 ruby 2.1.0dev (2013-08-27) [i686-linux] (boron) Backport:1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Description

There is a test-all error on some environments from r42695.
It seems depend on openssl's version.

http://www.rubyist.net/~akr/chkbuild/debian/ruby-trunk/log/20130826T224700Z.diff.html.gz

  • ) Error: +OpenSSL::TestPair#testwritenonblocknoexceptions: +OpenSSL::SSL::SSLError: SSL_write: bad write retry
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/.ext/common/openssl/buffering.rb::in `syswrite_nonblock'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/.ext/common/openssl/buffering.rb::in `write_nonblock'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/testpair.rb:<linea>:in `writenonblockno_ex'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/testpair.rb:<linea>:in `block in testwritenonblocknoexceptions'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/testpair.rb:<linea>:in `ssl_pair'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/testpair.rb:<linea>:in `testwritenonblocknoexceptions'

Associated revisions

Revision 42838
Added by Yui NARUSE 8 months ago

wait until the shutdowning message reaches to the server

see #8831

History

#1 Updated by Yui NARUSE 8 months ago

FreeBSD also has failures:

4) Failure:
OpenSSL::TestPair#testreadnonblocknoexception [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/testpair.rb:175]:
expected but was
<:wait
readable>.

5) Failure:
OpenSSL::TestPair#testreadnonblock [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/testpair.rb:160]:
[EOFError] exception expected, not
Class: OpenSSL::SSL::SSLErrorWaitReadable
Message: <"read would block">
---Backtrace---
/home/chkbuild/build/20130830T000301Z/ruby/.ext/common/openssl/buffering.rb:174:in sysread_nonblock'
/home/chkbuild/build/20130830T000301Z/ruby/.ext/common/openssl/buffering.rb:174:in
read
nonblock'

/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/testpair.rb:160:in `block (2 levels) in testread_nonblock'

http://fb.rubyci.org/~chkbuild/ruby-trunk/log/20130830T000301Z.log.html.gz#rubyspec

#2 Updated by Yui NARUSE 8 months ago

  • Status changed from Open to Assigned

On r42790 usa ignored this error, but tenderlove should confirm this.

#3 Updated by Hiroshi SHIBATA 3 months ago

  • Target version changed from 2.1.0 to current: 2.2.0

Also available in: Atom PDF