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=-2.6 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no 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 08BDB1F466 for ; Fri, 17 Jan 2020 20:21:18 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5BD211209CF; Sat, 18 Jan 2020 05:21:03 +0900 (JST) Received: from xtrwkhkc.outbound-mail.sendgrid.net (xtrwkhkc.outbound-mail.sendgrid.net [167.89.16.28]) by neon.ruby-lang.org (Postfix) with ESMTPS id C600C1209C4 for ; Sat, 18 Jan 2020 05:21:00 +0900 (JST) Received: by filterdrecv-p3las1-5bf99c48d-z5dx7 with SMTP id filterdrecv-p3las1-5bf99c48d-z5dx7-18-5E221736-57 2020-01-17 20:21:10.785509196 +0000 UTC m=+2748926.763929948 Received: from herokuapp.com (unknown [3.89.197.5]) by ismtpd0053p1iad1.sendgrid.net (SG) with ESMTP id THPB6ZtAS5CoiTXop3NzRA for ; Fri, 17 Jan 2020 20:21:10.597 +0000 (UTC) Date: Fri, 17 Jan 2020 20:21:10 +0000 (UTC) From: packerbacker89@gmail.com Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 72597 X-Redmine-Project: ruby-master X-Redmine-Issue-Id: 16510 X-Redmine-Issue-Author: packerbacker89 X-Redmine-Sender: packerbacker89 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?EFzPE1RlhGUir4Yfe9Gn07yIif00BDQpaOcHNtjl6GiFpSouKTDupmI+5LSnZH?= =?us-ascii?Q?if7e3LNa7NjAlsTbAfI7hyAyvNHOqlgv0VynyB1?= =?us-ascii?Q?hKY0nNnLS6YiJChrnZrx5ectXMZn9r=2FmbvJcahf?= =?us-ascii?Q?ahwAiAP1g8e0EJn9lkSs6=2FBBHyrDMlHs2w2XzxK?= =?us-ascii?Q?iBUOoWex6aHdIyVbRXX0IDmamGG=2FuH=2FeDGOBE2O?= =?us-ascii?Q?1eUbrJcX8JeEkfz8U=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 96932 Subject: [ruby-core:96932] [Ruby master Bug#16510] irb crashes when hitting 'Home' or 'End' keys 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 #16510 has been updated by packerbacker89 (Josh Johnson). I've found the issue using RedHat 6.10 and reproduced the behavior in CentOS 6. I was using GNOME Terminal (v 2.31.3) when I discovered the issue. I checked, and it is working * **correctly** * in xterm and konsole. ---------------------------------------- Bug #16510: irb crashes when hitting 'Home' or 'End' keys https://bugs.ruby-lang.org/issues/16510#change-83959 * Author: packerbacker89 (Josh Johnson) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.7.0 * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN ---------------------------------------- There were similar bugs opened in the past few months, but they all appear to be closed. System: Ruby 2.7.0, reline 0.1.2, irb 1.2.1 Open irb and hit the 'Home' or 'End' key on the keyboard. This should go to the beginning / end of the line. Instead, the console crashes and the following traceback is provided: 35: from /x/ruby-2.7.0/bin/irb:23:in `
' 34: from /x/ruby-2.7.0/bin/irb:23:in `load' 33: from /x/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in `' 32: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:398:in `start' 31: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:469:in `run' 30: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:469:in `catch' 29: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:470:in `block in run' 28: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:535:in `eval_input' 27: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:134:in `each_top_level_statement' 26: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:134:in `catch' 25: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:135:in `block in each_top_level_statement' 24: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:135:in `loop' 23: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:138:in `block (2 levels) in each_top_level_statement' 22: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/ruby-lex.rb:166:in `lex' 21: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:516:in `block in eval_input' 20: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:693:in `signal_status' 19: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb.rb:517:in `block (2 levels) in eval_input' 18: from /x/ruby-2.7.0/lib/ruby/2.7.0/irb/input-method.rb:258:in `gets' 17: from /x/ruby-2.7.0/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline' 16: from /x/ruby-2.7.0/lib/ruby/2.7.0/forwardable.rb:235:in `readmultiline' 15: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:170:in `readmultiline' 14: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:232:in `inner_readline' 13: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:232:in `loop' 12: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:233:in `block in inner_readline' 11: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:262:in `read_io' 10: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:262:in `loop' 9: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:286:in `block in read_io' 8: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:234:in `block (2 levels) in inner_readline' 7: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:234:in `each' 6: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline.rb:235:in `block (3 levels) in inner_readline' 5: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/line_editor.rb:829:in `input_key' 4: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/line_editor.rb:787:in `normal_char' 3: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/line_editor.rb:758:in `process_key' 2: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/line_editor.rb:1109:in `ed_insert' 1: from /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/unicode.rb:70:in `get_mbchar_width' /x/ruby-2.7.0/gems/reline-0.1.2/lib/reline/unicode.rb:70:in `encode': "\\xCF" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError) In addition, hitting the 'Insert', 'Page Up', and 'Page Down' keys result in odd characters shown in the console (such as "^[[2~"). This is only a minor issue compared to the console crash. -- https://bugs.ruby-lang.org/