From: Joseph Jones Date: 2015-12-17T21:06:22-07:00 Subject: [ruby-core:72267] [Ruby trunk - Bug #11750] SEGV with Enumerator, yield and proc. --5673863e_7c3dbd3d_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 7, 2015 at 00:24:= 57 MST, ko1=40atdot.net wrote:Issue =2311750 has been updated by Koichi S= asada.Assignee set to Koichi Sasada--------------------------------------= --Bug =2311750: SEGV with Enumerator, yield and proc.https://bugs.ruby-la= ng.org/issues/11750=23change-55287* Author: Akira Tanaka* Status: Open* P= riority: Normal* Assignee: Koichi Sasada* ruby -v: ruby 2.3.0dev (2015-11= -29 trunk 52789) =5Bx86=5F64-linux=5D* Backport: 2.0.0: UNKNOWN, 2.1: UNK= NOWN, 2.2: UNKNOWN----------------------------------------I found SEGV as= follows.=60=60=60% cat z.rb def f Enumerator.new =7B=7Cy=7C 1000000.time= s =7B yield y.yield =7D =7Denddef g x =3D proc =7B=7D f(&x)ende =3D ge.ea= ch =7B=7D% ./miniruby z.rb(snip)=60=60=60---=46iles----------------------= ----------bug-11750.log (11.2 KB)-- https://bugs.ruby-lang.org/ --5673863e_7c3dbd3d_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 7, 2015 at 00:24:57 MST, ko1=40atdot.net wrote:
Issue =2311750 has been updated by = Koichi Sasada.

Assignee set to Koichi Sasada

------= ----------------------------------
Bug =2311750: SEGV with Enumerato= r, yield and proc.
https://bugs.ruby-lang.org/issues/11750=23change-= 55287

* Author: Akira Tanaka
* Status: Open
* Priori= ty: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.3.0dev (= 2015-11-29 trunk 52789) =5Bx86=5F64-linux=5D
* Backport: 2.0.0: UNKN= OWN, 2.1: UNKNOWN, 2.2: UNKNOWN
------------------------------------= ----
I found SEGV as follows.

=60=60=60
% cat z.rb <= br />def f
Enumerator.new =7B=7Cy=7C
1000000.times =7B yield
y.yield
=7D
=7D
end
<= br />def g
x =3D proc =7B=7D
f(&x)
end

e =3D= g
e.each =7B=7D

% ./miniruby z.rb
(snip)
=60=60= =60


---=46iles--------------------------------
bug-= 11750.log (11.2 KB)


--
https://bugs.ruby-lang.org/=
--5673863e_7c3dbd3d_16c--