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

SystemMapTest.java#normal fails intermittendly on macOS aarch64

XMLWordPrintable

    • svc
    • Fix Understood
    • aarch64
    • os_x

      Test serviceability/dcmd/vm/SystemMapTest.java#normal failed today on macOS aarch64 (usually it works however).
      The test machine has macOS 14.5, CPU Apple M2 Ultra , the test was executed as part of the whole :tier1 jtreg tests.

      In the log we find :

      0x000102cec000-0x000102cf4000 32768 rw-/rwx shr 0 INTERN /private/var/folders/ps/6ym_x8gd6qz72g9288px78pc0003kp/T/hsperfdata_jvmtests/28134

      but the regex is :

      java.lang.RuntimeException: '0x\\p{XDigit}+-0x\\p{XDigit}+ +\\d+ +[\\-rwx]*/[\\-rwx]* +pvt +(0x\\p{XDigit}+|\\d+) +.*/.*/hsperfdata_.*' missing from stdout/stderr
                      at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:372)
                      at SystemMapTest.run(SystemMapTest.java:67)
                      at SystemMapTest.jmx(SystemMapTest.java:78)
                      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
                      at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
                      at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
                      at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
                      at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
                      at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
                      at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
                      at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
                      at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
                      at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)

      Seems the test expects "pvt" but gets "shr" in the output - any idea? Should we handle "shr" too in the test ?

            stooke Simon Tooke
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: