[MacRuby] #954: Assertion fails with IO.pipe, when checks size of String which had read from pipe.
MacRuby
ruby-noreply at macosforge.org
Tue Oct 12 04:49:11 PDT 2010
#954: Assertion fails with IO.pipe, when checks size of String which had read
from pipe.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
r, w = IO.pipe
s = ""
t = Thread.new { r.read(5, s) }
w.write "foobarbaz"
true until s.size == 5 # crash
p t.value
p s
}}}
Result:
{{{
$ ruby19 -v test_io.rb
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
"fooba"
"fooba"
$ macruby test_io.rb
Assertion failed: (IS_BSTR(str)), function rb_bstr_set_length, file
string.c, line 6042.
zsh: abort macruby test_io.rb
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/954>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list