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

CDS crashes when the source of an InstanceKlass is NULL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 19
    • 18
    • hotspot
    • b07
    • x86
    • linux
    • Verified

      Directly reproduced on TIP by using a simple `build/linux-x86_64-server-slowdebug/images/jdk/bin/java -XX:ArchiveClassesAtExit=tmp.jsa -XX:DumpLoadedClassList=tmp.lst -version`.

      When dumping the klass `java/lang/invoke/DelegatingMethodHandle$Holder`, whose source is NULL, the `strcmp` logic in `ClassListWriter::write` will face a crash.

            minqi Yumin Qi
            xlinzheng Xiaolin Zheng
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: