https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112015-04-04T10:52:21ZRuby Issue Tracking SystemRuby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=520372015-04-04T10:52:21Ztknerr (Torben Knerr)mail@tknerr.de
<ul></ul><p>Just double-checked whether it might be a RubyGems issue.</p>
<p>So I downgraded Rubygems to 2.4.4 (the version that ships with Ruby 2.0, where everything works), but still the same behaviour => not related to RubyGems, more likely a core issue</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=520392015-04-04T12:50:52Ztknerr (Torben Knerr)mail@tknerr.de
<ul></ul><p>Seems to be a Windows specific issue. I did NOT experience this on my Ubuntu 14.04 box with Ruby 2.1.5p273.</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=541552015-09-13T03:23:53Zzzak (zzak _)
<ul><li><strong>Assignee</strong> set to <i>7150</i></li></ul> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=653612017-06-14T01:23:13ZIristyle (Ethan Brown)ethan_j_brown@hotmail.com
<ul></ul><p>Also seeing this issue crop up in AppVeyor - specifically under Ruby 2.4 testing. We haven't seen this in previous Ruby builds (note that RubyInstaller changed how Ruby is built in the 2.4 installers).</p>
<p>Such an example is at <a href="https://ci.appveyor.com/project/puppetlabs/puppet/build/4.1.0.5694/job/jkk5rbf49ou92yc8" class="external">https://ci.appveyor.com/project/puppetlabs/puppet/build/4.1.0.5694/job/jkk5rbf49ou92yc8</a></p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=653692017-06-14T04:57:17Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul><li><strong>Backport</strong> changed from <i>2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN</i> to <i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: REQUIRED</i></li></ul><p>[Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: OpenSSL thread safety (Closed)" href="https://redmine.ruby-lang.org/issues/8386">#8386</a>] is unrelated to this. The X509_load_cert_crl_file() function called<br>
from OpenSSL::X509::Store#add_file is leaking error in the OpenSSL error queue.<br>
This is fixed in OpenSSL's master branch a while ago.<br>
<a href="https://github.com/openssl/openssl/commit/c0452248ea1a59a41023a4765ef7d9825e80a62b" class="external">https://github.com/openssl/openssl/commit/c0452248ea1a59a41023a4765ef7d9825e80a62b</a></p>
<p>I'm adding a workaround to ruby/openssl for previous versions of OpenSSL.</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=653732017-06-14T09:49:14ZAnonymous
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset trunk|r59081.</p>
<hr>
<p>openssl: import v2.0.4</p>
<p>Import Ruby/OpenSSL 2.0.4. Only bug (and typo) fixes. The full commit<br>
history since v2.0.3 (imported at r57482) can be found at:</p>
<p><a href="https://github.com/ruby/openssl/compare/v2.0.3...v2.0.4" class="external">https://github.com/ruby/openssl/compare/v2.0.3...v2.0.4</a></p>
<p>This contains the fix for [Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: OpenSSL related threading issues in Ruby 2.1 and 2.2 (Closed)" href="https://redmine.ruby-lang.org/issues/11033">#11033</a>].</p>
<hr>
<p>Jun Aruga (1):<br>
Update .travis.yml and Dockerfile</p>
<p>Kazuki Yamaguchi (9):<br>
test/test_pkey_ec: do not use dummy 0 order<br>
test/test_ssl: fix typo in test_sysread_and_syswrite<br>
ssl: check return value of SSL_set_fd()<br>
Fix typos<br>
test/test_x509store: skip OpenSSL::TestX509Store#test_set_errors<br>
tool/sync-with-trunk: 'LASY' -> 'LAST'<br>
x509store: clear error queue after calling X509_LOOKUP_load_file()<br>
extconf.rb: simplify searching libraries logic<br>
Ruby/OpenSSL 2.0.4</p>
<p>SHIBATA Hiroshi (1):<br>
Fix typos</p>
<p>Vladimir Rybas (1):<br>
Fix documentation for OpenSSL::Cipher#final</p>
<p>nobu (2):<br>
openssl: fix broken openssl check<br>
openssl: fix broken openssl check</p>
<p>usa (1):<br>
Search SSL libraries by testing various filename patterns</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=654212017-06-19T13:41:42ZIristyle (Ethan Brown)ethan_j_brown@hotmail.com
<ul></ul><p>This ticket is marked as closed - but I only see OpenSSL 2.0.4 in the trunk branch on GitHub per <a href="https://github.com/ruby/ruby/commit/9eb92007b6c2ab2b1fe031c3681144e51e2bcc14" class="external">https://github.com/ruby/ruby/commit/9eb92007b6c2ab2b1fe031c3681144e51e2bcc14</a>.</p>
<p>I do not see the updated OpenSSL in the 2.4 branch at <a href="https://github.com/ruby/ruby/tree/ruby_2_4/ext/openssl" class="external">https://github.com/ruby/ruby/tree/ruby_2_4/ext/openssl</a></p>
<p>This is becoming a fairly critical problem for our automated testing in AppVeyor. Will the fix be backported to 2.4 as the ticket originally states?</p>
<p>Thanks!</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=654242017-06-19T15:26:37Zrhenium (Kazuki Yamaguchi)k@rhe.jp
<ul><li><strong>File</strong> <a href="/attachments/6595">for-ruby-2-3-backport-805882145bde.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/6595/for-ruby-2-3-backport-805882145bde.patch">for-ruby-2-3-backport-805882145bde.patch</a> added</li></ul><p>Now that openssl is a default gem, you can just update it before running 'bundle install':</p>
<pre><code>gem install openssl -v '~> 2.0.4'
</code></pre>
<p>Anyway, I would like that patch to go to earlier versions of Ruby, too.</p>
<p>2.4 stable maintainer: Can you backport r59081? (I guess r58742 needs to be applied first.)<br>
2.3 stable maintainer: I've attached a patch that applies on top of ruby_2_3.</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=654262017-06-19T15:37:20Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: REQUIRED</i> to <i>2.2: UNKNOWN, 2.3: REQUIRED, 2.4: REQUIRED</i></li></ul><p>rhenium (Kazuki Yamaguchi) wrote:</p>
<blockquote>
<p>2.3 stable maintainer: I've attached a patch that applies on top of ruby_2_3.</p>
</blockquote>
<p>Oh, thank you!<br>
I'll check and merge it later.</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=654572017-06-23T21:28:17ZIristyle (Ethan Brown)ethan_j_brown@hotmail.com
<ul></ul><p>Thank you <a class="user active user-mention" href="https://redmine.ruby-lang.org/users/9231">@rhenium (Kazuki Yamaguchi)</a> - I had not realized that openssl is packaged differently for Ruby 2.4</p>
<p>I have a pull request open to Puppet to address the problem by building / installing the openssl gem - <a href="https://github.com/puppetlabs/puppet/pull/6011" class="external">https://github.com/puppetlabs/puppet/pull/6011</a>. It adds roughly 3 minutes to the time it takes to execute Ruby 2.4 based jobs.</p>
<p>It would be nice if precompiled platform-specific Windows gems were available, which would eliminate the additional 3 minute wait, but this will work for now.</p>
<p>Thanks!</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=655932017-06-30T12:43:16Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul><li><strong>Backport</strong> changed from <i>2.2: UNKNOWN, 2.3: REQUIRED, 2.4: REQUIRED</i> to <i>2.2: UNKNOWN, 2.3: DONE, 2.4: REQUIRED</i></li></ul> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=660092017-08-03T13:43:06Znagachika (Tomoyuki Chikanaga)nagachika00@gmail.com
<ul><li><strong>Backport</strong> changed from <i>2.2: UNKNOWN, 2.3: DONE, 2.4: REQUIRED</i> to <i>2.2: UNKNOWN, 2.3: DONE, 2.4: DONE</i></li></ul><p>ruby_2_4 r59489 merged revision(s) 58742,59081.</p> Ruby master - Bug #11033: OpenSSL related threading issues in Ruby 2.1 and 2.2https://redmine.ruby-lang.org/issues/11033?journal_id=704072018-02-17T05:58:59Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>Description</strong> updated (<a title="View differences" href="/journals/70407/diff?detail_id=48305">diff</a>)</li></ul>