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

TestJhsdbJstackLock.java and TestJhsdbJstackLock.java failed after JDK-8335743

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 24
    • hotspot
    • x86_64
    • linux

      The following two tests are failing in the JDK24 CI:

      serviceability/sa/TestJhsdbJstackLock.java
      serviceability/sa/TestJhsdbJstackLock.java

      Here's a snippet from the TestJhsdbJstackLock.jtr log file:

       stderr: []
       exitValue = 0

      java.lang.RuntimeException: '^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:371)
      at TestJhsdbJstackLock.main(TestJhsdbJstackLock.java:68)
      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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

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

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: '^\s+- waiting on <0x[0-9a-f]+> \(a java\.lang\.Object\)$' missing from stdout/stderr


      Here's a snippet from the TestJhsdbJstackLock.jtr log file:

       exitValue = -1

      java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$' missing from stdout/stderr
      at TestClhsdbJstackLock.main(TestClhsdbJstackLock.java:69)
      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: '^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$' missing from stdout/stderr
      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:371)
      at ClhsdbLauncher.runCmd(ClhsdbLauncher.java:167)
      at ClhsdbLauncher.run(ClhsdbLauncher.java:204)
      at TestClhsdbJstackLock.main(TestClhsdbJstackLock.java:65)
      ... 4 more

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Test ERROR java.lang.RuntimeException: '^\\s+- waiting on <0x[0-9a-f]+> \\(a java\\.lang\\.Object\\)$' missing from stdout/stderr

      These failures first appeared in jdk-24+6-624-tier6 which include the fix for:

      JDK-8335743 jhsdb jstack cannot print some information on the waiting thread

      which modified both of these tests. So far the test failures have
      only happened on linux-x64-debug configs.

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

              Created:
              Updated:
              Resolved: