Project

General

Profile

Actions

Bug #6634

closed

Deadlock with join and ConditionVariable

Added by meh. (meh. I don't care) over 12 years ago. Updated over 10 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
Backport:
[ruby-core:45798]

Description

I'm getting a fatal deadlock in one of my gems, it's a simple threadpool implementation.

The library works both in Rubinius and JRuby, so I guess it's a bug.

The gem is here: https://github.com/meh/ruby-threadpool

The example that crashes is attached.

Basically it raises a fatal deadlock if you join a thread and then call ConditionVariable#wait, I'm not 100% sure if the bug is in the ConditionVariable or what, all I know is that it happens in that situation and that it works on Rubinius and JRuby.


Files

lol.rb (134 Bytes) lol.rb meh. (meh. I don't care), 06/23/2012 11:49 PM
noname (500 Bytes) noname Anonymous, 06/24/2012 05:54 AM
reduced.rb (170 Bytes) reduced.rb Reduced testcase meh. (meh. I don't care), 06/26/2012 01:59 AM
lol2.rb (189 Bytes) lol2.rb mame (Yusuke Endoh), 11/06/2012 12:16 AM
thread_deadlock_error_test.rb (1.47 KB) thread_deadlock_error_test.rb Test code to show how this error occurs we4tech (nhm tanveeer hossain khan), 04/30/2013 12:12 AM
t.rb (996 Bytes) t.rb nikkoara (L Nicoara), 05/01/2014 09:51 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0