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 67F0F17DC62E for ; Thu, 27 Nov 2014 07:42:42 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 63C5BB5D808 for ; Thu, 27 Nov 2014 07:33:19 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 26D1797A827 for ; Thu, 27 Nov 2014 07:33:20 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9QFBB1GRDgAL for ; Thu, 27 Nov 2014 07:33:19 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id CA3AD97A820 for ; Thu, 27 Nov 2014 07:33:19 +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 28E1D95241B for ; Thu, 27 Nov 2014 07:33:17 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9B33512045A; Thu, 27 Nov 2014 07:33:12 +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 1D91D12043D for ; Thu, 27 Nov 2014 07:33:08 +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=m6zdi0u5PBvpzw3urFa6ifuRQfY=; b=XbtjjAZHh05GAqrQ+1 0TD2EmwJ+FmnR6ymBg1MBU2Zw2h5acxrBdtPTvyXT5MFwYG+LxNYWRPMNxUmx8cb +Hdh1BhhWfZyPhkPuvnxc0t5gSFj7reSx/Mz4Jf9fvww5wwxo/o2B6rAdb8J3KyJ 4J76LKZTp2KkVy0bFZiqNUu3E= Received: by filter0072p1mdw1.sendgrid.net with SMTP id filter0072p1mdw1.25753.5476551E10 2014-11-26 22:33:03.941005034 +0000 UTC Received: from herokuapp.com (ec2-54-205-119-157.compute-1.amazonaws.com [54.205.119.157]) by ismtpd-015 (SG) with ESMTP id 149ee3c8469.6b15.ae00 Wed, 26 Nov 2014 22:33:03 +0000 (UTC) Date: Wed, 26 Nov 2014 22:33:03 +0000 From: andrewm.bpi@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: 40887 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 10460 X-Redmine-Issue-Author: plexus X-Redmine-Issue-Assignee: ko1 X-Redmine-Sender: Ajedi32 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: OOF Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS69D8uJfrZ/Koi5Rq8y9QtJPHwwRixGoOndWw KzUKlt+lpWtmUZD+yiJJlh5600AGfP6soIYcoIH7XiGAbRUT0Lnl/Bnw5WkdAHS1WIfwtVz/+UlVEQ rGS2NiCVRBmM9AsBdFWts8/svgLAecePZ7vr X-ML-Name: ruby-core X-Mail-Count: 66497 Subject: [ruby-core:66497] [ruby-trunk - Bug #10460] Segfault instead of stack level too deep 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 #10460 has been updated by Andrew M. File rspec_ruby_segfault.rb added File sample_output added Ran into this issue today when I accidentally created a stack overflow in my RSpec tests: * ruby 2.1.5p273 (2014-11-13 revision 48405, [i686-linux] * rspec 2.13.1 Attached is code which (sometimes) reproduces the problem (run with `rspec rspec_ruby_segfault.rb`), and the output I got when the error occurred. ---------------------------------------- Bug #10460: Segfault instead of stack level too deep https://bugs.ruby-lang.org/issues/10460#change-50112 * Author: Arne Brasseur * Status: Open * Priority: High * Assignee: Koichi Sasada * Category: YARV * Target version: current: 2.2.0 * ruby -v: ruby 2.2.0dev (2014-10-29 trunk 48188) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- The code to trigger this can be found here: https://gist.github.com/mbj/31163a8e712573877268 Also have a look at the comments there. A lot of different people tried it, in some cases it segfaults, in others it doesn't. It seems to have to do with version of gcc or specific CFLAGS. I can reproduce the problem for 2.1.3, 2.1.4, and trunk. ---Files-------------------------------- rspec_ruby_segfault.rb (233 Bytes) sample_output (26 KB) -- https://bugs.ruby-lang.org/