-
-
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
NotImplementedError: kill unsupported or native support failed to load - works on RHEL5, fails RHEL7 #4458
Comments
Do you have SELinux enabled by any chance? If you do, do you still encounter the problem when it is disabled? |
Yes, it would be enabled. Not able to test it without it being enabled unfortunately. :( |
@kimptoc This is almost certainly related to SELinux, as @preetpalS guessed. The issue is that we unpack the jffi library, our native layer, to the environment-provided temp location. On SELinux, you are disallowed from loading executables or dynamic libraries from the shared temp directories. You can work around it by setting a different TEMP dir that allows loading executables. We could probably do a better job reporting this error, but the |
Ok - thanks for the update. Shall we close the ticket then? |
@kimptoc Yes, but maybe this deserves a more prominent entry on the wiki? Seems to come up frequently enough for a FAQ. |
I'm not sure if we can do a better error, but that would be at the jnr level in any case. |
RHEL 5
$ java -jar /appl/lib/jruby-complete-1.7.26.jar -e "x=Process.spawn 'sleep 70000';Process.kill 'KILL',x"
$ uname -a
Linux cdcs470546.eu.rabonet.com 2.6.18-411.el5 #1 SMP Thu Jun 2 02:56:21 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)
RHEL 7 (with jruby.native.verbose enabled)
Linux cdcs470742.eu.rabodev.com 3.10.0-327.28.2.el7.x86_64 #1 SMP Mon Jun 27 14:48:28 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux
Red Hat Enterprise Linux Server release 7.2 (Maipo)
Environment
Provide at least:
jruby -v
) and command line (flags, JRUBY_OPTS, etc)-- 1.7.26
uname -a
)-- see above
Other relevant info you may wish to add:
-- none
-- none
-- LD_LIBRARY_PATH unset in both environments. None others that seem relevant.
Expected Behavior
-- would expect same behaviour as in RHEL5.
-- have been able to "fix" this by explicitly adding the jffi.so lib to LD_LIBRARY_PATH on RHEL7
-- see above
Actual Behavior
-- see above
-- see above
Thanks.
The text was updated successfully, but these errors were encountered: