JRuby FFI sometimes hangs or sometimes segfaults on org.jruby.ext.ffi.jffi.DefaultMethodFactory$Signed32Invoker.invoke ----------------------------------------------------------------------------------------------------------------------
Key: JRUBY-5046 URL: http://jira.codehaus.org/browse/JRUBY-5046 Project: JRuby Issue Type: Bug Components: Extensions Affects Versions: JRuby 1.5.1 Environment: OSX 10.6.4 java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065) Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode) jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java] Reporter: Chuck Remes When running the ffi-rzmq gem with this code (http://gist.github.com/552680), at exit it sometimes exits cleanly, sometimes hangs and sometimes segfaults (with http://gist.github.com/554010). The ffi-rzmq gem is a Ruby FFI wrapper for libzmq (zeromq.org) which is a C library. During one of the hangs I did a thread dump from jvisualvm. The last FFI method I saw in the stack was the one in the title. Here are the dumps of all active threads. http://gist.github.com/554062 It's hard to reproduce this consistently probably due to the Ruby threads. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.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