Project

General

Profile

Bug #16110

Doesn't detect deadlock on Ruby 2.4 and 2.5 on Windows

Added by josh.cheek (Josh Cheek) about 1 month ago. Updated 29 days ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.5p157 (2019-03-15 revision 67260) [i386-mingw32]
[ruby-core:94419]

Description

The following code is detected as a deadlock, except in Ruby 2.4 and 2.5 on Windows:

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

History

Updated by MSP-Greg (Greg L) 29 days ago

Is this specific to 32 bit builds of 2.4 & 2.5? I think 64 bit builds all function as expected...

Also available in: Atom PDF