JDK-8059924 : com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest.java: assert(Universe::verify_in_progress() || !SafepointSynchronize::is_at_safepoint()) failed: invariant
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-10-08
  • Updated: 2024-03-05
  • Resolved: 2014-10-10
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 8 JDK 9
8u421Fixed 9 b37Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Happens while inspecting the heap during Dcmd: GC.class_stats

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/jprt/T/P1/205639.cccheung/s/hotspot/src/share/vm/runtime/synchronizer.cpp:581), pid=13170, tid=140633204123392
#  assert(Universe::verify_in_progress() || !SafepointSynchronize::is_at_safepoint()) failed: invariant
#
# JRE version: Java(TM) SE Runtime Environment (9.0) (build 1.9.0-internal-fastdebug-201410072056.cccheung.jdk9-hs-rt-b00)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-internal-fastdebug-201410072056.cccheung.jdk9-hs-rt-b00 mixed mode linux-amd64 compressed oops)
# Core dump written. Default location: /scratch/local/aurora/sandbox/results/workDir/com/sun/management/DiagnosticCommandMBean/DcmdMBeanPermissionsTest/core or core.13170
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

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

Current thread (0x00007fe7d818c000):  VMThread [stack: 0x00007fe7b81ce000,0x00007fe7b82cf000] [id=13326]

Stack: [0x00007fe7b81ce000,0x00007fe7b82cf000],  sp=0x00007fe7b82ccf40,  free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x10874a1]  VMError::report_and_die()+0x151;;  VMError::report_and_die()+0x151
V  [libjvm.so+0x73d68b]  report_vm_error(char const*, int, char const*, char const*)+0x7b;;  report_vm_error(char const*, int, char const*, char const*)+0x7b
V  [libjvm.so+0xfb148f]  ObjectSynchronizer::FastHashCode(Thread*, oop)+0x65f;;  ObjectSynchronizer::FastHashCode(Thread*, oop)+0x65f
V  [libjvm.so+0xfb1985]  ObjectSynchronizer::identity_hash_value_for(Handle)+0x45;;  ObjectSynchronizer::identity_hash_value_for(Handle)+0x45
V  [libjvm.so+0xdc65b0]  oopDesc::slow_identity_hash()+0xc0;;  oopDesc::slow_identity_hash()+0xc0
V  [libjvm.so+0xbe58a2]  Klass::external_name() const+0xf2;;  Klass::external_name() const+0xf2
V  [libjvm.so+0x8f6a3e]  KlassInfoHisto::sort_helper(KlassInfoEntry**, KlassInfoEntry**)+0xce;;  KlassInfoHisto::sort_helper(KlassInfoEntry**, KlassInfoEntry**)+0xce

VM_Operation (0x00007fe7b2cea890): GC_HeapInspection, mode: safepoint, requested by thread 0x00007fe7d8363800

Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/008f91ddb031 User: lana Date: 2014-10-29 19:22:26 +0000
29-10-2014

URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/008f91ddb031 User: coleenp Date: 2014-10-10 17:58:25 +0000
10-10-2014

RFR: http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2014-October/012686.html
09-10-2014

I can't reproduce the failure, but can see how that might happen (and why it is intermittent). This is a candidate fix: http://cr.openjdk.java.net/~shade/8059924/webrev.00/
09-10-2014

Looking. I know why this happens, will fix shortly.
09-10-2014

Seems to have been caused by JDK-8059595
08-10-2014