Tony Arcieri created JRUBY-6314: ----------------------------------- Summary: Deadlock when using Queue to send messages between threads Key: JRUBY-6314 URL: https://jira.codehaus.org/browse/JRUBY-6314 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6.5, JRuby 1.6.6 Environment: jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] jruby 1.6.6.dev (ruby-1.9.2-p312) (2012-01-03 bdaf760) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_29) [darwin-x86_64-java] Reporter: Tony Arcieri
I wrote a small script to benchmark the performance of the Queue class: https://gist.github.com/1556385 Running this script will sporadically (~50% of the time) cause a complete deadlock of the JVM, as in: - Won't respond to ^\ or any signals except SIGKILL (e.g. SIGINT, SIGSTOP) - Can't attach with tools like VisualVM or jstack: attach: task_for_pid(32017) failed (5) I can't reproduce this problem on a newer OpenJDK build: - jruby 1.6.5 (ruby-1.9.2-p136) (2011-10-25 9dcd388) (OpenJDK 64-Bit Server VM 1.8.0-b14) [darwin-amd64-java] - jruby 1.6.6.dev (ruby-1.9.2-p312) (2012-01-03 bdaf760) (OpenJDK 64-Bit Server VM 1.8.0-b14) [darwin-amd64-java] - jruby 1.7.0.dev (ruby-1.9.3-p0) (2011-12-30 ba99e33) (OpenJDK 64-Bit Server VM 1.8.0-b14) [darwin-amd64-java] This works 100% of the time without issues -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email