-
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
JVM crash with grpc-netty-shaded 1.54.x and alpine docker image #10947
Comments
Ideally you'd tell me what container you are using (name+version). See also #10930
You were probably still using grpc-netty-shaded. As mentioned in the google-cloud-java issue, you would have to exclude grpc-netty-shaded and add grpc-netty dependency instead. grpc-netty-shaded can't work directly with netty-tcnative-alpine.
That sounds like the fix worked. You got past the crash and now you just are using hostnames that DNS doesn't know about.
For 1.61, you need gcompat and libunwind, as seen in the issue you linked: #10096 (comment) .
I really recommend you not to use Alpine. These problems go away when using a glibc-based distro. (I'm less bothered by the missing symbols and more bothered by how hard it is for people to debug.) grpc-java 1.54.x uses netty-tcnative 2.0.56.Final. Doing the normal drill to see what's wrong:
|
@ejona86, Thanks for the quick response.
|
Seems like this is resolved with the |
An attempt to upgrade from grpc-netty-shaded 1.44.1 to 1.54.0 ends with a JVM crash.
I tried the below approaches:-
Solution 1: A suggested workaround solution for issues encountered while using GRPC on Alpine:
Reference: #8751
RUN apk add gcompat
ENV LD_PRELOAD=/lib/libgcompat.so.0
After applying the fix, the Java crash issue has been resolved. However, it has introduced a new problem where we encounter the exception java.net.UnknownHostException: contentrights: Name does not resolve.
Solution 2 (Attempted Solution): Some GRPC Git repositories suggest upgrading the GRPC Netty Shaded version. Therefore, I updated to the latest version, GRPC Netty Shaded (1.61.0). Despite upgrading to the latest GRPC Netty Shaded version, the same issue persists.
Reference: #10096
Solution 3:- And tried to include netty-tcnative-alpine version. with suggested dependency version.
https://github.com/grpc/grpc-java/blob/master/SECURITY.md#netty
googleapis/google-cloud-java#3536
but still, we are getting the same exceptions again and again, A fatal error that has been detected by the Java Runtime Environment
can anyone please help me to resolve this error?
@ejona86 can you please take a look
And attaching the dump logs also.
The text was updated successfully, but these errors were encountered: