adoptium / adoptium-support

For end-user problems reported with our binary distributions
Apache License 2.0
48 stars 13 forks source link

Getting fatal error while deploying the app #1032

Open seenuusa455 opened 9 months ago

seenuusa455 commented 9 months ago

Please provide a brief summary of the bug

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007fd31e91b0e4, pid=1, tid=23

JRE version: OpenJDK Runtime Environment Temurin-17.0.10+7 (17.0.10+7) (build 17.0.10+7)
Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (17.0.10+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
Problematic frame:
V [libjvm.so+0xb8a0e4] markWord::displaced_mark_helper() const+0x14

Core dump will be written. Default location: //core.1

An error report file with more information is saved as:
/tmp/hs_err_pid1.log

If you would like to submit a bug report, please visit:
https://github.com/adoptium/adoptium-support/issues

Did you test with the latest update version?

no

Please provide steps to reproduce where possible

No response

Expected Results

Started seeing errors while deploying a Springboot app with alpine base docker image

Actual Results

App is not able to deploy and going into crash loop with above mentioned JVM error

What Java Version are you using?

JRE version: OpenJDK Runtime Environment Temurin-17.0.10+7 (17.0.10+7) (build 17.0.10+7)

What is your operating system and platform?

linux-amd64

How did you install Java?

its a docker image trying to deploy on AWS EKS

Did it work before?

yes, it was working fine since few days

Did you test with other Java versions?

no

Relevant log output

A fatal error has been detected by the Java Runtime Environment:       

SIGSEGV (0xb) at pc=0x00007fd31e91b0e4, pid=1, tid=23                 

JRE version: OpenJDK Runtime Environment Temurin-17.0.10+7 (17.0.10+7) (build 17.0.10+7)             
Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (17.0.10+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)         
Problematic frame:                       
V  [libjvm.so+0xb8a0e4]  markWord::displaced_mark_helper() const+0x14                                

Core dump will be written. Default location: //core.1                  

An error report file with more information is saved as:                
/tmp/hs_err_pid1.log                     

If you would like to submit a bug report, please visit:                
https://github.com/adoptium/adoptium-support/issues
karianna commented 9 months ago

https://bugs.openjdk.org/browse/JDK-8313658 could be related

github-actions[bot] commented 6 months ago

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

github-actions[bot] commented 3 months ago

We are marking this issue as stale because it has not been updated for a while. This is just a way to keep the support issues queue manageable. It will be closed soon unless the stale label is removed by a committer, or a new comment is made.

karianna commented 3 months ago

@seenuusa455 can you try with 17.0.12 and see if the issue has been resolved?

marlramirez-clgx commented 2 months ago

Hello @karianna , I'm facing the same issue with 17.0.12+10

` A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007b84c294dd1b, pid=1, tid=89

JRE version: OpenJDK Runtime Environment (17.0.12+10) (build 17.0.12+10-LTS) Java VM: OpenJDK 64-Bit Server VM (17.0.12+10-LTS, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64) Problematic frame: V [libjvm.so+0xb8dd1b] markWord::displaced_mark_helper() const+0xb

Core dump will be written. Default location: /core.%e.1.%t

An error report file with more information is saved as: /home/vcap/app/hs_err_pid1.log

If you would like to submit a bug report, please visit: https://bell-sw.com/support

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

seenuusa455 commented 2 months ago

Hi @marlramirez-clgx, I added below command to my Dockerfile to fix the issue RUN apk add --no-cache gcompat

This installs the gcompat package in the Alpine image. gcompat is a compatibility layer that provides some of the glibc functionalities in musl-based systems like Alpine. Without this, certain functions that the JVM relies on (like the one in the error trace) can cause a segmentation fault.

karianna commented 2 months ago

Ah OK, were you using the Alpine JDK builds? https://adoptium.net/en-GB/temurin/releases/?os=alpine-linux&version=17