From: "mame (Yusuke Endoh)" Date: 2012-05-17T00:32:21+09:00 Subject: [ruby-core:45089] [ruby-trunk - Bug #6416][Assigned] Deadlock when calling Thread#join from signal interrupt context Issue #6416 has been updated by mame (Yusuke Endoh). Status changed from Open to Assigned Assignee set to kosaki (Motohiro KOSAKI) Kosaki-san, could you take a look? -- Yusuke Endoh ---------------------------------------- Bug #6416: Deadlock when calling Thread#join from signal interrupt context https://bugs.ruby-lang.org/issues/6416#change-26662 Author: ender672 (Timothy Elliott) Status: Assigned Priority: Normal Assignee: kosaki (Motohiro KOSAKI) Category: Target version: ruby -v: ruby 2.0.0dev (2012-05-09 trunk 35598) [x86_64-linux] =begin The interpreter can deadlock when calling Thread#join both from the main context and from the signal handler context. t = Thread.new{ sleep 3 } Signal.trap "SIGINT" do t.join end puts 'Press ctrl + c now' t.join The above will deadlock on linux x86_64 with ruby 1.9.x and ruby trunk. It works fine with ruby 1.8.7-p352 and JRuby. =end -- http://bugs.ruby-lang.org/