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

s390x native library fails to load #464

Closed
pawelszkiler opened this issue Jun 21, 2023 · 9 comments · Fixed by #481
Closed

s390x native library fails to load #464

pawelszkiler opened this issue Jun 21, 2023 · 9 comments · Fixed by #481

Comments

@pawelszkiler
Copy link

pawelszkiler commented Jun 21, 2023

It looks like, after #416, the native library fails to load on a few s390x machines.

Failing OSes include (ones that I was able to check):

  • RHEL 7, RHEL 8
  • Ubuntu 16, Ubuntu 18, Ubuntu 20
  • SLES15 SP3, SLES 15 SP4

The error message says:
libsnappyjava.so: /lib64/libc.so.6: version 'GLIBC_2.32' not found (required by libsnappyjava.so).

Previously used version, 1.1.9.1, was working properly and already included s390x native library:

snappy-java-1.1.9.1\org\xerial\snappy\native\Linux ├───aarch64 ├───android-arm ├───arm ├───armv6 ├───armv7 ├───ppc ├───ppc64 ├───ppc64le ├───s390x ├───x86 └───x86_64

so I'm thinking: is the change done in #416 really needed?

Thanks for looking into it.

@pawelszkiler
Copy link
Author

pawelszkiler commented Jun 22, 2023

One important addition: 1.1.9.1, which is currently used, is prone to three high-score vulnerabilities:
CVE-2023-34453
CVE-2023-34454
CVE-2023-34455

which is the reason I've tried updating to a version that has those vulnerabilities resolved.

@xerial
Copy link
Owner

xerial commented Jun 23, 2023

Without #416, I can't build any native libraries for s390x by myself.

I can accept a PR for adding native libraries built with an older version of Linux like RHEL7. Run make native and create a PR that contains an updated native library for s390x

Note that, however, without a docker image of a cross-compiler for s390x, I cannot guarantee future versions of snappy-java will work for an older version of Linux with s390x.

@xerial
Copy link
Owner

xerial commented Jul 15, 2023

The latest version might have fixed this issue.

@pawelszkiler
Copy link
Author

@xerial I have checked the latest version (1.1.10.2) and it still does not work on RHEL7. I confirmed with @namrata-ibm that the issue in question was not addressed in #474
However, it was mentioned by @namrata-ibm that it will be checked how this can be fixed 🤞

@kun-lu20
Copy link
Contributor

PR #481 would fix this issue on s390x.

@xerial Could you please take a look? Thank you very much!

@xerial
Copy link
Owner

xerial commented Jul 21, 2023

Thanks all for the contributions! I just released snappy-java 1.1.10.3 with this fix

@kun-lu20
Copy link
Contributor

Thanks @xerial ! I just tested the newly released libsnappyjava.so for s390x, it worked fine on Linux distributions mentioned in this issue as well as newer ones.

@pawelszkiler
Copy link
Author

@xerial @kun-lu20 I also checked on RHEL 7 and Ubuntu 20 - works as expected. Thanks a lot!

@vineshcpaul
Copy link
Contributor

vineshcpaul commented Sep 25, 2023

@xerial , could you please help fix this issue on ppc64le as well? Opened #512 for the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants