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

C1: assert(_mode != literal) failed: unexpected literal addressing mode with -XX:+PrintC1Statistics and -Xcomp

    XMLWordPrintable

Details

    • aarch64
    • linux

    Description

      The following test failed in the JDK20 CI:

      compiler/c1/TestPrintC1Statistics.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/300)----------
      command: main -XX:+Verbose compiler.c1.TestPrintC1Statistics
      reason: User specified action: run main/othervm -XX:+Verbose compiler.c1.TestPrintC1Statistics
      started: Fri Dec 02 22:09:00 UTC 2022
      Mode: othervm [/othervm specified]
      finished: Fri Dec 02 22:09:44 UTC 2022
      elapsed time (seconds): 43.401
      ----------configuration:(0/0)----------
      ----------System.out:(29/5064)----------

      Warning: Handler @6 takes mixed loaded/unloaded exceptions in virtual void java.util.jar.JarFile.initializeVerifier()
      Warning: Handler @13 takes mixed loaded/unloaded exceptions in virtual void java.util.jar.JarFile.initializeVerifier()
      Warning: Handler @20 takes mixed loaded/unloaded exceptions in virtual void java.util.jar.JarFile.initializeVerifier()
      Warning: Handler @29 takes mixed loaded/unloaded exceptions in virtual void java.util.jar.JarFile.initializeVerifier()
      Warning: Handler @42 takes mixed loaded/unloaded exceptions in virtual void java.util.jar.JarFile.initializeVerifier()
      Warning: Handler @4 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @11 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @22 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @33 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @36 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @50 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+27-2066/linux-aarch64-debug.jdk/jdk-20/fastdebug/bin/java -cp /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/classes/0/compiler/c1/TestPrintC1Statistics.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+27-2066/src.full/open/test/hotspot/jtreg/compiler/c1:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/classes/0/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+27-2066/src.full/open/test/lib:/opt/mach5/mesos/work_dir/jib-master/install/jtreg/7.1/1/bundles/jtreg-7.1+1.zip/jtreg/lib/jtreg.jar -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation -XX:+PrintC1Statistics --version ]
      [2022-12-02T22:09:29.911179433Z] Gathering output for process 2630701
      [2022-12-02T22:09:42.782663650Z] Waiting for completion for process 2630701
      [2022-12-02T22:09:42.844994598Z] Waiting for completion finished for process 2630701
      Output and diagnostic info for process 2630701 was saved into 'pid-2630701-output.log'
      [2022-12-02T22:09:43.524033016Z] Waiting for completion for process 2630701
      [2022-12-02T22:09:43.524302456Z] Waiting for completion finished for process 2630701
      [2022-12-02T22:09:43.524475656Z] Waiting for completion for process 2630701
      [2022-12-02T22:09:43.524491416Z] Waiting for completion finished for process 2630701
      [2022-12-02T22:09:43.712015859Z] Waiting for completion for process 2630701
      [2022-12-02T22:09:43.712047819Z] Waiting for completion finished for process 2630701
      Warning: Handler @4 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @11 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @22 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @33 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @36 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      Warning: Handler @50 takes mixed loaded/unloaded exceptions in virtual jobject jdk.internal.loader.URLClassPath$JarLoader.checkResource(jobject, jboolean, jobject)
      ----------System.err:(40/3127)----------
       stdout: [# To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=/assembler_aarch64.cpp:245
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151440/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/80fb2df9-68be-4cf4-ad62-cad7b5537930/runs/ccb2ab9f-3384-4abd-9bc5-b16c02e6c523/workspace/open/src/hotspot/cpu/aarch64/assembler_aarch64.cpp:245), pid=2630701, tid=2630715
      # assert(_mode != literal) failed: unexpected literal addressing mode
      #
      # JRE version: Java(TM) SE Runtime Environment (20.0+27) (fastdebug build 20-ea+27-2066)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+27-2066, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x60c518] Address::assert_is_nonliteral() const+0x58
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/scratch/0/core.2630701)
      #
      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/scratch/0/hs_err_pid2630701.log
      #
      # Compiler replay data is saved as:
      # /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S151524/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e33da92e-d0a6-46a6-aeb1-88356518d7a3/runs/c0c009ce-2082-4298-916e-aa7e7f4fb088/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_1/scratch/0/replay_pid2630701.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ];
       stderr: []
       exitValue = 134

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
      at compiler.c1.TestPrintC1Statistics.main(TestPrintC1Statistics.java:49)
      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:1599)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [134]
      ----------rerun:(44/7473)*----------


      Here's the crashing thread's stack:

      --------------- T H R E A D ---------------

      Current thread (0x0000ffff98376b80): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=2630715, stack(0x0000ffff6da00000,0x0000ffff6dc00000)]


      Current CompileTask:
      C1: 324 133 b 3 java.util.Arrays::copyOfRange (64 bytes)

      Stack: [0x0000ffff6da00000,0x0000ffff6dc00000], sp=0x0000ffff6dbfb9b0, free space=2030k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x60c518] Address::assert_is_nonliteral() const+0x58 (assembler_aarch64.cpp:245)
      V [libjvm.so+0x1334464] MacroAssembler::incrementw(Address, int)+0x24 (assembler_aarch64.hpp:484)
      V [libjvm.so+0x716eac] LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy*)+0xd6c (c1_LIRAssembler_aarch64.cpp:2524)
      V [libjvm.so+0x6f2c00] LIR_OpArrayCopy::emit_code(LIR_Assembler*)+0x20 (c1_LIR.cpp:999)
      V [libjvm.so+0x7045bc] LIR_Assembler::emit_lir_list(LIR_List*)+0xdc (c1_LIRAssembler.cpp:304)
      V [libjvm.so+0x704cf0] LIR_Assembler::emit_code(BlockList*)+0x70 (c1_LIRAssembler.cpp:228)
      V [libjvm.so+0x6a646c] Compilation::emit_code_body()+0x138 (c1_Compilation.cpp:351)
      V [libjvm.so+0x6a6b88] Compilation::compile_java_method()+0x524 (c1_Compilation.cpp:413)
      V [libjvm.so+0x6a76d4] Compilation::compile_method()+0x1c0 (c1_Compilation.cpp:471)
      V [libjvm.so+0x6a8038] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x2c8 (c1_Compilation.cpp:598)
      V [libjvm.so+0x6a9e6c] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x148 (c1_Compiler.cpp:251)
      V [libjvm.so+0x9b4ff4] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xa10 (compileBroker.cpp:2237)
      V [libjvm.so+0x9b5a58] CompileBroker::compiler_thread_loop()+0x5b8 (compileBroker.cpp:1916)
      V [libjvm.so+0xed8820] JavaThread::thread_main_inner()+0x21c (javaThread.cpp:697)
      V [libjvm.so+0x17e15b8] Thread::call_run()+0xf8 (thread.cpp:224)
      V [libjvm.so+0x14f7ed4] thread_native_entry(Thread*)+0x100 (os_linux.cpp:739)
      C [libpthread.so.0+0x7908] start_thread+0x188

      Attachments

        Issue Links

          Activity

            People

              jcao Joshua Cao
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: