Skip to content

JRuby fails to load on ppc64le #10755

@mew2057

Description

@mew2057

The following is a reproduction of the issue on the jruby issue tracker

I wrote a patch script to repair the jar for our environment.

Environment

  • JRuby bundled in logstash 7.0.0 ( jar is jruby-complete-9.2.7.0.jar)
  • Linux h1 4.14.0-29.el7a.ppc64le Minor web form change #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

Resolution

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions