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

sun/tools/jhsdb/JShellHeapDumpTest.java fails with RuntimeException: Test ERROR java.io.EOFException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 14
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:

      Description

      Attaching to process ID 5194, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 14-ea+14-539
      Error occurred during stack walking:

      stderr:

      [2019-09-07T13:36:06.119432Z] Waiting for completion for process 5205
      [2019-09-07T13:36:06.119633Z] Waiting for completion finished for process 5205
      Dump file created Sat Sep 07 13:36:04 UTC 2019
      ----------System.err:(44/3102)----------
      sun.jvm.hotspot.utilities.AssertionFailure: must be a valid non-zero index
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.NMethod.getMetadataAt(NMethod.java:200)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.NMethod.getMethodAt(NMethod.java:206)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.DebugInfoReadStream.readMethod(DebugInfoReadStream.java:58)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.ScopeDesc.<init>(ScopeDesc.java:64)
      at jdk.hotspot.agent/sun.jvm.hotspot.code.ScopeDesc.sender(ScopeDesc.java:121)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.CompiledVFrame.sender(CompiledVFrame.java:187)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:143)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.ThreadStackTrace.dumpStack(ThreadStackTrace.java:54)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackTraces(HeapHprofBinWriter.java:718)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.write(HeapHprofBinWriter.java:439)
      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:321)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:406)
      null
      java.lang.RuntimeException: Test ERROR java.io.EOFException
      at JShellHeapDumpTest.printStackTraces(JShellHeapDumpTest.java:100)
      at JShellHeapDumpTest.testHeapDump(JShellHeapDumpTest.java:117)
      at JShellHeapDumpTest.main(JShellHeapDumpTest.java:141)
      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:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)
      Caused by: 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.getStack(Reader.java:128)
      at JShellHeapDumpTest.printStackTraces(JShellHeapDumpTest.java:95)
      ... 8 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.io.EOFException
      JavaTest Message: shutting down test

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mwthomps Marty Thompson
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: