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

AArch64: C2 compilation fails with guarantee(!true || (true && (shift != 0))) failed: impossible encoding

    XMLWordPrintable

Details

    • b29
    • aarch64
    • linux
    • Verified

    Backports

      Description

        The following closed test failed in the JDK20 CI:

        applications/javafuzzer/QuickTest.java

        Here's a snippet from the log file:

        ----------System.out:(28/1898)----------
        Using JRuby executable: /opt/mach5/mesos/work_dir/jib-master/install/org/jruby/jruby-dist/9.2.12.0/jruby-dist-9.2.12.0-bin.zip/jruby-9.2.12.0/bin/jruby
        For random generator using seed: 1836776624702845882
        To re-run test with same seed value please add "-Djdk.test.lib.random.seed=1836776624702845882" to command line.
        Starting JavaFuzzer: '/bin/bash /opt/mach5/mesos/work_dir/jib-master/install/com/oracle/jpg/bigapps/javafuzzer/javafuzzer/1.0/javafuzzer-1.0.zip/mrt.sh -R /opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S68623/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ff1f6331-4cab-4e5a-8513-ab7268af1b5a/runs/af1e2b33-b4de-4373-923b-75ed567a30d1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_javafuzzer_QuickTest_java/scratch/0 -NT 1 -NP 4 -A -conf config.yml'
        [2022-06-14T17:45:11.502262125Z] Gathering output for process 3930046
        [2022-06-14T17:46:44.995065590Z] Waiting for completion for process 3930046
        [2022-06-14T17:46:44.995283510Z] Waiting for completion finished for process 3930046
        Output and diagnostic info for process 3930046 was saved into 'pid-3930046-output.log'

        Summary of the JavaFuzzer run:
        ------------------------------
        Host: ol8-aarch64-285398
        Tests: 4 x 1
        Args: -conf config.yml

        Started at: Tue Jun 14 17:45:11 UTC 2022


        r2- 1: 1 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 0 Reference Java failures
        r3- 1: 1 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 0 Reference Java failures
        r4- 1: 0 passed, 2 crashes, 0 fails, 0 hangs, 0 incorrect tests, 0 Reference Java failures
        r1- 1: 0 passed, 0 crashes, 0 fails, 0 hangs, 0 incorrect tests, 1 Reference Java failures

        Finished at: Tue Jun 14 17:46:44 UTC 2022


        [2022-06-14T17:46:45.000326319Z] Waiting for completion for process 3930046
        [2022-06-14T17:46:45.000414119Z] Waiting for completion finished for process 3930046
        ----------System.err:(13/728)----------
        java.lang.RuntimeException: assertEquals: expected 1 to equal 2
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
        at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
        at applications.javafuzzer.JavaFuzzerRunner.main(JavaFuzzerRunner.java:235)
        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.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:312)
        at java.base/java.lang.Thread.run(Thread.java:1596)

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

        result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: assertEquals: expected 1 to equal 2


        This assertion failure mode matches the following closed bug:

        JDK-8286305 loom: closed applications/javafuzzer/QuickTest.java fails "assertEquals: expected 1 to equal 2":

        However, that bug is closed as a duplicate of:

        JDK-8286182 [BACKOUT] x86: Handle integral division overflow during parsing

        which is specific to x86 and this failure sighting is on linux-aarch64.

        Attachments

          1. FuzzerUtils.class
            8 kB
          2. FuzzerUtils.java
            13 kB
          3. FuzzerUtils$1.class
            0.8 kB
          4. hs_err_pid3931089.log
            149 kB
          5. hs_err_pid3931121.log
            148 kB
          6. replay_pid3931089.log
            130 kB
          7. replay_pid3931121.log
            129 kB
          8. Test.class
            5 kB
          9. Test.java
            8 kB
          10. Test-hang.class
            6 kB
          11. Test-hang.java
            9 kB

          Issue Links

            Activity

              People

                dlong Dean Long
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: