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

Unable to generate core dump when native library crashes #1224

Open
lokesh-penukuduru opened this issue Jan 24, 2025 · 3 comments
Open

Unable to generate core dump when native library crashes #1224

lokesh-penukuduru opened this issue Jan 24, 2025 · 3 comments

Comments

@lokesh-penukuduru
Copy link

lokesh-penukuduru commented Jan 24, 2025

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,

> > #
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007efde450e688, pid=1, tid=103
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.13+11 (17.0.13+11) (build 17.0.13+11)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.13+11 (17.0.13+11, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc,
linux-amd64)
# Problematic frame:
# C  [lib.Converter.so.1.0+0xee688]  SetConverterMode+0xc8
#
# Core dump will be written. Default location: //core.1
#
# JFR recording file will be written. Location: //hs_err_pid1.jfr
#
# An error report file with more information is saved as:
# /nfs/my-folder/core_dump_%t.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

[error occurred during error reporting (), id 0xb, SIGSEGV (0xb) at
pc=0x00007eff17d249a2]

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

@karianna
Copy link
Contributor

karianna commented Jan 27, 2025

@lokesh-penukuduru please try with 17.0.14 and report back.

@lokesh-penukuduru
Copy link
Author

lokesh-penukuduru commented Jan 27, 2025

@karianna, but I see the latest tag of eclipse-temurin in docker hub was 17.0.13 at the moment. But I could see the specified version released here

@karianna
Copy link
Contributor

Yeah it might be a few days before our official images get updated

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

No branches or pull requests

2 participants