Project

General

Profile

Actions

Bug #6221

closed

OpenSSL 1.0.1 is breaking the drb test suite

Added by Anonymous about 12 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p125 (2011-10-30) [x86_64-linux]
Backport:
[ruby-core:43844]

Description

Hi,
I'm having problem with running drb_ssl tests with Ruby 1.9.3.p125 and OpenSSL 1.0.1, originally reported at [1]. Martin Bosslet told me to open this new issue for drb_ssl. So here is the problem:

$ make test-all TESTS="test/drb/test_drbssl.rb"
/builddir/build/BUILD/ruby-1.9.3-p125/lib/drb/ssl.rb:185: warning: SSL_accept returned=1 errno=0 state=SSLv3 write key exchange A: EVP lib (OpenSSL::SSL::SSLError)
(I previously set config[:verbose] = true in ut_array_drbssl.rb, to see this message.)

I'm reproduce this on Fedora 17/rawhide only with OpenSSL 1.0.1.

Thanks!

[1] https://bugs.ruby-lang.org/issues/6089#note-9


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #6036: Test failures in Fedora Rawhide/17Closedvo.x (Vit Ondruch)02/26/2012Actions

Updated by mame (Yusuke Endoh) about 12 years ago

  • Status changed from Open to Assigned

Updated by vo.x (Vit Ondruch) about 12 years ago

This issue is still present. Testing with ruby 2.0.0dev (2012-04-17 trunk 35368) [x86_64-linux]

Actions #3

Updated by akr (Akira Tanaka) about 12 years ago

I found http://rt.openssl.org/Ticket/Display.html?id=2769 .

How about the following patch?

Index: lib/drb/ssl.rb

--- lib/drb/ssl.rb (revision 35430)
+++ lib/drb/ssl.rb (working copy)
@@ -54,7 +54,7 @@ module DRb
return
end

  •    rsa = OpenSSL::PKey::RSA.new(512){|p, n|
    
  •    rsa = OpenSSL::PKey::RSA.new(1024){|p, n|
         next unless self[:verbose]
         case p
         when 0; $stderr.putc "."  # BN_generate_prime
    

Updated by vo.x (Vit Ondruch) about 12 years ago

akr (Akira Tanaka) wrote:

How about the following patch?

It seems it fixes my issues. I cannot reproduce the test error any more with the patch applied.

Actions #5

Updated by akr (Akira Tanaka) about 12 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

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


Updated by akr (Akira Tanaka) about 12 years ago

I committed the patch.

Note that the link I shown needs user and pass parameters as:
http://rt.openssl.org/Ticket/Display.html?id=2769&user=guest&pass=guest

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0