-
Notifications
You must be signed in to change notification settings - Fork 837
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
2.13.0.RELEASE
or later crashes JVM during deployment to k8s
#625
Comments
I'm not familiar with Corretto, so can you please try with a different JVM too please?
Could you please include that log file or at least check it for relevant information? Sorry for the trouble, but this error really isn't descriptive at all. Since both 2.13.0 and 2.13.1 are affected, but 2.12.0 is not the issue might have been introduced somewhere in between 2.13.0 and 2.12.0. Unfortunately that's 116 commits/141 files changed. Which makes it near impossible to identify without further information. Another (but potentially time expensive) alternative is, you building this project yourself and verifing whether the commit has the problem. E.g. build 2.13.0 yourself and try that, if the error persists, then try a commit somewhere in the middle between 2.12 and 2.13, thus limiting the range of potential changes. Repeating until you have a single (or close to a single) commit that causes the issue. |
Thanks for looking into this.
|
OpenJDK or Eclipse Temurin would be good. This test is intended to identify whether this is specific to Corretto or the JVM in general.
I was actually referring to the OS inside the image, but you already answered that in the first block (alpine).
That is very strange. Might this be caused by differences in the config/properties?
You might be able to do the following: docker pull image
docker save image > image.tar
# open the tar and search for the entrypoint in the config
# append something like `|| cat /tmp/hs_err_pid1.log` to the command
docker load < image.tar
# maybe re-tag the image
docker push image |
I got a similar problem, and I checked the hs_err_pid.log,it seems not found the Instructions: (pc=0x0000000000003efe)
0x0000000000003ede:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
Register to memory mapping:
RAX=0x0000000000000000 is an unknown value
RBX=0x000055c0c24f2d60 is an unknown value
RCX=0x0000000000000000 is an unknown value
RDX=0x0000000000000003 is an unknown value
RSP=0x00007f948129a018 is pointing into the stack for thread: 0x000055c0beddb800
RBP=0x00007f948129a050 is pointing into the stack for thread: 0x000055c0beddb800
RSI=0x0000000000000015 is an unknown value
RDI=0x000055c0c24f2d68 is an unknown value
R8 =0x00007f94698fc7d9: _fini+0x11c1 in /tmp/libio_grpc_netty_shaded_netty_transport_native_epoll_x86_645492642195867189808.so at 0x00007f94698f0000
R9 =0x8080808080808080 is an unknown value
R10=0x0000000000000000 is an unknown value
R11=0x0000000000000406 is an unknown value
R12=0x00007f94698fb794: _fini+0x17c in /tmp/libio_grpc_netty_shaded_netty_transport_native_epoll_x86_645492642195867189808.so at 0x00007f94698f0000
R13=0x0000000000000015 is an unknown value
R14=0x00007f948129a08c is pointing into the stack for thread: 0x000055c0beddb800
R15=0x00007f948129a2c0 is pointing into the stack for thread: 0x000055c0beddb800
Stack: [0x00007f948119f000,0x00007f948129fad0], sp=0x00007f948129a018, free space=1004k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000003efe
C [libio_grpc_netty_shaded_netty_transport_native_epoll_x86_645492642195867189808.so+0xb487] netty_jni_util_JNI_OnLoad+0x67
C [libjava.so+0xeb24] Java_java_lang_ClassLoader_00024NativeLibrary_load+0xb4
C 0x00000000f66afd78 |
Also inside of aws or outside? Do you actually use epoll or not? |
|
J 1307 java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;Ljava/lang/Class;)Ljava/lang/Class; (0 bytes) @ 0x00007f94725faeba [0x00007f94725fae40+0x7a]
J 4261 C1 java.lang.Class.forName(Ljava/lang/String;)Ljava/lang/Class; (15 bytes) @ 0x00007f9472f944cc [0x00007f9472f94320+0x1ac]
j io.grpc.netty.shaded.io.grpc.netty.Utils.isEpollAvailable()Z+12
j io.grpc.netty.shaded.io.grpc.netty.Utils.<clinit>()V+226
v ~StubRoutines::call_stub
j io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder.<clinit>()V+26 I found this in the error log. And it looks like the Could you update to grpc-java 1.44.0 and test again? If the error persists, we have to open an issue upstream for help.
|
@ST-DDT
|
@fireXtract Could you please include the complete stacktrace? There is no Only in If I have the entire stacktrace I can analyze whether I have to split it into two separate classes or just two different methods. Do you use netty or netty shaded? |
I guess I have to ramp up my @fireXtract From what I can tell, your error is not related to the original error. |
Sorry for the late reply. |
The context
We would like to upgrade the dependency version of
net.devh:grpc-server-spring-boot-starter
in our Gradle build script for our microservice.The bug
The application does not start if using version
2.13.0.RELEASE
or later. That makes the deployment fail.Stacktrace and logs
Steps to Reproduce
It happens just right after deploying the application to our AWS QA K8S environment. Build, unit and integration tests work fine. Also running the application locally (with docker or through IntelliJ works).
The application's environment
Which versions do you use?
Additional context
With version
2.12.0.RELEASE
everything works fine.Did it ever work before?
Yes, up to version
2.12.0.RELEASE
.Do you have a demo?
No
The text was updated successfully, but these errors were encountered: