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

serviceability/sa/ClhsdbCDSJstackPrintAll.java fails AssertionFailure: Corrupted constant pool

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • tbd
    • 24
    • hotspot
    • aarch64
    • linux

      The following test failed in the JDK24 CI:

      serviceability/sa/ClhsdbCDSJstackPrintAll.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/281)----------
      command: main -Xmx1g ClhsdbCDSJstackPrintAll
      reason: User specified action: run main/othervm/timeout=2400 -Xmx1g ClhsdbCDSJstackPrintAll
      started: Fri Jun 07 03:34:10 UTC 2024
      Mode: othervm [/othervm specified]
      finished: Fri Jun 07 03:34:30 UTC 2024
      elapsed time (seconds): 20.111
      ----------configuration:(0/0)----------
      ----------System.out:(1201/88023)----------
      Starting ClhsdbCDSJstackPrintAll test

      <snip>

      Error: sun.jvm.hotspot.utilities.AssertionFailure: Corrupted constant pool: 108 ConstantTag:1
      sun.jvm.hotspot.utilities.AssertionFailure: Corrupted constant pool: 108 ConstantTag:1
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstantPool.getNameAndTypeAt(ConstantPool.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstantPool.getSignatureRefIndexAt(ConstantPool.java:391)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstantPool.getSignatureRefAt(ConstantPool.java:300)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.doMethod(GenerateOopMap.java:1730)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.interp1(GenerateOopMap.java:1385)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.interpBB(GenerateOopMap.java:802)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.interpAll(GenerateOopMap.java:1108)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.doInterpretation(GenerateOopMap.java:981)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.GenerateOopMap.computeMap(GenerateOopMap.java:2198)
      at jdk.hotspot.agent/sun.jvm.hotspot.interpreter.OopMapForCacheEntry.computeMap(OopMapForCacheEntry.java:80)
      at jdk.hotspot.agent/sun.jvm.hotspot.interpreter.OopMapCacheEntry.fill(OopMapCacheEntry.java:53)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.Method.getMaskFor(Method.java:265)
      at jdk.hotspot.agent/sun.jvm.hotspot.runtime.InterpretedVFrame.getLocals(InterpretedVFrame.java:53)
      at jdk.hotspot.agent/sun.jvm.hotspot.ui.classbrowser.HTMLGenerator.genHTMLForJavaStackTrace(HTMLGenerator.java:1936)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor$45.doit(CommandProcessor.java:1678)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2230)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.executeCommand(CommandProcessor.java:2200)
      at jdk.hotspot.agent/sun.jvm.hotspot.CommandProcessor.run(CommandProcessor.java:2071)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.run(CLHSDB.java:112)
      at jdk.hotspot.agent/sun.jvm.hotspot.CLHSDB.main(CLHSDB.java:44)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.runCLHSDB(SALauncher.java:281)
      at jdk.hotspot.agent/sun.jvm.hotspot.SALauncher.main(SALauncher.java:500)
      ]
       exitValue = 0

      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'sun.jvm.hotspot.utilities.AssertionFailure' found in stderr: 'sun.jvm.hotspot.utilities.AssertionFailure'
      at ClhsdbCDSJstackPrintAll.main(ClhsdbCDSJstackPrintAll.java:117)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:580)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1575)
      Caused by: java.lang.RuntimeException: 'sun.jvm.hotspot.utilities.AssertionFailure' found in stderr: 'sun.jvm.hotspot.utilities.AssertionFailure'
      at jdk.test.lib.process.OutputAnalyzer.shouldNotMatch(OutputAnalyzer.java:435)
      at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:152)
      at ClhsdbLauncher.run(ClhsdbLauncher.java:204)
      at ClhsdbCDSJstackPrintAll.main(ClhsdbCDSJstackPrintAll.java:113)
      ... 4 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'sun.jvm.hotspot.utilities.AssertionFailure' found in stderr: 'sun.jvm.hotspot.utilities.AssertionFailure'
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: 'sun.jvm.hotspot.utilities.AssertionFailure' found in stderr: 'sun.jvm.hotspot.utilities.AssertionFailure'
      ----------rerun:(37/7256)*----------

      There are a ton of exceptions shown in the log, but the one near
      the end caught my eye:

      Error: sun.jvm.hotspot.utilities.AssertionFailure: Corrupted constant pool: 108 ConstantTag:1
      sun.jvm.hotspot.utilities.AssertionFailure: Corrupted constant pool: 108 ConstantTag:1
      at jdk.hotspot.agent/sun.jvm.hotspot.utilities.Assert.that(Assert.java:32)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstantPool.getNameAndTypeAt(ConstantPool.java:280)
      at jdk.hotspot.agent/sun.jvm.hotspot.oops.ConstantPool.getSignatureRefIndexAt(ConstantPool.java:391)

      I'm not sure if that's the root cause of the failures or
      if the root cause is hidden by the elided log output, but
      it does look "interesting".

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: