https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112009-01-28T22:08:10ZRuby Issue Tracking SystemRuby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=27882009-01-28T22:08:10Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Target version</strong> changed from <i>1.9.1</i> to <i>2.0.0</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=27942009-01-29T05:17:58Zrogerdpack (Roger Pack)rogerpack2005@gmail.com
<ul></ul><p>=begin<br>
may be related to<br>
<a href="http://redmine.ruby-lang.org/issues/show/703" class="external">http://redmine.ruby-lang.org/issues/show/703</a><br>
=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=28722009-02-02T12:25:01Zko1 (Koichi Sasada)
<ul><li><strong>Assignee</strong> set to <i>akr (Akira Tanaka)</i></li><li><strong>ruby -v</strong> set to <i>-</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=30412009-02-03T17:50:43Zakr (Akira Tanaka)akr@fsij.org
<ul><li><strong>File</strong> <a href="/attachments/220">0</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/220/0">0</a> added</li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=30992009-02-06T13:33:04Zakr (Akira Tanaka)akr@fsij.org
<ul><li><strong>Assignee</strong> deleted (<del><i>akr (Akira Tanaka)</i></del>)</li></ul><p>=begin<br>
I couldn't find a problem in the test case.<br>
So I think this is a Ruby bug.</p>
<p>However I cannot reproduce the problem on my GNU/Linux environment.<br>
So assignment cleared.<br>
=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=31022009-02-06T13:35:39Zakr (Akira Tanaka)akr@fsij.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=35582009-03-16T00:43:39Zpedz (Perry Smith)pedz@easesoftware.com
<ul></ul><p>=begin<br>
I got this also. I'm on Mac 10.5.6 running ruby 1.9.1p0 (2009-01-30 revision 21907) [i386-darwin9.6.0]</p>
<p>I don't understand what this test is trying to test. It does not make any sense to me. You fill the pipe with a's. So, the pipe is full. Then you try to write 4096 b's and 4096 c's. That is in blocking mode so it is going to block until there is space. You read only 8192 of space but the pipe may not be back enabled until you read more than that. I would read one byte at a time. Ignore the a's and count the b's and c's until it goes empty, then see if you got 4096 b's and c's.</p>
<p>assert_finish 10, %q{<br>
begin<br>
require "io/nonblock"<br>
r, w = IO.pipe<br>
w.nonblock = true<br>
w.write_nonblock("a" * 100000)<br>
w.nonblock = false<br>
t1 = Thread.new { w.write("b" * 4096) }<br>
t2 = Thread.new { w.write("c" * 4096) }<br>
b_count = 0<br>
c_count = 0<br>
while c = r.sysread(1)<br>
b_count += 1 if c == "b"<br>
c_count += 1 if c == "c"<br>
break if b_count == 4096 && c_count == 4096<br>
end<br>
t1.join<br>
t2.join<br>
rescue LoadError<br>
end<br>
}, '<a href="https://blade.ruby-lang.org/ruby-dev/32566">[ruby-dev:32566]</a>'</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=43322009-06-19T11:14:11Zmikestok (Mike Stok)mike@stok.ca
<ul></ul><p>=begin<br>
This failure still happens with ruby 1.9.2dev (2009-06-19 trunk 23741) [i386-darwin9.7.0] on OS X 10.5.7</p>
<p>ratdog:~ mike$ uname -a<br>
Darwin ratdog.local 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=65162009-10-28T03:10:55Znaruse (Yui NARUSE)naruse@airemix.jp
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Feedback</i></li></ul><p>=begin<br>
Mike, this problem still reproduce?<br>
=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=70472009-11-29T09:52:31Zujihisa (Tatsuhiro Ujihisa)
<ul><li><strong>Assignee</strong> set to <i>nobu (Nobuyoshi Nakada)</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=183302011-06-26T16:08:04Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul></ul><p>At least, My Mac OS X 10.6.7 can't reproduce this issue.</p> Ruby master - Bug #1066: Frequent failure: test_io.rb test 2 on OS X 10.5.6https://redmine.ruby-lang.org/issues/1066?journal_id=201562011-08-08T21:08:27Zkosaki (Motohiro KOSAKI)kosaki.motohiro@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Rejected</i></li></ul><p>I close this as Rejected since no feedback provided.<br>
Please upgrade your OS.</p>