Bug #8831

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

Added by Koichi Sasada about 2 years ago. Updated over 1 year ago.

[ruby-dev:47660]
Status:Assigned
Priority:Normal
Assignee:Aaron Patterson
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#test_write_nonblock_no_exceptions: +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/test_pair.rb::in `write_nonblock_no_ex'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/test_pair.rb::in `block in test_write_nonblock_no_exceptions'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/test_pair.rb::in `ssl_pair'
  • /extdisk/chkbuild/chkbuild/tmp/build//ruby/test/openssl/test_pair.rb::in `test_write_nonblock_no_exceptions'

Associated revisions

Revision 42838
Added by Yui NARUSE almost 2 years ago

wait until the shutdowning message reaches to the server

see #8831

Revision 42838
Added by Yui NARUSE almost 2 years ago

wait until the shutdowning message reaches to the server

see #8831

History

#1 Updated by Yui NARUSE about 2 years ago

FreeBSD also has failures:

4) Failure:
OpenSSL::TestPair#test_read_nonblock_no_exception [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/test_pair.rb:175]:
expected but was
<:wait_readable>.

5) Failure:
OpenSSL::TestPair#test_read_nonblock [/home/chkbuild/build/20130830T000301Z/ruby/test/openssl/test_pair.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/test_pair.rb:160:in `block (2 levels) in test_read_nonblock'

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

#2 Updated by Yui NARUSE almost 2 years ago

  • Status changed from Open to Assigned

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

#3 Updated by Hiroshi SHIBATA over 1 year ago

  • Target version changed from 2.1.0 to current: 2.2.0

Also available in: Atom PDF