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 7340919C04EF for ; Mon, 30 Nov 2015 14:05:24 +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 352BEB5D8F0 for ; Mon, 30 Nov 2015 14:36:42 +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 B153E18CC7CC for ; Mon, 30 Nov 2015 14:36:42 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 36EA21204B5; Mon, 30 Nov 2015 14:36:41 +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 891E81204A6 for ; Mon, 30 Nov 2015 14:36:38 +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=W1J+1c+jDSFUvdyYvghz+B6vAlA=; b=KFm8XgA6jgxYBRRFaA aAG8/4+XVXPss7Ja4amyBB1CA9z0QT2GhZ/naLLCArcE/TmaVNHTXCV5xBMASMOU 1hthOf0uKknKdobOhby7MPujgF2g+VTrohP5pUG2SZ07UShBiQl5E5F1VjkIRR6b Amxx3DVs/uvM0K1TX6KyGLGAo= Received: by filter0623p1mdw1.sendgrid.net with SMTP id filter0623p1mdw1.6103.565BE0601B 2015-11-30 05:36:32.617869218 +0000 UTC Received: from herokuapp.com (ec2-54-205-176-116.compute-1.amazonaws.com [54.205.176.116]) by ismtpd0001p1iad1.sendgrid.net (SG) with ESMTP id JWVzMRe5ToWZjOuHyEsxUQ for ; Mon, 30 Nov 2015 05:36:32.995 +0000 (UTC) Date: Mon, 30 Nov 2015 05:36:32 +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: 46428 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11750 X-Redmine-Issue-Author: akr 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS54Vglb4Z2ybch5TJQXCONB6Yvkhh+ulD+7N2 V4nRoiEvUZjORqzWc5+r4iR+gFINGNznX8cOJBci51jW2zkwWv+EFNsm7Ht1lB9RQb7XQL14/TdKkO tAXUgiU2JreevKRkjld0rwQ/Lt1VenjG5Gg8 X-ML-Name: ruby-core X-Mail-Count: 71745 Subject: [ruby-core:71745] [Ruby trunk - Bug #11750] SEGV with Enumerator, yield and proc. 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 #11750 has been updated by Nobuyoshi Nakada. File bug-11750.log added Description updated By bisecting, it raises `SytemStackError` or segfaults since r51243. ~~~ * vm_core.h: remove blockprocval field from rb_proc_t and rb_binding_t. Instead of this field, mark given block in Proc at rb_env_t::env. ~~~ `Enumerator`, `Generator`, or `Yielder` may need more marking or write-barrier. ---------------------------------------- Bug #11750: SEGV with Enumerator, yield and proc. https://bugs.ruby-lang.org/issues/11750#change-55148 * Author: Akira Tanaka * Status: Open * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0dev (2015-11-29 trunk 52789) [x86_64-linux] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN ---------------------------------------- I found SEGV as follows. ``` % cat z.rb def f Enumerator.new {|y| 1000000.times { yield y.yield } } end def g x = proc {} f(&x) end e = g e.each {} % ./miniruby z.rb (snip) ``` ---Files-------------------------------- bug-11750.log (11.2 KB) -- https://bugs.ruby-lang.org/