Project

General

Profile

Actions

Bug #15907

closed

gem bin stub commands are failing

Added by MSP-Greg (Greg L) almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-06-08 master 1696f80f40) [x64-mingw32]
[ruby-core:93018]

Description

Commands like

bundle version
irb  --version
rake --version
rdoc --version

are failing. All failure are something similar to:

bundle : lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:64:in `synchronize': deadlock; recursive locking (ThreadError)
from lib/ruby/2.7.0/rubygems/core_ext/kernel_gem.rb:64:in `gem'
from lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:42:in `require'

I think this bug has been exposed by "require rubygems/package where used" b76630f73e, maybe a circular loading issue?

Updated by MSP-Greg (Greg L) almost 3 years ago

Sorry for forgetting (to many hours coding today).

One should be able to repo this by copying the lib/rubygems folder from master/trunk to an existing install, then run a CLI command similar to any of the above...

Updated by hsbt (Hiroshi SHIBATA) almost 3 years ago

  • Assignee set to hsbt (Hiroshi SHIBATA)
  • Status changed from Open to Assigned

Hi, Greg.

Thanks to your report. I reverted b76630f73e for another reason. Can you try with the current master as https://github.com/ruby/ruby/commit/3776c48cf41950d2cc994676bb2735ee1a0a474e ?

Updated by MSP-Greg (Greg L) almost 3 years ago

Hiroshi,

Good evening. A ruby-loco CRON job just happened to run on 3776c48cf4, and it passed.

Thank you, and sorry for the delay, I recently woke up.

JFYI, a while ago I added CLI output to ruby-loco CI, but I didn't add code to fail a build on CLI errors. Hence, CLI could be broken, but ruby-loco would pass. Not good for all the repos using it for CI...

I've now added CI code to fail a build on CLI failure. Thanks again, Greg

Actions #4

Updated by hsbt (Hiroshi SHIBATA) almost 3 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF