OpenJDK crash MetadataOnStackMark::record() due to race condition
Issue
MetadataOnStackMark::record() is not MT-safe, which leads to fatal crash:
# JRE version: OpenJDK Runtime Environment (8.0_302-b08) (build 1.8.0_302-b08)
# Java VM: OpenJDK 64-Bit Server VM (25.302-b08 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x8b959a] MetadataOnStackMark::~MetadataOnStackMark()+0xba
#
# Core dump written. Default location: /etc/sv/tomcat_007/core or core.185985
#
# If you would like to submit a bug report, please visit:
# https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%207&component=java-1.8.0-openjdk
#
Environment
- OpenJDK 1.8.302 (Issue does not affect JDK 11)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.