[ruby-cvs:62608] rhe:r55444 (trunk): openssl: avoid test crash on Ubuntu 16.04

rhe at ruby-lang.org rhe at ruby-lang.org
Sat Jun 18 18:10:19 JST 2016


rhe	2016-06-18 18:10:19 +0900 (Sat, 18 Jun 2016)

  New Revision: 55444

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55444

  Log:
    openssl: avoid test crash on Ubuntu 16.04
    
    * test/openssl/test_pkey_ec.rb (setup): Don't call EC#generate_key! for
      Oakley-* curves. This causes an odd error on Ubuntu 16.04 with openssl
      1.0.2g-1ubuntu4.1.
    
        begin
          OpenSSL::PKey::EC.new("Oakley-EC2N-4").generate_key
        rescue
          p $!
        end
        OpenSSL::PKey::RSA.new(512)
    
      This sometimes causes:
    
        #<OpenSSL::PKey::ECError: EC_KEY_generate_key: pairwise test failed>
        fips.c(139): OpenSSL internal error, assertion failed: FATAL FIPS SELFTEST FAILURE
    
      [ruby-dev:49670] [Bug #12504]

  Modified files:
    trunk/test/openssl/test_pkey_ec.rb


More information about the ruby-cvs mailing list