Skip to content

jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found #138

@kingluo

Description

@kingluo

The error message is very weird.

In Centos7 with openjdk 11:

...
Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: could not load FFI provider jnr.ffi.provider.jffi.Provider
        at jnr.ffi.provider.InvalidRuntime.newLoadError(InvalidRuntime.java:102)
        at jnr.ffi.provider.InvalidRuntime.getMemoryManager(InvalidRuntime.java:53)
        at jnr.ffi.Pointer.wrap(Pointer.java:48)
        at demo.echo.PollThread.run(App.java:30)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.UnsatisfiedLinkError: could not get native definition for type `POINTER`, original error message follows: java.lang.UnsatisfiedLinkError: Unable to
 execute or load jffi binary stub from `/home/`. Set `TMPDIR` or Java property `java.io.tmpdir` to a read/write path that is not mounted "noexec".
.../jffi9396993929588479283.so: /lib64/libc.so.6: version `GLIBC_2.27' not found (required by .../jffi9396993929588479
283.so)
        at com.kenai.jffi.internal.StubLoader.tempLoadError(StubLoader.java:555)
...

It reports noexec problem, but the /home is not mounted with noexec, is it symbol issue?
I found only memfd_create C symbol comes from `GLIBC_2.27'.

Please help, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions