From: Aaron Patterson Date: 2012-06-24T05:49:44+09:00 Subject: [ruby-core:45811] Re: [ruby-trunk - Bug #6634][Open] Deadlock with join and ConditionVariable --wac7ysb48OaltWcw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jun 23, 2012 at 11:49:14PM +0900, meh. (meh. I don't care) wrote: >=20 > Issue #6634 has been reported by meh. (meh. I don't care). >=20 > ---------------------------------------- > Bug #6634: Deadlock with join and ConditionVariable > https://bugs.ruby-lang.org/issues/6634 >=20 > Author: meh. (meh. I don't care) > Status: Open > Priority: Normal > Assignee:=20 > Category: core > Target version:=20 > ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] >=20 >=20 > I'm getting a fatal deadlock in one of my gems, it's a simple threadpool = implementation. >=20 > The library works both in Rubinius and JRuby, so I guess it's a bug. >=20 > The gem is here: https://github.com/meh/ruby-threadpool >=20 > The example that crashes is attached. >=20 > Basically it raises a fatal deadlock if you join a thread and then call C= onditionVariable#wait, I'm not 100% sure if the bug is in the ConditionVari= able or what, all I know is that it happens in that situation and that it w= orks on Rubinius and JRuby. I can't seem to reproduce this error: http://www.youtube.com/watch?v=3D8J_eBXZ7ud4 Can you reduce the error to a self contained example that reliably fails? --=20 Aaron Patterson http://tenderlovemaking.com/ --wac7ysb48OaltWcw Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Darwin) iQEcBAEBAgAGBQJP5ivdAAoJEJUxcLy0/6/GazMIAJgC/kLfHnHVFSJjeYc0a2tf Fjc0e94q9QGNguh7TdKDswuSsNmaprKgrN3mY0YtK3HWI1RhHyscakcV3o3V//3k qadnbtPzmLN7o9TANgcHxxRgKbuR2BMeZ+egx7UMVQqhRXQRSF/Sy46DGqwxKEoS wqOnXRgBj/v4TUcMzflDFINZ+heIsgEeOxXNLuD3Orj8kc5VYAEVozmGaITiO+wk lHgt++TbM8hifaslsfyeLLoN6I+OG5CCmLzBE7BlViwx4uQZCCxihBkfJEZ8lV2V soCeELgR8Tz4E2uCprpvqK19GUFHsAIze+rj1emQrLnmyzIloYCeFkV5NBDJffM= =GnUy -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--