From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID, T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 4D6631FAED for ; Thu, 8 Jun 2017 01:54:29 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5B1F6120736; Thu, 8 Jun 2017 10:54:27 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id F23FA120721 for ; Thu, 8 Jun 2017 10:54:22 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=TTUKPWUO6GWHQ5r/4tBx+DgFbzQ=; b=DToVO+fpDkt1ywqnXC tTcHpStMZaDem5woRhFnDphBK1qvNzwuiM45BVJc8Pb/8jJLpBRZUJ+T1ifwvWEU DEy46nL/k5ss/JPrI3JTXzQxFUUAqMjwCtQtK6pDgy395i5tW6CC5/Wqnh/mJRhG Sr3/lmTX0Mq/fQTbvPod25mGU= Received: by filter0553p1mdw1.sendgrid.net with SMTP id filter0553p1mdw1-19607-5938AE4B-6 2017-06-08 01:54:19.327643965 +0000 UTC Received: from herokuapp.com (ec2-50-19-161-80.compute-1.amazonaws.com [50.19.161.80]) by ismtpd0004p1iad1.sendgrid.net (SG) with ESMTP id H4FplXyRTbylCfJuJ9kyMg for ; Thu, 08 Jun 2017 01:54:19.278 +0000 (UTC) Date: Thu, 08 Jun 2017 01:54:18 +0000 From: ko1@atdot.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56641 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 13324 X-Redmine-Issue-Author: srodman7689@gmail.com 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: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS7oyv8HlReuZlpFjgTsAz5i7aRH9HAElkZD4S 9HgrdP03+K2lLeHVhEVCTGm8vw6P4awSD9c25L2s4qqcOZ25OejWErjBmYgM5jTg1vvrYkCWNpHMo9 TwCXBSBNSIung0ui5ERQFBw/Sct0HQGd44+A X-ML-Name: ruby-core X-Mail-Count: 81615 Subject: [ruby-core:81615] [Ruby trunk Bug#13324][Closed] IRB Segmentation Fault from eval infinite loop 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 #13324 has been updated by ko1 (Koichi Sasada). Status changed from Open to Closed srodman7689@gmail.com (Sean Rodman) wrote: > The issue is not the stack overflow but the segmentation fault I described when running the same code in the above listed irb version. SEGV because of machine stack overflow. ---------------------------------------- Bug #13324: IRB Segmentation Fault from eval infinite loop https://bugs.ruby-lang.org/issues/13324#change-65311 * Author: srodman7689@gmail.com (Sean Rodman) * Status: Closed * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- I am not sure if this has already been taken care of or not but I am using ruby 2.3.0 and irb 0.9.6(09/06/30) and when I run the below code I get a segmentation fault ```ruby a = "eval a"; eval a ``` when running the same code with just the ruby interpreter I get the below error which is what I would expect ``` -e:1:in `eval': stack level too deep (SystemStackError) from (eval):1:in `
' from (eval):1:in `eval' from (eval):1:in `
' from (eval):1:in `eval' from (eval):1:in `
' from (eval):1:in `eval' from (eval):1:in `
' from (eval):1:in `eval' ... 9507 levels... from (eval):1:in `eval' from (eval):1:in `
' from -e:1:in `eval' from -e:1:in `
' ``` -- https://bugs.ruby-lang.org/