https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112019-11-09T07:22:07ZRuby Issue Tracking SystemRuby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=825842019-11-09T07:22:07Zznz (Kazuhiro NISHIYAMA)
<ul></ul><p><code>rm $(gem env gemdir)/specifications/default/uri-0.10.0.gemspec</code> is workaround.<br>
But I don't know why.</p> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=825862019-11-09T11:16:25Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Applied in changeset <a class="changeset" title="Revert "Promote uri to default gems" This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026..." href="https://redmine.ruby-lang.org/projects/ruby-master/repository/git/revisions/fdfad905227a0e2e4c224d87181041fb75d5082e">git|fdfad905227a0e2e4c224d87181041fb75d5082e</a>.</p>
<hr>
<p>Revert "Promote uri to default gems"</p>
<p>This reverts commit c5b4d2a2592942766dc2789f46105b91eba7026a.</p>
<p>This commit affects with activation feature of RubyGems.<br>
[Bug <a class="issue tracker-1 status-8 priority-4 priority-default closed" title="Bug: kernel_gem.rb:68 - ThreadError (Third Party's Issue)" href="https://redmine.ruby-lang.org/issues/16337">#16337</a>]<a href="/issues/16337">[ruby-core:95768]</a></p> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=836132020-01-03T15:58:12Zjkohen (Javier Kohen)
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Open</i></li><li><strong>ruby -v</strong> changed from <i>ruby 2.7.0dev (2019-11-09T02:08:24Z master 352887b731) [x64-mingw32]</i> to <i>ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]</i></li></ul><p>I'm still seeing this on 2.7.0p0, even though it looks like it should have been fixed based on comment #2. The workaround in comment #1 still helps.</p>
<pre><code>$ /opt/google-fluentd/embedded/bin/ruby --version
ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
$ /opt/google-fluentd/embedded/bin/ruby /opt/google-fluentd/embedded/bin/rake --version
Traceback (most recent call last):
10: from /opt/google-fluentd/embedded/bin/rake:23:in `<main>'
9: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems.rb:303:in `activate_bin_path'
8: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems.rb:303:in `synchronize'
7: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems.rb:305:in `block in activate_bin_path'
6: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems.rb:242:in `finish_resolve'
5: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/request_set.rb:435:in `resolve_current'
4: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/request_set.rb:435:in `new'
3: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/resolver/set.rb:24:in `initialize'
2: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:42:in `require'
1: from /opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:67:in `gem'
/opt/google-fluentd/embedded/lib/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:67:in `synchronize': deadlock; recursive locking (ThreadError)
$ rm /opt/google-fluentd/embedded/lib/ruby/gems/2.7.0/specifications/default/uri-0.10.0.gemspec
$ /opt/google-fluentd/embedded/bin/ruby /opt/google-fluentd/embedded/bin/rake --version
rake, version 12.3.2
</code></pre> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=842662020-02-14T11:44:09Zhsbt (Hiroshi SHIBATA)hsbt@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Third Party's Issue</i></li><li><strong>Assignee</strong> set to <i>hsbt (Hiroshi SHIBATA)</i></li></ul><p>I couldn't reproduce it with my environment. Can you ask the maintainer of google-fluentd at first?</p> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=843402020-02-21T11:41:36Zdeivid (David RodrÃguez)
<ul></ul><p>I guess this is because you're not using the latest rubygems. Could you run <code>gem env version</code> and check that you have a rubygems version older than 3.1?</p>
<p>You need to request upgrading rubygems to google-fluentd, maybe here: <a href="https://github.com/GoogleCloudPlatform/google-fluentd/blob/269ade4d609cd9ae59819bcdfe8977a52727ec72/config/projects/google-fluentd.rb#L19" class="external">https://github.com/GoogleCloudPlatform/google-fluentd/blob/269ade4d609cd9ae59819bcdfe8977a52727ec72/config/projects/google-fluentd.rb#L19</a>, although it would seem that they're using ruby 2.6 and you're on 2.7, so not sure.</p> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=849552020-04-08T02:20:42Zjkohen (Javier Kohen)
<ul></ul><p>Sorry, I never got notifications about your posts. I was acting as the maintainer of google-fluentd, and trying to upgrade it to Ruby 2.7. My colleague will try upgrading rubygem. Thanks.</p> Ruby master - Bug #16337: kernel_gem.rb:68 - ThreadErrorhttps://redmine.ruby-lang.org/issues/16337?journal_id=849612020-04-08T09:32:53Zdeivid (David RodrÃguez)
<ul></ul><p>Great, let me know if you run into issues.</p>