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

[TESTBUG] compiler/compilercontrol/mixed/RandomCommandsTest.java must not fail on Command.quiet

    XMLWordPrintable

Details

    • b30
    • generic
    • generic

    Backports

      Description

        The following test failed in the JDK17 CI:

        compiler/compilercontrol/mixed/RandomCommandsTest.java

        Here's a snippet from the log file:

        ----------System.out:(12/4420)----------
        For random generator using seed: 5539858874383256187
        To re-run test with same seed value please add "-Djdk.test.lib.random.seed=5539858874383256187" to command line.
        (CompileCommand QUIET Type: FILE Compiler: C1 MethodDescriptor: */nonexistent, IsValid: false)
        Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+27-2463/linux-x64-open.jdk/jdk-17/bin/java -cp /opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/compiler/compilercontrol/mixed/RandomCommandsTest.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+27-2463/src.full/open/test/hotspot/jtreg/compiler/compilercontrol/mixed:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2/test/lib:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/classes/2:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/javatest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jtreg.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/junit.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/hamcrest.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/testng.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/jcommander.jar:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/6/1/bundles/jtreg-6+1.zip/jtreg/lib/guice.jar -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/tmp -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/tmp -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-17+27-2463/linux-x64-open.test/hotspot/jtreg/native --patch-module=java.base=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/patches/java.base -Djava.security.policy=file:/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79020/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/de2507c3-e217-4094-9fe6-9a1187959b3f/runs/65436544-bc39-443e-8b93-06fa61ebb764/./testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_compiler/jtreg.policy -Xmixed -XX:+UnlockDiagnosticVMOptions -XX:CompilerDirectivesLimit=101 -Xbootclasspath/a:. -XX:+WhiteBoxAPI -XX:CompileCommandFile=command_file compiler.compilercontrol.share.actions.BaseAction 33889 states ]
        [2021-06-16T12:30:13.262493821Z] Gathering output for process 27089
        [2021-06-16T12:30:18.928380693Z] Waiting for completion for process 27089
        [2021-06-16T12:30:18.928530245Z] Waiting for completion finished for process 27089
        Output and diagnostic info for process 27089 was saved into 'pid-27089-output.log'
        [2021-06-16T12:30:18.929826895Z] Waiting for completion for process 27089
        [2021-06-16T12:30:18.930259602Z] Waiting for completion finished for process 27089
        [2021-06-16T12:30:18.930405738Z] Waiting for completion for process 27089
        [2021-06-16T12:30:18.930472014Z] Waiting for completion finished for process 27089
        ----------System.err:(273/11499)----------
         stdout: [INFO: Client connection port = 33889
        Checking expected compilation state: {
          method: public void compiler.compilercontrol.share.pool.sub.Klass.method(int,java.lang.String[],java.lang.Integer,byte[],double[][])
          compile [Optional.empty, Optional.empty]
          force_inline [Optional.empty, Optional.empty]
          dont_inline [Optional.empty, Optional.empty]
          log Optional.empty
          print_assembly Optional.empty
          print_inline Optional.empty
        }

        <snip>

         stderr: []
         exitValue = 0

        java.lang.RuntimeException: 'CompileCommand: An error occurred during parsing' missing from stdout/stderr

        at jdk.test.lib.process.OutputAnalyzer.shouldContain(OutputAnalyzer.java:221)
        at compiler.compilercontrol.share.scenario.Scenario.execute(Scenario.java:137)
        at compiler.compilercontrol.share.MultiCommand.test(MultiCommand.java:101)
        at compiler.compilercontrol.mixed.RandomCommandsTest.main(RandomCommandsTest.java:43)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:833)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: 'CompileCommand: An error occurred during parsing' missing from stdout/stderr


        Based on the log file, it looks like the test never ran into an error
        in this run. I'm guessing that the test expects there to be at least
        one randomly generated CompileCommand that results in an error.

        Attachments

          Issue Links

            Activity

              People

                neliasso Nils Eliasson (Inactive)
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: