--pgp-sign-Multipart_Thu_Dec_11_18:51:56_2008-1
Content-Type: text/plain; charset=US-ASCII

At Thu, 11 Dec 2008 17:53:03 +0900,
Nobuyoshi Nakada wrote:
> At Thu, 11 Dec 2008 14:00:33 +0900,
> Akinori MUSHA wrote in [ruby-core:20471]:
> > The attached change is planned to be merged but it causes a coredump.
> >
> > knu@daemon[1]% ruby-1.8 -rstringio -e 'x = StringIO.new("a\nb\nc"); e = x.each; e.each{|i|p i}; e.rewind; e.each{|i| p i }'
> > "a\n"
> > "b\n"
> > "c"
> > zsh: illegal hardware instruction (core dumped)  ruby-1.8 -rstringio -e
>
> SEGV without [BUG] message means system stack overflow.

Oops, I should've noticed that.

> genenrator.rb required by Enumerator#rewind in enumerator.c
> overrides he methods defined in C.

D'oh!  I was supposed to know that in the very first place.

Thanks for pointing it out.

--
Akinori MUSHA / http://akinori.org/

--pgp-sign-Multipart_Thu_Dec_11_18:51:56_2008-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEABECAAYFAklA4rwACgkQkgvvx5/Z4e6QYACgpsNg4k1Ct6xhPTzV/iuZni/f
Zv4AoNevx9+qseKPzJ6N92UlfxcHwXDI
=ubuR
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Dec_11_18:51:56_2008-1--