Skip to content

Improve error handling re: FFI loading when system temp dir is mounted 'noexec' #2186

@cprice404

Description

@cprice404

When trying to load the FFI subsystem (via .so files embedded in jar), it appears that JRuby copies the .so files out of the jar into a temp dir and then loads them from there.

We had a user who was getting a cryptic error message today:

Failed to load native POSIX impl; falling back on Java impl.

After some sleuthing we determined that the user's /tmp dir was mounted noexec. Changing the mount options fixed the problem, but it would be nice to have a better error message. Ideally the error would state that:

  1. the tmp dir is not executable, and
  2. what options / flags can be used to change to a different temp dir

Our user was able to use -Djava.io.tmpdir.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions