JVM Crash due to `EXCEPTION_ACCESS_VIOLATION` in org.infinispan.util.concurrent.jdk8backported.LongAdder
Environment
- Windows Servers
- Windows Destop Version
- Oracle Java
- Java 1.6
Issue
- The JVM is crashing with
EXCEPTION_ACCESS_VIOLATION; the full trace is below:
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000007b3bfbd, pid=5156, tid=6072
#
# JRE version: 6.0_45-b06
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# J org.infinispan.util.concurrent.jdk8backported.LongAdder.sum()J
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Resolution
-
Upgrade to recent Java 1.7 releases
-
Get in touch with your Java Vendor.
-
As a workaround, exclude the problem method from compilation, for example:
-XX:CompileCommand=exclude,org/infinispan/util/concurrent/jdk8backported/LongAdder,add -XX:CompileCommand=exclude,org/infinispan/util/concurrent/jdk8backported/LongAdder,sum
Root Cause
- User Access Control appears to be preventing access to parts of some versions of the JDK that were not designed with this component in mind.
Diagnostic Steps
- Obtained
hs_err_<pid>files to examine the crash, and this appears to be in theorg.infinispan.util.concurrent.jdk8backported.LongAdder.sum()ororg.infinispan.util.concurrent.jdk8backported.LongAdder.add()function from JBoss.
Components
Category
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.