JVM crash in com.sun.crypto.provider.GCTR.doFinal
Environment
- JBoss Enterprise Application Platform (EAP) 7.x
- Java 8
Issue
- Our JVM crashed and the hs_err_pid shows the following crash point:
Stack: [0x00007f26593dc000,0x00007f26594dd000], sp=0x00007f26594da250, free space=1016k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xaaca9a] VMError::report_and_die()+0x2ba
V [libjvm.so+0x4f2de9] report_fatal(char const*, int, char const*)+0x59
V [libjvm.so+0x9ab6ba] SharedRuntime::continuation_for_implicit_exception(JavaThread*, unsigned char*, SharedRuntime::ImplicitExceptionKind)+0x33a
V [libjvm.so+0x91501a] JVM_handle_linux_signal+0x48a
V [libjvm.so+0x90b593] signalHandler(int, siginfo*, void*)+0x43
C [libpthread.so.0+0xf7e0]
J 25934 C2 com.sun.crypto.provider.GCTR.doFinal([BII[BI)I (130 bytes) @ 0x00007f26f44caa61 [0x00007f26f44ca800+0x261]
Resolution
- Upgrade to the latest JDK update for a fix
- As a workaround, you may exclude the problem methods from compilation:
-XX:CompileCommand=exclude,com/sun/crypto/provider/\*.\*
Root Cause
- Content from bugs.openjdk.java.net is not included.JDK-8049855
- Content from bugs.openjdk.java.net is not included.JDK-8182741
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.