Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8180625

an array class in classlist causes vm crash during CDS dumping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 10
    • 9, 10
    • hotspot

      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
      #

            ccheung Calvin Cheung
            ccheung Calvin Cheung
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: