From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 5496A19C0031 for ; Fri, 6 Nov 2015 05:54:37 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 4D3A0B5D8CC for ; Fri, 6 Nov 2015 06:23:38 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 77F0E18CC7ED for ; Fri, 6 Nov 2015 06:23:38 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1F06B1204EC; Fri, 6 Nov 2015 06:23:37 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 573D21204A6 for ; Fri, 6 Nov 2015 06:23:33 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=ctmAzXOKnEVgE43ePhBFibCZ+Fc=; b=OnjJlQ98NM4KJN72bD H+jRFCPRwBdzRCfEw9xj+O9Dr35u9X4jHPBIsRrfmxV8TebRS4w1fVSRHc9LsvvT N/tyEtpBfmpfrKZ1V61+b8xqmPkKU8nRfiKuA7bfqXGKZKXgHYUBPF5yhctncEb6 moF9MhbliwO6OaLjXh7qM4xYA= Received: by filter-432.sjc1.sendgrid.net with SMTP id filter-432.15926.563BC8CD44 2015-11-05 21:23:25.996021234 +0000 UTC Received: from herokuapp.com (ec2-54-147-40-80.compute-1.amazonaws.com [54.147.40.80]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id JrKnOzUuQuiOuGqH5XBf8Q for ; Thu, 05 Nov 2015 21:23:25.934 +0000 (UTC) Date: Thu, 05 Nov 2015 21:23:25 +0000 From: smacgaha@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 45997 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11663 X-Redmine-Issue-Author: smacgahan X-Redmine-Sender: smacgahan 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7LTotbTqpQIcB8ZIihi37OA0v+6D8B47Gi+5 B3KNVXRnFLtV0QpfHU8mNVzjRZpojUs5pWjzecU9YHLORnjq/JvNX2GQPwVC684WDvKXMjT6ehhEbQ ktQdsIccr2TrB8I= X-ML-Name: ruby-core X-Mail-Count: 71356 Subject: [ruby-core:71356] [Ruby trunk - Bug #11663] [Open] Segfault when using multiple keywords if the first keyword is invalid 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: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11663 has been reported by Sean MacGahan. ---------------------------------------- Bug #11663: Segfault when using multiple keywords if the first keyword is invalid https://bugs.ruby-lang.org/issues/11663 * Author: Sean MacGahan * Status: Open * Priority: Normal * Assignee: * ruby -v: 2.2.3 * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- When loading a method with an invalid keyword (such as one that ends in a question mark), a syntax error occurs as is expected. However, when loading a method with multiple keywords, if the first keyword is invalid then a segmentation fault occurs. ``` def foo(arg1?:) end #=> syntax error def foo(arg1?:, arg2) end #=> syntax error (tIDENTIFIER as expected) def foo(arg1:) end #=> no syntax error def foo(arg1:, arg2?:) end #=> syntax error def foo(arg1, arg2?:) end #=> syntax error def foo(arg1?:, arg2:) end #=> segfault def foo(arg1?:, arg2?:) end #=> segfault ``` -- https://bugs.ruby-lang.org/