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 3921D17DBDF3 for ; Fri, 6 Nov 2015 08:35:28 +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 C77C4B5D964 for ; Fri, 6 Nov 2015 09:04:29 +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 E36D118CC7B8 for ; Fri, 6 Nov 2015 09:04:29 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 1208612052C; Fri, 6 Nov 2015 09:04:28 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o10.shared.sendgrid.net (o10.shared.sendgrid.net [173.193.132.135]) by neon.ruby-lang.org (Postfix) with ESMTPS id AE0621204D5 for ; Fri, 6 Nov 2015 09:04:24 +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=QITyDg8u+lbdU+7bEmdHcJ/CPYc=; b=en2ufD0hPZskowQW6+ dGgnXKQF8b6CtpovozE2NIMsrNi/l1pCU2jSIxTNqREVjUQteS3JcARGEU9H9gsl W6r26bGjGSB4tDlbLniENGSfRRZGeUUCFl6KvlkI9po/b3gQ9cfeHwk1Ix8But5I ErGBiaqzveyVVd5fq90651L+Q= Received: by filter-481.sjc1.sendgrid.net with SMTP id filter-481.6544.563BEE8344 2015-11-06 00:04:19.992734254 +0000 UTC Received: from herokuapp.com (ec2-54-81-185-124.compute-1.amazonaws.com [54.81.185.124]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id Uc_krGuyQxez--8Se4ZzSQ Fri, 06 Nov 2015 00:04:20.014 +0000 (UTC) Date: Fri, 06 Nov 2015 00:04:19 +0000 From: nobu@ruby-lang.org 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: 46003 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11663 X-Redmine-Issue-Author: smacgahan X-Redmine-Sender: nobu 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS5eZLkhNUMVQvWFjYEWSrPMez5XK41yskc4sf prGz/ydxdlgfB6j87H4PG73YIEjKJVcgnZkNU1VnT/zWi5o+Iyz1as690RAHO+QhGH0dtTuS8j30WN XvFu9JEC7F4tCOE= X-ML-Name: ruby-core X-Mail-Count: 71362 Subject: [ruby-core:71362] [Ruby trunk - Bug #11663] 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 updated by Nobuyoshi Nakada. Description updated Backport changed from 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED ---------------------------------------- Bug #11663: Segfault when using multiple keywords if the first keyword is invalid https://bugs.ruby-lang.org/issues/11663#change-54728 * Author: Sean MacGahan * Status: Closed * Priority: Normal * Assignee: * ruby -v: 2.2.3 * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: REQUIRED ---------------------------------------- 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. ```ruby 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/