-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
netty-tcnative 2.0.61 dependency might break when used with Alpine #10930
Comments
I'm going to blame Alpine much sooner than Java 21. Especially for a crash in native code. I assume you meant BellSoft. It looks like the package you used was most likely bellsoft-jre21.0.2+14-linux-x64-musl. netty/netty-tcnative#789 is equally similar to the alpine aports issue, but both are in a different function. This is almost certainly a missing symbol. These can generally be fixed by using LD_PRELOAD. See #10096 (comment) for the last time I looked into one. |
@ejona86 Thanks! |
I think this might be fixed by netty-tcnative 2.0.63.Final without the need of LD_PRELOAD |
@normanmaurer, looks like 2.0.63 still needs LD_PRELOAD of gcompat (because the java in alpine doesn't use the gcompat linker, but that varies depending on which java you use). And now there's missing
|
Seems like this is resolved, as LD_PRELOAD is required on Alpine. Seems we may be even better off now than after the planned upgrade to 2.0.63. If things aren't good, comment, and it can be reopened. I've said it before, but I recommend against Alpine. We don't officially support or test against it. If it happens to work, fine, but there are no guarantees. (In the olden days you had to compile tcnative yourself. At some point gcompat got good enough you no longer needed to. But it is fickle.) |
I opened a follow-up on tcnative as this is also used by armeria (I didn't think to check here). Thanks for all the tips @ejona86! netty/netty-tcnative#853 |
I got this when running the Google SDK (which depends on
grpc-netty-shaded 1.61.0
) with Bellsoft's alpine docker image of jdk 21:This seems to have been fixed in
netty-tcnative 2.0.62
.Related:
grpc-java/gradle/libs.versions.toml
Line 6 in 0d39c2c
grpc-java/repositories.bzl
Line 38 in 0d39c2c
The text was updated successfully, but these errors were encountered: