JDK-8246716 : LoggerFinderLoaderTest.java crashes with ClassLoaderData::is_alive()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 15
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • Submitted: 2020-06-06
  • Updated: 2020-06-08
  • Resolved: 2020-06-08
Related Reports
Duplicate :  
Description
#  SIGSEGV (0xb) at pc=0x00007f9e8a79b210, pid=6110, tid=6135
#
# JRE version: Java(TM) SE Runtime Environment (15.0) (fastdebug build 15-internal+0-2020-06-06-0625063.fairoz.matte.jdk)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 15-internal+0-2020-06-06-0625063.fairoz.matte.jdk, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x891210]  ClassLoaderData::is_alive() const+0x0
#

---------------  T H R E A D  ---------------

Current thread (0x00007f9e84300fa0):  JavaThread "C1 CompilerThread0" daemon [_thread_in_vm, id=6135, stack(0x00007f9e5cb15000,0x00007f9e5cc16000)]


Current CompileTask:
C1:    168   38   !   3       java.util.concurrent.ConcurrentHashMap::putVal (432 bytes)

Stack: [0x00007f9e5cb15000,0x00007f9e5cc16000],  sp=0x00007f9e5cc13888,  free space=1018k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x891210]  ClassLoaderData::is_alive() const+0x0
V  [libjvm.so+0x9a66ba]  ClassHierarchyWalker::find_witness_anywhere(Klass*, bool, bool)+0x2ba
V  [libjvm.so+0x9a72cd]  Dependencies::find_unique_concrete_method(Klass*, Method*)+0xcd
V  [libjvm.so+0x805e33]  ciMethod::find_monomorphic_target(ciInstanceKlass*, ciInstanceKlass*, ciInstanceKlass*, bool)+0x3b3
V  [libjvm.so+0x646735]  GraphBuilder::invoke(Bytecodes::Code)+0x1155
V  [libjvm.so+0x64728b]  GraphBuilder::iterate_bytecodes_for_block(int)+0x73b
V  [libjvm.so+0x648e09]  GraphBuilder::iterate_all_blocks(bool)+0x89
V  [libjvm.so+0x649edf]  GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x46f
V  [libjvm.so+0x65a94f]  IR::IR(Compilation*, ciMethod*, int)+0x63f
V  [libjvm.so+0x61bb11]  Compilation::build_hir() [clone .part.0]+0x261
V  [libjvm.so+0x62059c]  Compilation::compile_java_method()+0x1bc
V  [libjvm.so+0x6213a4]  Compilation::compile_method()+0x1d4
V  [libjvm.so+0x621d6a]  Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, DirectiveSet*)+0x32a
V  [libjvm.so+0x622bd2]  Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x142
V  [libjvm.so+0x910a1e]  CompileBroker::invoke_compiler_on_method(CompileTask*)+0x45e
V  [libjvm.so+0x9120b8]  CompileBroker::compiler_thread_loop()+0x6b8
Comments
JDK-8246487 was already filed for this failure.
08-06-2020

The same assertion is failing in a different context. The issue seems to be with Dependency tracking. --------------- T H R E A D --------------- Current thread (0x00007f09780350a0): JavaThread "main" [_thread_in_vm, id=9019, stack(0x00007f097ee3e000,0x00007f097ef3f000)] Stack: [0x00007f097ee3e000,0x00007f097ef3f000], sp=0x00007f097ef3b278, free space=1012k Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x896c10] ClassLoaderData::is_alive() const+0x0 V [libjvm.so+0x9ad015] Dependencies::check_has_no_finalizable_subclasses(Klass*, KlassDepChange*)+0x75 V [libjvm.so+0x9b4313] Dependencies::DepStream::check_klass_dependency(KlassDepChange*)+0xa3 V [libjvm.so+0x1345d3f] nmethod::check_all_dependencies(DepChange&)+0x5df V [libjvm.so+0x8c6324] CodeCache::mark_for_deoptimization(KlassDepChange&)+0x1b4 V [libjvm.so+0x8c6563] CodeCache::flush_dependents_on(InstanceKlass*)+0x53 V [libjvm.so+0x1659920] SystemDictionary::define_instance_class(InstanceKlass*, Thread*)+0x390 V [libjvm.so+0x1659f28] SystemDictionary::find_or_define_instance_class(Symbol*, Handle, InstanceKlass*, Thread*)+0x208 V [libjvm.so+0x165c85c] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x39c V [libjvm.so+0x165af7a] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x99a V [libjvm.so+0x165b2c5] SystemDictionary::resolve_instance_class_or_null_helper(Symbol*, Handle, Handle, Thread*)+0x45 V [libjvm.so+0x165d237] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x27 V [libjvm.so+0x9532e0] ConstantPool::klass_at_impl(constantPoolHandle const&, int, bool, Thread*)+0x260 V [libjvm.so+0x955015] ConstantPool::klass_ref_at(int, Thread*)+0x45 V [libjvm.so+0x110fcfe] LinkInfo::LinkInfo(constantPoolHandle const&, int, Thread*)+0x5e V [libjvm.so+0x111f857] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle const&, int, Bytecodes::Code, Thread*)+0x87 V [libjvm.so+0xce4036] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x1b6 V [libjvm.so+0xce6de2] InterpreterRuntime::resolve_from_cache(JavaThread*, Bytecodes::Code)+0x122 j sun.nio.fs.UnixFileAttributes.asBasicFileAttributes()Ljava/nio/file/attribute/BasicFileAttributes;+1 java.base@15-ea
08-06-2020