Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

No live threads left. Deadlock? #5529

Closed
ayushjainr opened this issue Mar 21, 2017 · 1 comment · Fixed by #5571
Closed

No live threads left. Deadlock? #5529

ayushjainr opened this issue Mar 21, 2017 · 1 comment · Fixed by #5571

Comments

@ayushjainr
Copy link

ayushjainr commented Mar 21, 2017

Using rake 12.0.0
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.10.1
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using rack 1.6.5
Using mime-types-data 3.2016.0521
Using arel 6.0.4
Using public_suffix 2.0.5
Using net-ssh 4.0.1
Using awesome_print 1.7.0
Using bcrypt 3.1.11
Using debug_inspector 0.0.2
Using byebug 9.0.6
Using capistrano-harrow 0.5.3
Using puma 3.6.2
Using chartkick 2.2.2
Using climate_control 0.1.0
Using coderay 1.1.1
Using coffee-script-source 1.11.1
Using execjs 2.7.0
Using thor 0.19.4
Using concurrent-ruby 1.0.4
Using connection_pool 2.2.1
Using orm_adapter 0.5.0
Using unf_ext 0.0.7.2
Using multipart-post 2.0.0
Using jwt 1.5.6
Using little-plugger 1.1.4
Using multi_json 1.12.1
Using memoist 0.15.0
Using os 0.9.6
Using httpclient 2.8.3
Using hurley 0.2
Using uber 0.0.15
Using retriable 2.1.0
Using tilt 2.0.5
Using hashie 3.4.6
Using localtunnel 1.0.3
Using netrc 0.11.0
Using method_source 0.8.2
Using mimemagic 0.3.2
Using multi_xml 0.6.0
Using mysql2 0.3.21
Using nested_form 0.3.2
Using bundler 1.14.3
Using slop 3.6.0
Using rails-assets-angular 1.6.1
Using remotipart 1.3.1
Using sass 3.4.23
Using rdoc 4.3.0
Using redis 3.3.2
Using table_print 1.5.6
Using turbolinks-source 5.0.0
Using tzinfo 1.2.2
Using nokogiri 1.7.0.1
Using rack-test 0.6.3
Using warden 1.2.6
Using rack-protection 1.5.3
Using mime-types 3.1
Using addressable 2.5.0
Using net-scp 1.2.1
Using binding_of_caller 0.7.2
Using cocaine 0.5.8
Using coffee-script 2.4.1
Using uglifier 3.0.4
Using sprockets 3.7.1
Using unf 0.1.4
Using faraday 0.10.1
Using logging 2.1.0
Using representable 2.3.0
Using haml 4.0.7
Using omniauth 1.3.1
Using pry 0.10.4
Using rails-assets-angular-devise 1.3.0
Using sdoc 0.4.2
Using turbolinks 5.0.1
Using activesupport 4.2.1
Using loofah 2.0.3
Using rack-pjax 1.0.0
Using sidekiq 4.2.9
Using sinatra 1.4.8
Using mail 2.6.4
Using sshkit 1.11.5
Using domain_name 0.5.20161129
Using signet 0.7.3
Using oauth2 1.3.0
Using wit-ruby 0.0.2
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.7
Using activemodel 4.2.1
Using groupdate 3.2.0
Using jbuilder 2.6.1
Using spring 2.0.0
Using rails-html-sanitizer 1.0.3
Using airbrussh 1.1.2
Using http-cookie 1.0.3
Using googleauth 0.5.1
Using omniauth-oauth2 1.4.0
Using rails-dom-testing 1.0.8
Using activejob 4.2.1
Using activerecord 4.2.1
Using paperclip 5.0.0
Using protected_attributes 1.1.3
Using capistrano 3.7.1
Using rest-client 2.0.0
Using google-api-client 0.9.20
Using omniauth-facebook 4.0.0
Using actionview 4.2.1
Using capistrano-bundler 1.2.0
Using capistrano-rvm 0.1.2
Using capistrano3-nginx 2.1.5
Using capistrano3-puma 1.2.1
Using messenger-ruby 1.1.3 from git://github.com/xyz.git (at master@abc)
Using google_drive 2.1.2
Using actionpack 4.2.1
Using capistrano-rails 1.2.1
Using actionmailer 4.2.1
Using railties 4.2.1
Using kaminari 0.17.0
Using sprockets-rails 3.2.0
Using coffee-rails 4.1.1
Using responders 2.3.0
Using font-awesome-rails 4.7.0.1
Using jquery-rails 4.2.2
Using jquery-ui-rails 5.0.5
Using rails 4.2.1
Using sass-rails 5.0.6
Using web-console 2.3.0
Using devise 3.5.10
Using ngannotate-rails 1.2.2
Using rails_admin 1.1.1
--- ERROR REPORT TEMPLATE -------------------------------------------------------

Error Report

Questions

Please fill out answers to these questions, it'll help us figure out
why things are going wrong.

  • What did you do?

    I ran the command /usr/local/bin/bundler

  • What did you expect to happen?

    I expected Bundler to...

  • What happened instead?

    Instead, what happened was...

  • Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?

    I tried...

  • Have you read our issues document, https://github.com/bundler/bundler/blob/master/ISSUES.md?

    ...

Backtrace

fatal: No live threads left. Deadlock?
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/worker.rb:43:in `pop'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/worker.rb:43:in `deq'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer/parallel_installer.rb:131:in `process_specs'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer/parallel_installer.rb:102:in `call'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer/parallel_installer.rb:77:in `call'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer.rb:199:in `install_in_parallel'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer.rb:166:in `install'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer.rb:80:in `run'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/installer.rb:24:in `install'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli/install.rb:70:in `run'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:181:in `block in install'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/settings.rb:99:in `temporary'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:180:in `install'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:20:in `dispatch'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/cli.rb:11:in `start'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:32:in `block in <top (required)>'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/exe/bundle:24:in `<top (required)>'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/exe/bundler:4:in `load'
  /var/lib/gems/2.3.0/gems/bundler-1.14.3/exe/bundler:4:in `<top (required)>'
  /usr/local/bin/bundler:23:in `load'
  /usr/local/bin/bundler:23:in `<main>'

Environment

Bundler   1.14.3
Rubygems  2.6.10
Ruby      2.3.1p112 (2016-04-26 revision 0) [x86_64-linux-gnu]
GEM_HOME  /var/lib/gems/2.3.0
GEM_PATH  /var/lib/gems/2.3.0:/home/ajr/.gem/ruby/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all
Git       2.7.4
Platform  x86_64-linux
OpenSSL   OpenSSL 1.0.2g  1 Mar 2016

Bundler settings

git.allow_insecure
  Set for the current user (/home/ajr/.bundle/config): "true"
jobs
  Set for your local app (/home/ajr/Documents/zippytest/.bundle/config): "1"

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=No+live+threads+left.+Deadlock%3F&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new

@colby-swandale
Copy link
Member

This is being addressed in #5516

bundlerbot added a commit that referenced this issue Apr 14, 2017
Avoid deadlocking when installing with a lockfile missing dependencies

Closes #5378.
Closes #5480.
Closes #5519.
Closes #5526.
Closes #5529.
Closes #5549.
Closes #5572.

Not the ideal fix (the error message could be more helpful in pointing out which issue is being faced), but overall better than deadlocking.
philipefarias added a commit to dleemoo/rc-images that referenced this issue Jun 12, 2017
Changes since last version used (1.14.6):

== 1.15.1 (2017-06-02)

Bugfixes:

  - `bundle lock --update GEM` will fail gracefully when the gem is not in the lockfile (rubygems/bundler#5693, @segiddins)
  - `bundle init --gemspec` will fail gracefully when the gemspec is invalid (@colby-swandale)
  - `bundle install --force` works when the gemfile contains git gems (rubygems/bundler#5678, @segiddins)
  - `bundle env` will print well-formed markdown when there are no settings (rubygems/bundler#5677, @segiddins)

== 1.15.0 (2017-05-19)

This space intentionally left blank.

== 1.15.0.pre.4 (2017-05-10)

Bugfixes:

  - avoid conflicts when `Gem.finish_resolve` is called after the bundle has been set up (@segiddins)
  - ensure that `Gem::Specification.find_by_name` always returns an object that can have `#to_spec` called on it (rubygems/bundler#5592, @jules2689)

== 1.15.0.pre.3 (2017-04-30)

Bugfixes:

  - avoid redundant blank lines in the readme generated by `bundle gem` (@koic)
  - ensure that `open-uri` is not loaded after `bundle exec` (@segiddins)
  - print a helpful error message when an activated default gem conflicts with
    a gem in the gemfile (@segiddins)
  - only shorten `ref` option for git gems when it is a SHA (rubygems/bundler#5620, @segiddins)

== 1.15.0.pre.2 (2017-04-23)

Bugfixes:

  - ensure pre-existing fit caches are updated from remote sources (rubygems/bundler#5423, @alextaylor000)
  - avoid duplicating specs in the lockfile after updating with the gem uninstalled (rubygems/bundler#5599, @segiddins)
  - ensure git gems have their extensions available at runtime (rubygems/bundler#5594, @jules2689, @segiddins)

== 1.15.0.pre.1 (2017-04-16)

Features:

  - print a notification when a newer version of bundler is available (rubygems/bundler#4683, @segiddins)
  - add man pages for all bundler commands (rubygems/bundler#4988, @feministy)
  - add the `bundle info` command (@fredrb, @colby-swandale)
  - all files created with `bundle gem` comply with the bundler style guide (@zachahn)
  - if installing a gem fails, print out the reason the gem needed to be installed (rubygems/bundler#5078, @segiddins)
  - allow setting `gem.push_key` to set the key used when running `rake release` (@DTrierweiler)
  - print gem versions that are regressing during `bundle update` in yellow (rubygems/bundler#5506, @brchristian)
  - avoid printing extraneous dependencies when the resolver encounters a conflict (@segiddins)
  - add the `bundle issue` command that prints instructions for reporting issues (rubygems/bundler#4871, @jonathanpike)
  - add `--source` and `--group` options to the `bundle inject` command (rubygems/bundler#5452, @Shekharrajak)
  - add the `bundle add` command to add a gem to the gemfile (@denniss)
  - add the `bundle pristine` command to re-install gems from cached `.gem` files (rubygems/bundler#4509, @denniss)
  - add a `--parseable` option for `bundle config` (@JuanitoFatas, @colby-swandale)

Performance:

  - speed up gemfile initialization by storing locked dependencies as a hash (@jules2689)
  - speed up gemfile initialization by making locked dependency comparison lazy, avoiding object allocation (@jules2689)
  - only validate git gems when they are downloaded, instead of every time `Bundler.setup` is run (@segiddins)
  - avoid regenerating the lockfile when nothing has changed (@segiddins)
  - avoid diffing large arrays when no sources in the gemfile have changed (@segiddins)
  - avoid evaluating full gemspecs when running with RubyGems 2.5+ (@segiddins)

Bugfixes:

  - fix cases where `bundle update` would print a resolver conflict instead of updating the selected gems (rubygems/bundler#5031, rubygems/bundler#5095, @segiddins)
  - print out a stack trace after an interrupt when running in debug mode (@segiddins)
  - print out when bundler starts fetching a gem from a remote server (@segiddins)
  - fix `bundle gem` failing when `git` is unavailable (rubygems/bundler#5458, @Shekharrajak, @colby-swandale)
  - suggest the appropriate command to unfreeze a bundle (rubygems/bundler#5009, @denniss)
  - ensure nested calls to `bundle exec` resolve default gems correctly (rubygems/bundler#5500, @segiddins)
  - ensure that a plugin failing to install doesn't uninstall other plugins (@kerrizor, @roseaboveit)
  - ensure `socket` is required before being referenced (rubygems/bundler#5533, @rafaelfranca)
  - allow running `bundle outdated` when gems aren't installed locally (rubygems/bundler#5553, @segiddins)
  - print a helpful error when `bundle exec`ing to a gem that isn't included in the bundle (rubygems/bundler#5487, @segiddins)
  - print an error message when a non-git gem is given a `branch` option (rubygems/bundler#5530, @colby-swandale)
  - allow interrupts to exit the process after gems have been installed (@segiddins)
  - print the underlying error when downloading gem metadata fails (rubygems/bundler#5579, @segiddins)
  - avoid deadlocking when installing with a lockfile that is missing dependencies (rubygems/bundler#5378, rubygems/bundler#5480, rubygems/bundler#5519, rubygems/bundler#5526, rubygems/bundler#5529, rubygems/bundler#5549, rubygems/bundler#5572, @segiddins)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants