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

Dacapo.java failed with "RuntimeException: Failed to run benchmark: pmd"

    XMLWordPrintable

Details

    • b25
    • x86_64
    • linux

    Backports

      Description

        The following test failed in the JDK20 CI:

        applications/dacapo/Dacapo.java

        Here's a snippet from the log file:

        [stress.process.err] Iteration start: MBean at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration done: MBean at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration done: Jni at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration start: Jni at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration start: Compiler at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Unexpected Exception in thread Thread-17.
        [stress.process.err] java.lang.RuntimeException: Failed to run benchmark: pmd
        [stress.process.err] at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:171)
        [stress.process.err] at java.base/java.lang.Thread.run(Thread.java:1589)
        [stress.process.err] Caused by: java.lang.reflect.InvocationTargetException
        [stress.process.err] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        [stress.process.err] at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        [stress.process.err] at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:166)
        [stress.process.err] ... 1 more
        [stress.process.err] Caused by: java.lang.SecurityException: NoSystemExitSecurityManager: System.exit() is not allowed.
        [stress.process.err] at applications.kitchensink.utils.NoSystemExitSecurityManager.checkExit(NoSystemExitSecurityManager.java:28)
        [stress.process.err] at java.base/java.lang.Runtime.exit(Runtime.java:113)
        [stress.process.err] at java.base/java.lang.System.exit(System.java:1908)
        [stress.process.err] at org.dacapo.harness.TestHarness.main(TestHarness.java:184)
        [stress.process.err] at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        [stress.process.err] ... 3 more
        [stress.process.err] Iteration done: Compiler at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration start: ThreadDumper at Wed Sep 14 13:36:51 UTC 2022
        [stress.process.err] Iteration done: ThreadDumper at Wed Sep 14 13:36:51 UTC 2022
        java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
        at java.base/java.util.Arrays$ArrayList.get(Arrays.java:4165)
        at applications.kitchensink.process.picker.modules.Toolkit$LinuxToolkit.setMetrics(MonitorPickerModule.java:223)
        at applications.kitchensink.process.picker.modules.Toolkit.getSystemMetrics(MonitorPickerModule.java:123)
        at applications.kitchensink.process.picker.modules.MonitorPickerModule.execute(MonitorPickerModule.java:64)
        at applications.kitchensink.process.picker.modules.PickerModule.run(PickerModule.java:140)
        at java.base/java.lang.Thread.run(Thread.java:1589)
        [Wed Sep 14 13:37:21 UTC 2022] (1663162641683) Picker module is about to shutdown
        Picker module expected time before shutdown for: Jcmd: 30s
        Picker module expected time before shutdown for: Jfr: 3m 20s
        Picker module expected time before shutdown for: Jstat: 5m
        Picker module expected time before shutdown for: Monitor: 1m
        Picker module expected time before shutdown for: NMT: 1m
        Picker module expected time before shutdown for: Perfmon: 5m
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: Monitor
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: Perfmon
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: Jstat
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: Jfr
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: Jcmd
        Picker module finished at [Wed Sep 14 13:37:21 UTC 2022]: NMT
        [Wed Sep 14 13:37:21 UTC 2022] (1663162641694) Picker module has been shutdown
        [Wed Sep 14 13:37:21 UTC 2022] (1663162641694) Stress process is about to shutdown
        Going to request to stop or kill stress process: 5348
        WARNING: The process 5348 has already finished.
        [Wed Sep 14 13:37:21 UTC 2022] (1663162641694) Stress process has been shutdown
        [Wed Sep 14 13:37:21 UTC 2022] Execution finished.
        [Wed Sep 14 13:37:21 UTC 2022] Analyzer failed with: java.lang.RuntimeException: Failed to run benchmark: pmd
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:171)
        at java.base/java.lang.Thread.run(Thread.java:1589)
        Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:166)
        ... 1 more
        Caused by: java.lang.SecurityException: NoSystemExitSecurityManager: System.exit() is not allowed.
        at applications.kitchensink.utils.NoSystemExitSecurityManager.checkExit(NoSystemExitSecurityManager.java:28)
        at java.base/java.lang.Runtime.exit(Runtime.java:113)
        at java.base/java.lang.System.exit(System.java:1908)
        at org.dacapo.harness.TestHarness.main(TestHarness.java:184)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        ... 3 more

        java.lang.RuntimeException: java.lang.RuntimeException: Failed to run benchmark: pmd
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:171)
        at java.base/java.lang.Thread.run(Thread.java:1589)
        Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:166)
        ... 1 more
        Caused by: java.lang.SecurityException: NoSystemExitSecurityManager: System.exit() is not allowed.
        at applications.kitchensink.utils.NoSystemExitSecurityManager.checkExit(NoSystemExitSecurityManager.java:28)
        at java.base/java.lang.Runtime.exit(Runtime.java:113)
        at java.base/java.lang.System.exit(System.java:1908)
        at org.dacapo.harness.TestHarness.main(TestHarness.java:184)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        ... 3 more

        at applications.kitchensink.process.glue.Main.analyzeResults(Main.java:387)
        at applications.kitchensink.process.glue.Main.main(Main.java:224)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
        at java.base/java.lang.Thread.run(Thread.java:1589)

        JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Failed to run benchmark: pmd
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:171)
        at java.base/java.lang.Thread.run(Thread.java:1589)
        Caused by: java.lang.reflect.InvocationTargetException
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
        at java.base/java.lang.reflect.Method.invoke(Method.java:578)
        at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:166)
        ... 1 more
        Caused by: java.lang.SecurityException: NoSystemExitSecurityManager: System.exit() is not allowed.
        at applications.kitchensink.utils.NoSystemExitSecurityManager.checkExit(NoSystemExitSecurityManager.java:28)
        at java.base/java.lang.Runtime.exit(Runtime.java:113)
        at java.base/java.lang.System.exit(System.java:1908)
        at org.dacapo.harness.TestHarness.main(TestHarness.java:184)
        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
        ... 3 more

        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Failed to run benchmark: pmd at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:171) at java.base/java.lang.Thread.run(Thread.java:1589) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119) at java.base/java.lang.reflect.Method.invoke(Method.java:578) at applications.kitchensink.process.stress.modules.Runner$BenchmarkRunner.run(DacapoStressModule.java:166) ... 1 more Caused by: java.lang.SecurityException: NoSystemExitSecurityManager: System.exit() is not allowed. at applications.kitchensink.utils.NoSystemExitSecurityManager.checkExit(NoSystemExitSecurityManager.java:28) at java.base/java.lang.Runtime.exit(Runtime.java:113) at java.base/java.lang.System.exit(System.java:1908) at org.dacapo.harness.TestHarness.main(TestHarness.java:184) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ... 3 more

        It's not clear to me whether this is an issue with the test
        framework or not so I'm starting this bug in hotspot/test.

        Attachments

          Issue Links

            Activity

              People

                lmesnik Leonid Mesnik
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: