Issue #15981 has been reported by duerst (Martin D=FCrst).

----------------------------------------
Bug #15981: irb immediately crashes when typing any character
https://bugs.ruby-lang.org/issues/15981

* Author: duerst (Martin D=FCrst)
* Status: Open
* Priority: Normal
* Assignee: aycabta (aycabta .)
* Target version: =

* ruby -v: ruby 2.7.0dev (2019-07-03T05:28:25Z trunk dcedf0a008) [x86_64-cy=
gwin]
* 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 `<main>'
        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/ir=
b:11:in `<top (required)>'
        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_inp=
ut'
        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 `matc=
h_status'
         1: from /usr/local/lib/ruby/2.7.0/reline/key_stroke.rb:19:in `sele=
ct'
/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
```



-- =

https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=3Dunsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>