[#41134] [Bug:trunk] ext/tk on cygwin — Nobuyoshi Nakada <nobu@...>
なかだです。
[#41138] [Bug #3243] Can't build Ruby after r26506 — Yuki Sonoda <redmine@...>
Bug #3243: Can't build Ruby after r26506
[#41140] [Bug:trunk] the behavior of Tempfile#size was changed — Yusuke ENDOH <mame@...>
なかださん
Hi,
[#41173] [Feature #3251] allow to unlock mutex locked by another thread — Yusuke Endoh <redmine@...>
Feature #3251: allow to unlock mutex locked by another thread
[#41192] Re: [ruby-cvs:34848] Ruby:r27635 (trunk): * cont.c: apply FIBER_USE_NATIVE patch. This patch improve — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
まつもと ゆきひろです
こんにちは、なかむら(う)です。
[#41212] 実装凍結解除とリリース協力のお願い — Yugui <yugui@...>
Yuguiです。
[#41219] [ruby_1_9_2] コンパイルエラー — Takahiro Kambe <taca@...>
ruby_1_9_2ブランチのコンパイルでエラーが起きます。
[#41223] 正規表現オブジェクト中のキャプチャの数 — "KISHIMOTO, Makoto" <ksmakoto@...4u.or.jp>
きしもとです
[#41225] io/console IO#raw error when io is closed in the block — Tanaka Akira <akr@...>
io/console を使ってみたのですが、ちょっとうまく使えません。
[#41247] Regexpの仕様について — Masaya TARUI <tarui@...>
樽家です。
[#41259] Re: [ruby-cvs:34935] Ruby:r27723 (trunk): * ext/psych/parser.c (parse): Return strings encoded as — "U.Nakamura" <usa@...>
こんにちは、なかむら(う)です。
[#41278] [BUG:1.9] BINARY should not be ASCII-compatible — Yugui <yugui@...>
Yuguiです。
普段、あまりM17Nの件に反応しない卜部ですが、
2010/5/11 Urabe Shyouhei <shyouhei@ruby-lang.org>:
[#41286] ruby_1_9_2 on NetBSD 5.1_RC1(+) — Takahiro Kambe <taca@...>
再び、こんばんは。
[#41316] [Bug #3295] make test aborted — Kazuhiro NISHIYAMA <redmine@...>
Bug #3295: make test aborted
チケット #3295 が更新されました。 (by Yusuke Endoh)
[#41329] NoMethodErrorなどのmessage — Masatoshi SEKI <m_seki@...>
咳といいます。
まつもと ゆきひろです
[#41334] [Bug #3307] ext/tk がheader fileの有無を誤判定する — Masaya Tarui <redmine@...>
Bug #3307: ext/tk がheader fileの有無を誤判定する
[#41348] [Bug #3316] Kernel#caller returns nil as well — Nobuhiro IMAI <redmine@...>
Bug #3316: Kernel#caller returns nil as well
遠藤です。
[#41350] [Bug #3318] net/imap/test_imap.rb reports an error on Windows — Usaku NAKAMURA <redmine@...>
Bug #3318: net/imap/test_imap.rb reports an error on Windows
[#41353] [Bug #3037] testrb の動作が1.8.7 の testrb と違いすぎる — Yusuke Endoh <redmine@...>
チケット #3037 が更新されました。 (by Yusuke Endoh)
2010年5月19日21:04 Yusuke Endoh <redmine@ruby-lang.org>:
[#41377] [Bug #3326] ruby_1_8がAIXでコンパイルできません。 — Yutaka Kanemoto <redmine@...>
Bug #3326: ruby_1_8がAIXでコンパイルできません。
[#41382] [Feature #3328] Kernel#p outputs as default_internal encoding, and so on — Masaya Tarui <redmine@...>
Feature #3328: Kernel#p outputs as default_internal encoding, and so on
[#41407] [Bug #3339] win32ole test failure — Usaku NAKAMURA <redmine@...>
Bug #3339: win32ole test failure
助田です。
こんにちは、なかむら(う)です。
助田です。
こんにちは、なかむら(う)です。
志村と申します
[#41423] [Bug #3345] webrick test failure on Windows(?) — Usaku NAKAMURA <redmine@...>
Bug #3345: webrick test failure on Windows(?)
[#41430] [bug:trunk] rubyspec: Kernel.spawn redirects both STDERR and STDOUT to the given name ERROR — Yusuke ENDOH <mame@...>
遠藤です。
[#41452] [Bug #3360] rdoc fails when including BOM — white leaf <redmine@...>
Bug #3360: rdoc fails when including BOM
チケット #3360 が更新されました。 (by Nobuyoshi Nakada)
[#41481] [Bug #3370] test failure of drb — Usaku NAKAMURA <redmine@...>
Bug #3370: test failure of drb
[ruby-dev:41422] trunk/1.9.2 で test_io.rb が test_print_separators で固まる
近永と申します。
Bug なのか環境が悪いのか単に test の問題なのか判断がつかないので ML で報告させて頂きます。
ruby_1_9_2 ブランチと trunk で、make test-all が以下のように固まって進まなくなってしまいます。
$ uname -a
Linux cluster05 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux
$ ./ruby-trunk -v
ruby 1.9.3dev (2010-05-25 trunk 28010) [i686-linux]
$ make test-all TESTS=-v
(snip)
TestIO#test_pipe_block_close: 0.00 s: .
TestIO#test_pos: 0.00 s: .
TestIO#test_print: 0.05 s: .
TestIO#test_print_separators:
↑ここで止まる
test_io.rb から抜き出して削っていくと以下の内容で再現できました。
========= 再現スクリプト ==========
begin
Thread.new do
thr = Thread.start { sleep }
$SAFE = 4
thr.kill
end.join
rescue SecurityError
puts "caught SecurityError : #{$!}"
end
#$, = ':'
$\ = "\n"
r, w = IO.pipe
w.print('a') # <- hangup here
w.close
r.close
===================================
shrink の過程で
* $SAFE = 4 とするテストで Timeout.timeout を利用しているために
timeout メソッドの ensure 節の Thread#kill が SecurityError 例外を
発生させてしまい、本来テストしたい SecurityError 例外の発生が確認できていない
* test_print_separators で pipe の読み書きでブロックしていた
ので、それぞれ他のテストを参考に回避するパッチを書きテストは通るようになりました。
末尾にパッチをはりつけています。
気になるのは、test_print_separators の内容はそれだけを実行すれば通るということです。
pipe への書き込みが(読み出されないと)ブロックしてしまうこと自体はありうるとは思いますが
その前に SecurityError 例外の発生?があるかどうかでブロックせずに pipe に書き込める
サイズが変化してしまうのがどうも関連があるように思えなくてすっきりしません。
これはこういうものでしょうか?あるいは何かバグが潜んでいる予兆でしょうか?
以上、よろしくお願い致します。
Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb (revision 28018)
+++ test/ruby/test_io.rb (working copy)
@@ -740,12 +740,12 @@
end
def safe_4
- Thread.new do
- Timeout.timeout(10) do
- $SAFE = 4
- yield
- end
- end.join
+ unless (Thread.new do
+ $SAFE = 4
+ yield
+ end.join(10))
+ flunk("timeout in safe_4")
+ end
end
def pipe(wp, rp)
@@ -1461,15 +1461,16 @@
def test_print_separators
$, = ':'
$\ = "\n"
- r, w = IO.pipe
- w.print('a')
- w.print('a','b','c')
- w.close
- assert_equal("a\n", r.gets)
- assert_equal("a:b:c\n", r.gets)
- assert_nil r.gets
- r.close
-
+ pipe(proc do |w|
+ w.print('a')
+ w.print('a','b','c')
+ w.close
+ end, proc do |r|
+ assert_equal("a\n", r.gets)
+ assert_equal("a:b:c\n", r.gets)
+ assert_nil r.gets
+ r.close
+ end)
ensure
$, = nil
$\ = nil
--
Chikanaga Tomoyuki
Nippon Control System Corp.