ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: ko1@atdot.net
To: ruby-core@ruby-lang.org
Subject: [ruby-core:71883] [Ruby trunk - Bug #11750] SEGV with Enumerator, yield and proc.
Date: Mon, 07 Dec 2015 07:24:57 +0000	[thread overview]
Message-ID: <redmine.journal-55287.20151207072456.55d44f903d434cd5@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-11750.20151129162428@ruby-lang.org

Issue #11750 has been updated by Koichi Sasada.

Assignee set to Koichi Sasada

----------------------------------------
Bug #11750: SEGV with Enumerator, yield and proc.
https://bugs.ruby-lang.org/issues/11750#change-55287

* Author: Akira Tanaka
* Status: Open
* Priority: Normal
* Assignee: Koichi Sasada
* 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/

      parent reply	other threads:[~2015-12-07  6:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <redmine.issue-11750.20151129162428@ruby-lang.org>
2015-11-29 16:24 ` [ruby-core:71737] [Ruby trunk - Bug #11750] [Open] SEGV with Enumerator, yield and proc akr
2015-11-30  5:36 ` [ruby-core:71745] [Ruby trunk - Bug #11750] " nobu
2015-12-07  7:24 ` ko1 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-55287.20151207072456.55d44f903d434cd5@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).