Issue #16337 has been updated by jkohen (Javier Kohen).

ruby -v changed from ruby 2.7.0dev (2019-11-09T02:08:24Z master 352887b731) [x64-mingw32] to ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
Status changed from Closed to Open

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.

# /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


----------------------------------------
Bug #16337: kernel_gem.rb:68 - ThreadError
https://bugs.ruby-lang.org/issues/16337#change-83613

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
Found with ruby-loco CLI tests

See: https://ci.appveyor.com/project/MSP-Greg/ruby-loco/builds/28731823#L2922

```
> rake --version
Traceback (most recent call last):
  10: from bin/rake:23:in `<main>'
   9: from lib/ruby/2.7.0/rubygems.rb:301:in `activate_bin_path'
   8: from lib/ruby/2.7.0/rubygems.rb:301:in `synchronize'
   7: from lib/ruby/2.7.0/rubygems.rb:303:in `block in activate_bin_path'
   6: from lib/ruby/2.7.0/rubygems.rb:240:in `finish_resolve'
   5: from lib/ruby/2.7.0/rubygems/request_set.rb:435:in `resolve_current'
   4: from lib/ruby/2.7.0/rubygems/request_set.rb:435:in `new'
   3: from lib/ruby/2.7.0/rubygems/resolver/set.rb:24:in `initialize'
   2: from lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:69:in `require'
   1: from lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:68:in `gem'
kernel_gem.rb:68:in `synchronize': deadlock; recursive locking (ThreadError)
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>