* [ruby-dev:50528] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 [not found] <redmine.issue-14727.20180501022747@ruby-lang.org> @ 2018-05-01 2:27 ` usa 2018-05-01 2:43 ` [ruby-dev:50531] " ko1 2018-05-01 2:59 ` [ruby-dev:50532] " usa 2 siblings, 0 replies; 3+ messages in thread From: usa @ 2018-05-01 2:27 UTC (permalink / raw) To: ruby-dev Issue #14727 has been reported by usa (Usaku NAKAMURA). ---------------------------------------- Bug #14727: TestQueue#test_queue_with_trap always timeout on Windows10 https://bugs.ruby-lang.org/issues/14727 * Author: usa (Usaku NAKAMURA) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: * ruby -v: ruby -v: ruby 2.6.0dev (2018-05-01 trunk 63310) [x64-mswin64_140] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 表題の通りです。ささださんも把握しているそうなので、備忘録として。 ``` [19/35] TestQueue#test_queue_with_trap = 10.13 s 1) Error: TestQueue#test_queue_with_trap: Timeout::Error: execution of assert_in_out_err expired timeout (10 sec) pid 11608 exit 0 | C:/Users/usa/develop/ruby/core/mytree/test/thread/test_queue.rb:553:in `test_queue_with_trap' ``` -- https://bugs.ruby-lang.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:50531] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 [not found] <redmine.issue-14727.20180501022747@ruby-lang.org> 2018-05-01 2:27 ` [ruby-dev:50528] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 usa @ 2018-05-01 2:43 ` ko1 2018-05-01 2:59 ` [ruby-dev:50532] " usa 2 siblings, 0 replies; 3+ messages in thread From: ko1 @ 2018-05-01 2:43 UTC (permalink / raw) To: ruby-dev Issue #14727 has been updated by ko1 (Koichi Sasada). 私も Windows 10 にして再現していました。 私が理解している範囲で、現象をちょっと書いておきます。 (1) GVL に Win32 の Mutex を使っている (2) Win32 Mutex は、以前はスケジューリングをきちんと(インタプリタ開発者視点)してくれていた。つまり、ある Mutex について、それを待っているスレッド B がある場合、その Mutex を保持していたスレッド A が Mutex を離すと、B の実行が再開されるようになっていた。 (3) Windows 10 にすると(Windows 10 が再現条件か、サンプルが少ないのでなんとも言えないのですが、とりあえず少ない証言から言うと)、スレッド A が Mutex を離しても、スレッド B に処理が素直に渡らなくなった。 というものです。 pthread では、それを回避するために、なんか難しいことをしているのですが、Windows では必要なくて。便利で良かったね、と思っていたんですが、なんか考えないといけないようです。さて、どうしよう。 ---------------------------------------- Bug #14727: TestQueue#test_queue_with_trap always timeout on Windows10 https://bugs.ruby-lang.org/issues/14727#change-71748 * Author: usa (Usaku NAKAMURA) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: * ruby -v: ruby -v: ruby 2.6.0dev (2018-05-01 trunk 63310) [x64-mswin64_140] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 表題の通りです。ささださんも把握しているそうなので、備忘録として。 ``` [19/35] TestQueue#test_queue_with_trap = 10.13 s 1) Error: TestQueue#test_queue_with_trap: Timeout::Error: execution of assert_in_out_err expired timeout (10 sec) pid 11608 exit 0 | C:/Users/usa/develop/ruby/core/mytree/test/thread/test_queue.rb:553:in `test_queue_with_trap' ``` -- https://bugs.ruby-lang.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:50532] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 [not found] <redmine.issue-14727.20180501022747@ruby-lang.org> 2018-05-01 2:27 ` [ruby-dev:50528] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 usa 2018-05-01 2:43 ` [ruby-dev:50531] " ko1 @ 2018-05-01 2:59 ` usa 2 siblings, 0 replies; 3+ messages in thread From: usa @ 2018-05-01 2:59 UTC (permalink / raw) To: ruby-dev Issue #14727 has been updated by usa (Usaku NAKAMURA). いちおう、手元(というかなんというか)での再現状況は、 - □ Windows 7 - □ Windows Server 2012 R2 (Windows 8.1相当) - ☑ Windows 10 という感じです。 ---------------------------------------- Bug #14727: TestQueue#test_queue_with_trap always timeout on Windows10 https://bugs.ruby-lang.org/issues/14727#change-71750 * Author: usa (Usaku NAKAMURA) * Status: Assigned * Priority: Normal * Assignee: ko1 (Koichi Sasada) * Target version: * ruby -v: ruby -v: ruby 2.6.0dev (2018-05-01 trunk 63310) [x64-mswin64_140] * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- 表題の通りです。ささださんも把握しているそうなので、備忘録として。 ``` [19/35] TestQueue#test_queue_with_trap = 10.13 s 1) Error: TestQueue#test_queue_with_trap: Timeout::Error: execution of assert_in_out_err expired timeout (10 sec) pid 11608 exit 0 | C:/Users/usa/develop/ruby/core/mytree/test/thread/test_queue.rb:553:in `test_queue_with_trap' ``` -- https://bugs.ruby-lang.org/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-05-01 2:59 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <redmine.issue-14727.20180501022747@ruby-lang.org> 2018-05-01 2:27 ` [ruby-dev:50528] [Ruby trunk Bug#14727] TestQueue#test_queue_with_trap always timeout on Windows10 usa 2018-05-01 2:43 ` [ruby-dev:50531] " ko1 2018-05-01 2:59 ` [ruby-dev:50532] " usa
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).