[#71931] [Ruby trunk - Feature #11786] [Open] [PATCH] micro-optimize case dispatch even harder — normalperson@...

Issue #11786 has been reported by Eric Wong.

9 messages 2015/12/08

[ruby-core:71883] [Ruby trunk - Bug #11750] SEGV with Enumerator, yield and proc.

From: ko1@...
Date: 2015-12-07 07:24:57 UTC
List: ruby-core #71883
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/

In This Thread

Prev Next