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 BB9811BA012C for ; Fri, 19 May 2017 15:08:52 +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 DDD5FB5D930 for ; Fri, 19 May 2017 15:54:23 +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 6798718CC81C for ; Fri, 19 May 2017 15:54:24 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 8C245120762; Fri, 19 May 2017 15:54:24 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org 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 959FB12072A for ; Fri, 19 May 2017 15:54:20 +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=90YOkMS+BdtVY8NnECdxU6DThwQ=; b=x7dol32O1S6vZvfYxO lT2uIAKl1l4c5DHYCqshe/Xx9i+KCoZ6YRhBiFziMMXKvTsMJ2H+fDNw/AS73H89 h0O7PMpHbpYETKnep4PlKstu6Jaqnf/94go5r8uNevDVREoYSYJEzUeBy8GkXaUq Jk+1xV9eXWZmPcaODFhSm+SrU= Received: by filter0498p1mdw1.sendgrid.net with SMTP id filter0498p1mdw1-15851-591E9698-3D 2017-05-19 06:54:16.646646571 +0000 UTC Received: from herokuapp.com (ec2-54-224-0-33.compute-1.amazonaws.com [54.224.0.33]) by ismtpd0002p1iad1.sendgrid.net (SG) with ESMTP id y4qQjOOhSDOZ63aFylJP3w for ; Fri, 19 May 2017 06:54:16.419 +0000 (UTC) Date: Fri, 19 May 2017 06:54:16 +0000 From: ko1@atdot.net To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56275 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS744s7u/IQebnlGU88OEvU+r7gZAQKEIy+pG9 MZQIzlrx/dK8Nryweqz1IAiPTQnn/r/r0RtpZmFJk99DKzSrzT0sN5ugx8Qb6EvILFkJuGXbxrkSdv mWIWdqul1UM4pO6okp1rvYQZhECw+qSP/Mt0 X-ML-Name: ruby-core X-Mail-Count: 81254 Subject: [ruby-core:81254] [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 Fundamentally, we can't control machine stack overflow. We will improve the situation (but can't solve completely). ---------------------------------------- Bug #13324: IRB Segmentation Fault from eval infinite loop https://bugs.ruby-lang.org/issues/13324#change-64915 * 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/