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

jhsdb/HeapDumpTestWithActiveProcess.java fails with "AssertionFailure: illegal bci"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b05
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following test failed in the JDK15 CI:

      sun/tools/jhsdb/HeapDumpTestWithActiveProcess.java

      Here's a snippet from the log file:

      ----------System.out:(40/2378)----------
      Starting Jshell
      [JShell]:/opt/mach5/mesos/work_dir/jib-master/install/jdk-15+22-1011/linux-x64-debug.jdk/jdk-15/fastdebug/bin/jshell
      [JShell] | Welcome to JShell -- Version 15-ea
      [JShell] | For an introduction type: /help intro
      Jshell Started in 3432ms
      Starting jmap against 12029
      [2020-05-04T21:40:21.671711Z] Gathering output for process 12098
      [2020-05-04T21:40:35.291144Z] Waiting for completion for process 12098
      [2020-05-04T21:40:35.291378Z] Waiting for completion finished for process 12098
      Output and diagnostic info for process 12098 was saved into 'pid-12098-output.log'
      jhsdb jmap stdout:
      Attaching to process ID 12029, please wait...
      Debugger attached successfully.
      Server compiler detected.
      JVM version is 15-ea+22-1011

      jhsdb jmap stderr:
      sun.jvm.hotspot.utilities.AssertionFailure: illegal bci(-1368758984) codeSize(66)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstMethod.getLineNumberFromBCI(ConstMethod.java:310)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Method.getLineNumberFromBCI(Method.java:282)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackFrame(HeapHprofBinWriter.java:751)
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.HeapHprofBinWriter.dumpStackTraces(HeapHprofBinWriter.java:730)
      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:262)
      at jdk.hotspot.agent/sun.jvm.hotspot.tools.Tool.start(Tool.java:225)
      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:331)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:483)

      ###### End of all output:
      [2020-05-04T21:40:35.315070Z] Waiting for completion for process 12098
      [2020-05-04T21:40:35.315242Z] Waiting for completion finished for process 12098
      [2020-05-04T21:40:35.315431Z] Waiting for completion for process 12098
      [2020-05-04T21:40:35.315548Z] Waiting for completion finished for process 12098
      Destroying jshell
      Jshell destroyed
      ----------System.err:(46/2815)----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cjplummer Chris Plummer
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: