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

SA: TestJmapCore.java and TestJmapCoreMetaspace.java fail with -XX:StartFlightRecording=dumponexit=true

XMLWordPrintable

    • generic
    • generic

      The tests TestJmapCore.java and TestJmapCoreMetaspace.java fail with java.lang.NullPointerException with JFR enabled:

      Exception in thread "main" java.lang.NullPointerException
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.writeSymbol(HeapHprofBinWriter.java:1099)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackFrame(HeapHprofBinWriter.java:760)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackTraces(HeapHprofBinWriter.java:734)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:443)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.writeHeapHprofBin(JMap.java:182)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.run(JMap.java:97)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.JMap.main(JMap.java:176)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runJMAP(SALauncher.java:326)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:455)

      java.io.EOFException
      at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)
      at java.base/java.io.DataInputStream.readLong(DataInputStream.java:421)
      at jdk.test.lib.hprof.parser.HprofReader.readID(HprofReader.java:542)
      at jdk.test.lib.hprof.parser.HprofReader.read(HprofReader.java:230)
      at jdk.test.lib.hprof.parser.Reader.readFile(Reader.java:91)
      at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:85)
      at jdk.test.lib.hprof.HprofParser.parse(HprofParser.java:54)
      at TestJmapCore.test(TestJmapCore.java:140)
      at TestJmapCore.main(TestJmapCore.java:72)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:246)
      at java.base/java.lang.Thread.run(Thread.java:835)

      The failure is seen when the tests are run with: -XX:StartFlightRecording=dumponexit=true

            cjplummer Chris Plummer
            jgeorge Jini George (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: