JDK-8180625 : an array class in classlist causes vm crash during CDS dumping
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9,10
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2017-05-18
  • Updated: 2019-05-22
  • Resolved: 2017-11-02
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 10
10Resolved
Related Reports
Duplicate :  
Description
Given:
my.jar contains Hello.class

my.classlist contains:
Hello
[Ljava/lang/Comparable;

java -XX:SharedArchiveFile=/tmp/my.jsa -cp ./my.jar -XX:ExtraSharedClassListFile=./my.classlist -Xshare:dump

causes vm crash:

Allocated shared space: 56868864 bytes at 0x0000000800000000
Loading classes to share ...
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc:  SuppressErrorAt=/instanceKlass.hpp:1025
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/scratch/cccheung/jdk10-open-only/hotspot/src/share/vm/oops/instanceKlass.hpp:1025), pid=43903, tid=43904
#  assert(k->is_instance_klass()) failed: cast to InstanceKlass
# 
Comments
Only bugs with an associated changeset should be closed as "Fixed". Reopening this bug to close it as a duplicate.
02-11-2017

This bug was addressed via the fix for JDK-8186842.
01-11-2017

A quick fix is while processing the class list during CDS dump time, avoid loading array classes. JDK-8186842 will address archiving of array classes.
01-11-2017