Chuck Remes created JRUBY-6283:
----------------------------------
Summary: Master crashes when calling an FFI-attached C library
function
Key: JRUBY-6283
URL: https://jira.codehaus.org/browse/JRUBY-6283
Project: JRuby
Issue Type: Bug
Components: Interpreter
Affects Versions: JRuby 1.7
Environment: OSX 10.6.8, Java7u2
Reporter: Chuck Remes
Priority: Blocker
Download this file. It's a tarball containing 2 gems (ffi-rzmq and zmqmachine)
and a C library that is loaded via FFI. There is also a script (install_me)
that will ask for sudo permission to install the C lib to /usr/local/lib.
file: http://dl.dropbox.com/u/44434337/jruby_ffi.tgz
After running 'install_me' there will be an unpacked gem directory for
zmqmachine.
% cd zmqmachine-0.7.1/examples
% jruby pub_sub.rb
This should result in a spectacular backtrace complaining about a NoMethodError
for some FFI function.
https://gist.github.com/ec1065df39561c46b1ff
Interestingly, this same code runs fine on Windows (though the JRuby master is
from Friday, 20111216).
Trying to run jruby master with compile.mode=OFF and/or
compile.invokedynamic=false has no effect. It still crashes though the
backtraces will be different.
The line it crashes on is a call to an FFI-wrapped C function.
--
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