JVM crash in ModuleEntry::purge_reads or ModuleEntryTable::purge_all_module_reads
Environment
- Red Hat build of OpenJDK
- 11.0.12+7-LTS
- AppDynamics agent
Issue
We are trying to enable appdynamic agent in our application server which runs on openjdk version "11.0.10", and the JVM is crashing with the following in the fatal error log:
# SIGSEGV (0xb) at pc=0x00007fe860de18c8, pid=13698, tid=13746
#
# JRE version: OpenJDK Runtime Environment 18.9 (11.0.10+9) (build 11.0.10+9-LTS)
# Java VM: OpenJDK 64-Bit Server VM 18.9 (11.0.10+9-LTS, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xbe08c8] ModuleEntry::purge_reads()+0x118
...
Current thread (0x00005591c90de800): VMThread "VM Thread" [stack: 0x00007fe8232a5000,0x00007fe8233a5000] [id=13746]
Stack: [0x00007fe8232a5000,0x00007fe8233a5000], sp=0x00007fe8233a3090, free space=1016k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xbe08c8] ModuleEntry::purge_reads()+0x118
V [libjvm.so+0xbe09d8] ModuleEntryTable::purge_all_module_reads()+0x38
V [libjvm.so+0x632d54] ClassLoaderDataGraph::do_unloading(bool)+0x134
V [libjvm.so+0xe39223] SystemDictionary::do_unloading(GCTimer*, bool)+0x53
V [libjvm.so+0x7c8aad] G1ConcurrentMark::weak_refs_work(bool)+0x39d
V [libjvm.so+0x7c9c59] G1ConcurrentMark::remark()+0xf9
V [libjvm.so+0xef0136] VM_CGC_Operation::doit()+0xc6
V [libjvm.so+0xee7ea0] VM_Operation::evaluate()+0xe0
V [libjvm.so+0xeedd3f] VMThread::evaluate_operation(VM_Operation*)+0x11f
V [libjvm.so+0xeee1be] VMThread::loop()+0x28e
V [libjvm.so+0xeee72c] VMThread::run()+0x7c
V [libjvm.so+0xe78fea] Thread::call_run()+0x16a
V [libjvm.so+0xc3da48] thread_native_entry(Thread*)+0xf8
Alternate stack in the fatal error log:
Stack: [0x00000092e8200000,0x00000092e8300000], sp=0x00000092e82fe7f0, free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [jvm.dll+0x5ab390] ModuleEntryTable::purge_all_module_reads+0x140 (moduleentry.cpp:444)
V [jvm.dll+0x1ce246] ClassLoaderDataGraph::do_unloading+0x1c6 (classloaderdata.cpp:1435)
V [jvm.dll+0x711340] SystemDictionary::do_unloading+0x40 (systemdictionary.cpp:1835)
V [jvm.dll+0x2e2f89] G1ConcurrentMark::weak_refs_work+0x3b9 (g1concurrentmark.cpp:1681)
V [jvm.dll+0x2e1bac] G1ConcurrentMark::remark+0x29c (g1concurrentmark.cpp:1169)
V [jvm.dll+0x783018] VM_CGC_Operation::doit+0x1e8 (vm_operations_g1.cpp:211)
V [jvm.dll+0x77db2c] VM_Operation::evaluate+0xec (vmoperations.cpp:68)
V [jvm.dll+0x781bc7] VMThread::evaluate_operation+0xe7 (vmthread.cpp:413)
V [jvm.dll+0x782429] VMThread::loop+0x3e9 (vmthread.cpp:548)
V [jvm.dll+0x7827b7] VMThread::run+0x67 (vmthread.cpp:315)
V [jvm.dll+0x738624] Thread::call_run+0x84 (thread.cpp:389)
V [jvm.dll+0x5e2c56] thread_native_entry+0xd6 (os_windows.cpp:460)
C [ucrtbase.dll+0x1fb80]
C [KERNEL32.DLL+0x84d4]
C [ntdll.dll+0x51791]
Resolution
Upgrade to the Red Hat build of OpenJDK 11.0.13+.
Root Cause
Content from bugs.openjdk.java.net is not included.Content from bugs.openjdk.java.net is not included.https://bugs.openjdk.java.net/browse/JDK-8251945
Product(s)
Components
Category
Tags
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.