Bug #15907
closedgem bin stub commands are failing
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 6 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 6 years ago
- Status changed from Open to Assigned
- Assignee set to hsbt (Hiroshi SHIBATA)
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 6 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
Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago
- Status changed from Assigned to Closed