-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Unable to generate core dump when native library crashes #1224
Comments
@lokesh-penukuduru please try with 17.0.14 and report back. |
Yeah it might be a few days before our official images get updated |
@karianna, here I have tried with 17.0.14 and the issue still persists
It was generating the core dump at the specified nfs location when I kill using this command, 'kill -s SIGSEGV $$', but it was unable to create core dump when a crash is occurring in native library |
What program does lib.Converter.so come from? |
This is a native C++ library used by our Java application via JNI. |
OK, so the crash/bug is actually in that native library, Java is just propagating back the error message. You'll want to attach a C++ debugger to that lib in the SetConverterMode method |
Isn't the core dumped when a crash occurs in native library in my case? |
It seems to think it's dumping the core at /nfs/core.%t.1 |
@karianna, actually it is not dumping there, I can confirm this as there is no such file was present under the nfs, which is persistent storage. But I could see the error report file, "hs_err_pid.1_%t_%u.log" under the nfs. |
How to generate core dump when a native library crash in a java service
I have a java service which is running in a Kubernetes cluster, uses a cpp native library via JNI and when there occurs a segmentation fault in native library, it was unable to generate the core dump, the logs are as follows,
Java version:
Picked up JAVA_TOOL_OPTIONS: -Xms1024m -Xmx4096m
openjdk version "17.0.13" 2024-10-15
OpenJDK Runtime Environment Temurin-17.0.13+11 (build 17.0.13+11)
OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (build 17.0.13+11, mixed mode, sharing)
Your operating system and platform:
OS: linux (amd64)
OS Image: Amazon Linux 2
Kernel version: 5.10.230-223.885.amzn2.x86_64
The text was updated successfully, but these errors were encountered: