Skip to content

git-1.10.2 broken autoload #564

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
SolaWing opened this issue Jan 21, 2022 · 0 comments · Fixed by #594
Closed

git-1.10.2 broken autoload #564

SolaWing opened this issue Jan 21, 2022 · 0 comments · Fixed by #594

Comments

@SolaWing
Copy link

Subject of the issue

0:aa $ bundle exec ruby -e 'autoload :Git, "git"; Git'
/Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1107:in `join': No live threads left. Deadlock? (fatal)
2 threads, 2 sleeps current:0x00007fbd2ad50300 main thread:0x00007fbd6ac06f40
* #<Thread:0x0000000100e38ce8 sleep_forever>
   rb_thread_t:0x00007fbd6ac06f40 native:0x0000000102356e00 int:0
   
* #<Thread:0x0000000101193a50 /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1103 sleep_forever>
   rb_thread_t:0x00007fbd2ad50300 native:0x0000700006040000 int:0
    depended by: tb_thread_id:0x00007fbd6ac06f40
   
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1107:in `block in command'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1069:in `block in with_custom_env_variables'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1066:in `synchronize'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1066:in `with_custom_env_variables'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1102:in `command'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1007:in `current_command_version'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git/lib.rb:1017:in `meets_required_version?'
	from /Users/wang/.rbenv/versions/3.1.0/lib/ruby/gems/3.1.0/gems/git-1.10.2/lib/git.rb:30:in `<top (required)>'
	from -e:1:in `require'
	from -e:1:in `<main>'

Your environment

  • git version 2.32.0 (Apple Git-132)
  • version of ruby: tested on 3.1 and 2.6

Steps to reproduce

ruby -e 'autoload :Git, "git"; Git'

Expected behaviour

no exception

Actual behaviour

has exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant