JDK-8209767 : gc/parallel/TestPrintGCDetailsVerbose.java failed with assert in CodeCache::verify_icholder_relocations()
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 12
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-08-21
  • Updated: 2018-08-21
  • Resolved: 2018-08-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 12
12Resolved
Related Reports
Duplicate :  
Description
Test gc/parallel/TestPrintGCDetailsVerbose.java failed 
with 
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000010a2e62c9, pid=86471, tid=20739
#
# JRE version: Java(TM) SE Runtime Environment (12.0+7) (fastdebug build 12-ea+7)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 12-ea+7, mixed mode, tiered, compressed oops, parallel gc, bsd-amd64)
# Problematic frame:
# V  [libjvm.dylib+0x38c2c9]  CodeCache::verify_icholder_relocations()+0x73
#
# Core dump will be written. Default location: /cores/core.86471
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

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

Current thread (0x00007ff8eb001000):  VMThread "VM Thread" [stack: 0x0000700005b94000,0x0000700005c94000] [id=20739]

Stack: [0x0000700005b94000,0x0000700005c94000],  sp=0x0000700005c93350,  free space=1020k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.dylib+0x38c2c9]  CodeCache::verify_icholder_relocations()+0x73
V  [libjvm.dylib+0x38b8cf]  CodeCache::do_unloading_nmethod_caches(bool)+0xe1
V  [libjvm.dylib+0x38b7e3]  CodeCache::do_unloading(BoolObjectClosure*, bool)+0x65
V  [libjvm.dylib+0xaa7b9f]  PSParallelCompact::marking_phase(ParCompactionManager*, bool, ParallelOldTracer*)+0x801
V  [libjvm.dylib+0xaa6ad7]  PSParallelCompact::invoke_no_policy(bool)+0x453
V  [libjvm.dylib+0xab38ec]  PSScavenge::invoke()+0x1ee
V  [libjvm.dylib+0xa5c3f2]  ParallelScavengeHeap::failed_mem_allocate(unsigned long)+0x1a2
V  [libjvm.dylib+0xc5f724]  VM_ParallelGCFailedAllocation::doit()+0x56
V  [libjvm.dylib+0xc914d7]  VM_Operation::evaluate()+0x10f
V  [libjvm.dylib+0xc901e3]  VMThread::evaluate_operation(VM_Operation*)+0x11b
V  [libjvm.dylib+0xc8fb35]  VMThread::loop()+0x17d
V  [libjvm.dylib+0xc8f880]  VMThread::run()+0xce
V  [libjvm.dylib+0xa2f694]  thread_native_entry(Thread*)+0x145
C  [libsystem_pthread.dylib+0x3661]  _pthread_body+0x154
C  [libsystem_pthread.dylib+0x350d]  _pthread_body+0x0
C  [libsystem_pthread.dylib+0x2bf9]  thread_start+0xd

Comments
Pre-ILW = Crash during nmethod unloading, very intermittent, no workaround (but might be -XX:-UseDynamicNumberOfCompilerThreads) = HLH = P2
21-08-2018

The stack trace looks very similar to JDK-8209670: https://bugs.openjdk.java.net/secure/attachment/78290/hs_err_pid182560.log [~zgu], what do you think?
21-08-2018

Thanks! I'm closing this as duplicate for now. Leonid, please re-open if this shows up again after JDK-8209670 was pushed.
21-08-2018

[~thartmann] yep, very likely to be the case.
21-08-2018