JDK-8210928 : compiler/aot/cli/MultipleAOTLibraryTest.java crashes in CodeCache::get_code_heap_containing running in CDS mode
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 12
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2018-09-19
  • Updated: 2021-04-30
  • Resolved: 2021-04-30
Related Reports
Relates :  
Description
The crash was observed in tier6 testing for the default CDS archive:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fde5374a55f, pid=18399, tid=18411
#
# JRE version:  (12.0) (fastdebug build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 12-internal+0-2018-09-18-2141241.jiangli.zhou.jdknoncds, mixed mode, aot, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x9fa55f]  CodeCache::get_code_heap_containing(void*)+0x4f

From hs_err log:

Current thread (0x00007fde4c4d8800):  ConcurrentGCThread "G1 Young RemSet Sampling" [stack: 0x00007fde2820f000,0x00007fde2830f000] [id=18411]

Stack: [0x00007fde2820f000,0x00007fde2830f000],  sp=0x00007fde2830db80,  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+0x9fa55f]  CodeCache::get_code_heap_containing(void*)+0x4f
V  [libjvm.so+0x9fa64f]  CodeCache::find_blob(void*)+0x1f
V  [libjvm.so+0x14f9459]  os::get_sender_for_C_frame(frame*)+0x39
V  [libjvm.so+0x14ff665]  os::get_native_stack(unsigned char**, int, int)+0xa5
V  [libjvm.so+0x61a7b2]  ResourceObj::operator new(unsigned long, std::nothrow_t const&, ResourceObj::allocation_type, MemoryType)+0x62
V  [libjvm.so+0x18afa0a]  VirtualMemoryTracker::add_reserved_region(unsigned char*, unsigned long, NativeCallStack const&, MemoryType)+0x26a
V  [libjvm.so+0x18031ec]  Thread::record_stack_base_and_size()+0x17c
V  [libjvm.so+0xabc78f]  ConcurrentGCThread::run()+0xf
V  [libjvm.so+0x14f3170]  thread_native_entry(Thread*)+0x100
Comments
AOT has been removed. JDK-8263327 Closing this as WNF.
30-04-2021

I don't think it is new failure. We did not tests AOT with CDS archives before.
27-11-2018

ILW = Crash while searching for code blob, with AOT and CDS, disable NMT = HLM = P3
24-09-2018