Skip to content

Deadlock when ctrl+c on syntax invalid code in multi-irb #1164

Description

@Earlopain
$ irb
irb(main):001> irb
Multi-irb commands are deprecated and will be removed in IRB 2.0.0. Please use workspace commands instead.
If you have any use case for multi-irb, please leave a comment at https://github.com/ruby/irb/issues/653
irb#1(main):001* do#0->irb on main (#<Thread:0x00007037632b7f68 run>: running)
#1->irb#1 on main (#<Thread:0x0000703744b6f300 /home/user/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/irb-1.16.0/lib/irb/ext/multi-irb.rb:186 sleep>: stop)

^C
/home/user/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/reline-0.6.3/lib/reline.rb:251:in 'Thread::Mutex#synchronize': No live threads left. Deadlock? (fatal)

I understand multi-irb is deprecated. 100% of the time, I enter multi-irb by accident because I didn't realize I had irb already open. So perhaps you think that fixing this is not worth the effort. I just thought I'd report it anyways.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions