From: duerst@... Date: 2019-07-04T04:07:11+00:00 Subject: [ruby-core:93526] [Ruby master Bug#15981] irb immediately crashes when typing any character Issue #15981 has been updated by duerst (Martin D�rst). I was asked (apparently in private mail) about ^D and ^C. ^D produces the same Traceback. ^C produces another prompt, still with the number 001. ---------------------------------------- Bug #15981: irb immediately crashes when typing any character https://bugs.ruby-lang.org/issues/15981#change-79089 * Author: duerst (Martin D�rst) * Status: Open * Priority: Normal * Assignee: aycabta (aycabta .) * Target version: * ruby -v: ruby 2.7.0dev (2019-07-03T05:28:25Z trunk dcedf0a008) [x86_64-cygwin] * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- When invoking irb, the first prompt comes up, but as soon as any character (incl. e.g. space or tab) is typed, it immediately crashes it. ``` duerst@Arnisee /cygdrive/c/Data/ruby $ irb irb(main):001:0> Traceback (most recent call last): 27: from /usr/local/bin/irb:30:in `
' 26: from /usr/local/bin/irb:30:in `load' 25: from /usr/local/lib/ruby/gems/2.7.0/gems/irb-1.1.0.pre.1/exe/irb:11:in `' 24: from /usr/local/lib/ruby/2.7.0/irb.rb:389:in `start' 23: from /usr/local/lib/ruby/2.7.0/irb.rb:431:in `run' 22: from /usr/local/lib/ruby/2.7.0/irb.rb:431:in `catch' 21: from /usr/local/lib/ruby/2.7.0/irb.rb:432:in `block in run' 20: from /usr/local/lib/ruby/2.7.0/irb.rb:496:in `eval_input' 19: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `each_top_level_statement' 18: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `catch' 17: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `block in each_top_level_statement' 16: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `loop' 15: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:129:in `block (2 levels) in each_top_level_statement' 14: from /usr/local/lib/ruby/2.7.0/irb/ruby-lex.rb:157:in `lex' 13: from /usr/local/lib/ruby/2.7.0/irb.rb:477:in `block in eval_input' 12: from /usr/local/lib/ruby/2.7.0/irb.rb:654:in `signal_status' 11: from /usr/local/lib/ruby/2.7.0/irb.rb:478:in `block (2 levels) in eval_input' 10: from /usr/local/lib/ruby/2.7.0/irb/input-method.rb:259:in `gets' 9: from /usr/local/lib/ruby/2.7.0/reline.rb:296:in `readmultiline' 8: from /usr/local/lib/ruby/2.7.0/reline.rb:357:in `inner_readline' 7: from /usr/local/lib/ruby/2.7.0/reline.rb:357:in `loop' 6: from /usr/local/lib/ruby/2.7.0/reline.rb:358:in `block in inner_readline' 5: from /usr/local/lib/ruby/2.7.0/reline.rb:387:in `read_io' 4: from /usr/local/lib/ruby/2.7.0/reline.rb:387:in `loop' 3: from /usr/local/lib/ruby/2.7.0/reline.rb:390:in `block in read_io' 2: from /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:19:in `match_status' 1: from /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:19:in `select' /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:20:in `block in match_status': undefined method `start_with?' for nil:NilClass (NoMethodError) duerst@Arnisee /cygdrive/c/Data/ruby ``` ---Files-------------------------------- .inputrc (1.87 KB) .irbrc (186 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: