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

CDS crashes when the source of an InstanceKlass is NULL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 19
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b07
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              minqi Yumin Qi (Inactive)
              Reporter:
              xlinzheng Xiaolin Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: