--mimepart_4ce04bcfdcfae_566d590f92a325a
Content-Type: text/plain
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline

Bug #4056: Crash in non-blocking read
http://redmine.ruby-lang.org/issues/show/4056

Author: Tomas Matousek
Status: Open, Priority: Normal
ruby -v: ruby 1.9.2p0 (2010-08-18) [i386-mingw32]

Ruby crashes when executing the attached script (a.rb).
See  crash details attached in crash.log.


----------------------------------------
http://redmine.ruby-lang.org

--mimepart_4ce04bcfdcfae_566d590f92a325a
Content-Type: text/plain; name=a.rb
Content-Transfer-Encoding: Base64
Content-Disposition: attachment; filename=a.rb

cmVxdWlyZSAncnVieWdlbXMnDQpyZXF1aXJlICd3ZWJyaWNrJw0KcmVxdWly
ZSAncnVieWdlbXMvcmVtb3RlX2ZldGNoZXInDQpyZXF1aXJlICdydWJ5Z2Vt
cy9mb3JtYXQnDQoNCiAgU0VSVkVSX0RBVEEgPSA8PC1FT1kNCi0tLSAhcnVi
eS9vYmplY3Q6R2VtOjpDYWNoZQ0KZ2VtczoNCiAgcmFrZS0wLjQuMTE6ICFy
dWJ5L29iamVjdDpHZW06OlNwZWNpZmljYXRpb24NCiAgICBydWJ5Z2Vtc192
ZXJzaW9uOiAiMC43Ig0KICAgIHNwZWNpZmljYXRpb25fdmVyc2lvbjogMQ0K
ICAgIG5hbWU6IHJha2UNCiAgICB2ZXJzaW9uOiAhcnVieS9vYmplY3Q6R2Vt
OjpWZXJzaW9uDQogICAgICB2ZXJzaW9uOiAwLjQuMTENCiAgICBkYXRlOiAy
MDA0LTExLTEyDQogICAgc3VtbWFyeTogUnVieSBiYXNlZCBtYWtlLWxpa2Ug
dXRpbGl0eS4NCiAgICByZXF1aXJlX3BhdGhzOg0KICAgICAgLSBsaWINCiAg
ICBhdXRob3I6IEppbSBXZWlyaWNoDQogICAgZW1haWw6IGppbUB3ZWlyaWNo
aG91c2Uub3JnDQogICAgaG9tZXBhZ2U6IGh0dHA6Ly9yYWtlLnJ1Ynlmb3Jn
ZS5vc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