From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C351F1F462 for ; Tue, 30 Jul 2019 03:54:59 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 96C6D120B8F; Tue, 30 Jul 2019 12:54:53 +0900 (JST) Received: from o1678916x28.outbound-mail.sendgrid.net (o1678916x28.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id 75F76120B8B for ; Tue, 30 Jul 2019 12:54:51 +0900 (JST) Received: by filter0138p3mdw1.sendgrid.net with SMTP id filter0138p3mdw1-16964-5D3FBF8E-23 2019-07-30 03:54:54.998639963 +0000 UTC m=+290177.970489336 Received: from herokuapp.com (unknown [18.234.65.111]) by ismtpd0005p1iad2.sendgrid.net (SG) with ESMTP id VqgpW7BuSyumACas5V1Izg for ; Tue, 30 Jul 2019 03:54:54.983 +0000 (UTC) Date: Tue, 30 Jul 2019 03:54:55 +0000 (UTC) From: ko1@atdot.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 69520 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 15989 X-Redmine-Issue-Author: maciej.mensfeld X-Redmine-Issue-Assignee: aycabta X-Redmine-Sender: ko1 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?fVTMYOBjtdvXNcWwrscBhLsHItUXVK5L4mtnq0mdcRf2F3vlopmPRpOQ=2FHrHw8?= =?us-ascii?Q?tuDFizvVShJULMpL2=2FdFTpNDP+mDAvrbICyOnf5?= =?us-ascii?Q?dMdQohHvxuTIHOvEx6Xw2xM=2FeSraLkc=2F3mW+wvk?= =?us-ascii?Q?1wVFIbO=2F7r8tVd5vnEoPBTWd7XX8nDsqYX7A0LS?= =?us-ascii?Q?JvVWcddnhkrXA?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 94013 Subject: [ruby-core:94013] [Ruby master Bug#15989] irb-1.1.0.pre.1 crashes on using arrow up, home and delete X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #15989 has been updated by ko1 (Koichi Sasada). Assignee set to aycabta (aycabta .) Status changed from Open to Rejected could you continue on github issue? https://github.com/ruby/irb ---------------------------------------- Bug #15989: irb-1.1.0.pre.1 crashes on using arrow up, home and delete https://bugs.ruby-lang.org/issues/15989#change-80237 * Author: maciej.mensfeld (Maciej Mensfeld) * Status: Rejected * Priority: Normal * Assignee: aycabta (aycabta .) * Target version: * ruby -v: ruby 2.7.0dev (2019-07-04T09:54:50Z master 265b9a0edf) [x86_64-linux] last_commit=Parse key sequence more strictly * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- When I do this: 1. Start irb 2. Define empty string `''` 3. Press arrow up 4. Press Home 5. Press Delete to remove first `'` 6. irb crashes I get following exception: ``` 33: from ../install/bin/irb:23:in `
' 32: from ../install/bin/irb:23:in `load' 31: from /workdir/install/lib/ruby/gems/2.7.0/gems/irb-1.1.0.pre.1/exe/irb:11:in `' 30: from /workdir/install/lib/ruby/2.7.0/irb.rb:389:in `start' 29: from /workdir/install/lib/ruby/2.7.0/irb.rb:431:in `run' 28: from /workdir/install/lib/ruby/2.7.0/irb.rb:431:in `catch' 27: from /workdir/install/lib/ruby/2.7.0/irb.rb:432:in `block in run' 26: from /workdir/install/lib/ruby/2.7.0/irb.rb:496:in `eval_input' 25: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `each_top_level_statement' 24: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:125:in `catch' 23: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `block in each_top_level_statement' 22: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:126:in `loop' 21: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:129:in `block (2 levels) in each_top_level_statement' 20: from /workdir/install/lib/ruby/2.7.0/irb/ruby-lex.rb:157:in `lex' 19: from /workdir/install/lib/ruby/2.7.0/irb.rb:477:in `block in eval_input' 18: from /workdir/install/lib/ruby/2.7.0/irb.rb:654:in `signal_status' 17: from /workdir/install/lib/ruby/2.7.0/irb.rb:478:in `block (2 levels) in eval_input' 16: from /workdir/install/lib/ruby/2.7.0/irb/input-method.rb:259:in `gets' 15: from /workdir/install/lib/ruby/2.7.0/reline.rb:296:in `readmultiline' 14: from /workdir/install/lib/ruby/2.7.0/reline.rb:357:in `inner_readline' 13: from /workdir/install/lib/ruby/2.7.0/reline.rb:357:in `loop' 12: from /workdir/install/lib/ruby/2.7.0/reline.rb:358:in `block in inner_readline' 11: from /workdir/install/lib/ruby/2.7.0/reline.rb:387:in `read_io' 10: from /workdir/install/lib/ruby/2.7.0/reline.rb:387:in `loop' 9: from /workdir/install/lib/ruby/2.7.0/reline.rb:393:in `block in read_io' 8: from /workdir/install/lib/ruby/2.7.0/reline.rb:359:in `block (2 levels) in inner_readline' 7: from /workdir/install/lib/ruby/2.7.0/reline.rb:359:in `each' 6: from /workdir/install/lib/ruby/2.7.0/reline.rb:360:in `block (3 levels) in inner_readline' 5: from /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:779:in `input_key' 4: from /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:675:in `process_key' 3: from /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:675:in `call' 2: from /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:999:in `key_delete' 1: from /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:1734:in `ed_delete_next_char' /workdir/install/lib/ruby/2.7.0/reline/line_editor.rb:1734:in `-': nil can't be coerced into Integer (TypeError) ``` attached a demo made with `asciinema`. Play (or cat as it's a text file) with: `asciinema play error.dat` ---Files-------------------------------- asciinema - error.dat (5.21 KB) demo.gif (41.4 KB) -- https://bugs.ruby-lang.org/