-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some File::Stat operations don't work for Oracle JDK #2913
Comments
Further investigations: Stock Ubuntu VM on EC2
Stock RHEL VM on EC2:
|
I suspect the Ubuntu VM is failing to load our native stub. Can you try passing |
@mkristian I see we still have a jni dir under lib, but I think we're still letting jffi create a tempfile and load native bits from there. Perhaps we just need a launcher or Main change to include lib/jni in classpath? That would save us from issues unpacking the binary to /tmp and having security policies prevent loading it. |
|
Also, the output of the command with |
@headius the jffi-native.jar gets shaded into lib/jruby.jar and we still unpack those file under lib/jni guess addin lib/jni to classpath on the launcher would do AND remove the same files from lib/jruby.jar BUT we also should allow to set a different tmp dir for unpacking those files ( unless this is already possible ) for all the folks using embedded jruby. |
This is required to resolve a Java 8 + JRuby FFI bug which causes File::Stat#dev_minor and similar functions to raise this exception: > NotImplementedError: block device detection unsupported or native > support failed to load References * elastic#3127 * jruby/jruby#2913 Fixes elastic#3216
In digging, I found that Ubuntu 14.04's libc6 package doesn't have a file named "libcrypt.so" and JRuby tries to load that. There are two known workarounds at this time:
I've seen this before specifically with ruby ffi where it tries to search for |
Full details of my debugging can be found here: elastic/logstash#3127 (comment) |
Installed Oracle JDK using:
Then tried using
blockdev?
anddev_minor
:Seeing this in elastic/logstash#3127
The text was updated successfully, but these errors were encountered: