dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.18k stars 492 forks source link

[Bug] tomcat启动后调用notifyApplicationStartUpIsDone后crash #229

Open magiccao opened 3 years ago

magiccao commented 3 years ago

Description tomcat启动后,应用代码中调用JWarmUp.notifyApplicationStartUpIsDone(),进程crash

Steps to Reproduce Steps to reproduce the behavior: 1,springboot应用,在外部tomcat容器中运行; 2,tomcat(版本:7.0.92)启动后,调用JWarmUp.notifyApplicationStartUpIsDone()。

JDK version openjdk version "1.8.0_282" OpenJDK Runtime Environment (Alibaba Dragonwell 8.6.6) (build 1.8.0_282-b01) OpenJDK 64-Bit Server VM (Alibaba Dragonwell 8.6.6) (build 25.282-b01, mixed mode)

Execution environment

magiccao commented 3 years ago
hs_err
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f67b01a6ceb, pid=376956, tid=0x00007f66dca82700
#
# JRE version: OpenJDK Runtime Environment (8.0_282-b01) (build 1.8.0_282-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.282-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x6c8ceb]  java_lang_ClassLoader::non_reflection_class_loader(oopDesc*)+0x3b
...
Stack: [0x00007f66dca42000,0x00007f66dca83000],  sp=0x00007f66dca803c0,  free space=248k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x6c8ceb]  java_lang_ClassLoader::non_reflection_class_loader(oopDesc*)+0x3b
V  [libjvm.so+0xaea0c0]  SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x50
V  [libjvm.so+0xaeb352]  SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x22
V  [libjvm.so+0x4df568]  ConstantPool::klass_at_impl(constantPoolHandle, int, Thread*)+0x328
V  [libjvm.so+0x4e6b0b]  ConstantPool::resolve_class_from_slot(int, Thread*)+0x20b
V  [libjvm.so+0x4e7269]  ConstantPool::preload_jwarmup_classes(Thread*)+0x2a9
V  [libjvm.so+0x739c9e]  PreloadClassChain::eager_load_class_in_constantpool()+0xae
V  [libjvm.so+0x739d77]  PreloadJitInfo::notify_application_startup_is_done()+0x67
V  [libjvm.so+0x780f03]  JVM_NotifyApplicationStartUpIsDone+0xb3
j  com.alibaba.jwarmup.JWarmUp.notifyApplicationStartUpIsDone0()V+0
j  com.alibaba.jwarmup.JWarmUp.notifyApplicationStartUpIsDone()V+10
magiccao commented 3 years ago

新增jcmd中notify jvm后crash的hs_err文件 https://github.com/magiccao/dragonwell8-issue/blob/main/hs_err_jwarmup.log

magiccao commented 3 years ago

+以-XX:+CompilationWarmUp启动时导致crash的hs_err文件 https://github.com/magiccao/dragonwell8-issue/blob/main/hs_err_start.log

phyxdown commented 1 year ago

这个问题后续有修复或者有查到原因吗?