[ruby-core:94419] [Ruby master Bug#16110] Doesn't detect deadlock on Ruby 2.4 and 2.5 on Windows
From:
josh.cheek@...
Date:
2019-08-18 20:09:12 UTC
List:
ruby-core #94419
Issue #16110 has been reported by josh.cheek (Josh Cheek).
----------------------------------------
Bug #16110: Doesn't detect deadlock on Ruby 2.4 and 2.5 on Windows
https://bugs.ruby-lang.org/issues/16110
* Author: josh.cheek (Josh Cheek)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.5p157 (2019-03-15 revision 67260) [i386-mingw32]
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN
----------------------------------------
The following code is detected as a deadlock, except in Ruby 2.4 and 2.5 on Windows:
``` sh
ruby -r thread -ve 'Thread.new { Queue.new.shift }.join'
```
You can see it run in this code: https://github.com/JoshCheek/childprocess_experiment/blob/368052de8e433933035395216e8c48b8302b6fdf/Rakefile#L3
And it gets stuck in AppVeyor's CI because it doesn't realize it's deadlocked: https://ci.appveyor.com/project/JoshCheek/childprocess-experiment/build/job/3j06xan4ygm63ppd
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>