Skip to content
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

JRuby doesn't start on ppc64le when loading environment #5725

mew2057 opened this issue May 3, 2019 · 3 comments


None yet
4 participants
Copy link

commented May 3, 2019


  • JRuby bundled in logstash 7.0.0 ( jar is jruby-complete-
  • Linux h1 4.14.0-29.el7a.ppc64le #1 SMP Mon Jan 22 16:26:32 EST 2018 ppc64le ppc64le ppc64le GNU/Linux

Other relevant info you may wish to add:

  • Application : Logstash

Expected Behavior

  • When running the environment.rb JRuby should load all modules without exiting execution.

Actual Behavior

  • When the JRuby Application (logstash) is loaded a LoadError is thrown by ffi/ffi. The bubbled error message is somewhat vague (to a user ignorant to JRuby).
[2019-05-03T10:41:38,701][ERROR][org.logstash.Logstash    ] 
java.lang.IllegalStateException: Logstash stopped processing because of an error: 
(LoadError) load error: ffi/ffi -- java.lang.NullPointerException: null


I was able to trace the bug to jruby/lib/ruby/stdlib/ffi/platform/powerpc64-linux/. It looks
as though the platform.conf file was not created for this platform. Copying the types.conf file to platform.conf appears to resolve the problem.


This comment has been minimized.

Copy link

commented May 8, 2019

gonna +1 on this - have the same issue in ruby/lib/ruby/stdlib/ffi/platform/arm-linux
Same result - failure to launch logstash on raspbian stretch 4.19.33-rockchip #5.77 armv7l
same fix resolved the issue - copying types.conf to platform.conf


This comment has been minimized.

Copy link

commented May 14, 2019

@mew2057 @ryanbreed Can you turn that into a PR? Better yet, if we can regenerate these files for these platforms then we'll know they're accurate.

@headius headius modified the milestones: JRuby, JRuby May 14, 2019


This comment has been minimized.

Copy link

commented May 20, 2019

the workaround mentioned above does not help unfortunately on:

$ uname -a
Linux jetson 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.