C1: assert(opr == calc_operand_for_interval(interval)) failed: wrong cached value

XMLWordPrintable

      The test

          compiler/arguments/TestMethodArguments.java

      failed in tier2 with the following message. This only happened once on linux-aarch64-debug so far.

      Additional flags:
      -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:+TieredCompilation

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S26826/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/eb9c7f9f-2dee-42b8-849e-88d6f7065db1/runs/14356b1d-57a3-438b-82e6-1a9a23a5b00b/workspace/open/src/hotspot/share/c1/c1_LinearScan.cpp:2057), pid=2215161, tid=2215193
      # assert(opr == calc_operand_for_interval(interval)) failed: wrong cached value
      #
      # JRE version: Java(TM) SE Runtime Environment (26.0+23) (fastdebug build 26-ea+23-2341)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-ea+23-2341, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x779990] LinearScan::operand_for_interval(Interval*) [clone .part.0]+0x30
      .......
      Command Line: -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-26+23-2341/linux-aarch64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk/25/37/bundles/linux-aarch64/jdk-25_linux-aarch64_bin.tar.gz/jdk-25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/526fbd26-20de-495c-9a19-a04adc16f7d1-S25330/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/3343b849-bd73-4f7c-93d5-bad9f5201f1f/runs/5b9b6034-92e2-4efa-b12c-a8dd2d845d99/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier2_compiler/tmp -ea -esa -XX:+UnlockExperimentalVMOptions -XX:+TieredCompilation -Dir.framework.server.port=44619 -XX:-BackgroundCompilation -XX:CompileCommand=quiet compiler.lib.ir_framework.test.TestVM InnerTest
      ..........
      Current CompileTask:
      C1:51029 3131 b 3 java.lang.invoke.LambdaForm$MH/0x000001ff0113c000::invoke (46 bytes)

      Stack: [0x0000ffff52976000,0x0000ffff52b74000], sp=0x0000ffff52b71060, free space=2028k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x779990] LinearScan::operand_for_interval(Interval*) [clone .part.0]+0x30 (c1_LinearScan.cpp:2057)
      V [libjvm.so+0x77d518] LinearScan::operand_for_interval(Interval*)+0x58 (c1_LinearScan.cpp:2057)
      V [libjvm.so+0x78cd64] LinearScan::color_lir_opr(LIR_Opr, int, LIR_OpVisitState::OprMode)+0xbc (c1_LinearScan.cpp:2205)
      V [libjvm.so+0x79a90c] LinearScan::assign_reg_num(GrowableArray<LIR_Op*>*, IntervalWalker*)+0x3ec (c1_LinearScan.cpp:2937)
      V [libjvm.so+0x79ad5c] LinearScan::assign_reg_num()+0xdc (c1_LinearScan.cpp:3013)
      V [libjvm.so+0x7a100c] LinearScan::do_linear_scan()+0x120 (c1_LinearScan.cpp:3053)
      V [libjvm.so+0x6e27e4] Compilation::emit_lir()+0x6e4 (c1_Compilation.cpp:274)
      V [libjvm.so+0x6e482c] Compilation::compile_java_method()+0x224 (c1_Compilation.cpp:396)
      V [libjvm.so+0x6e50c4] Compilation::compile_method()+0x224 (c1_Compilation.cpp:471)
      V [libjvm.so+0x6e56d4] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x2b4 (c1_Compilation.cpp:600)
      V [libjvm.so+0x6e75c8] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x164 (c1_Compiler.cpp:263)
      V [libjvm.so+0x9d2bec] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb08 (compileBroker.cpp:2345)
      V [libjvm.so+0x9d3b18] CompileBroker::compiler_thread_loop()+0x638 (compileBroker.cpp:1989)
      V [libjvm.so+0xed5b08] JavaThread::thread_main_inner()+0x108 (javaThread.cpp:772)
      V [libjvm.so+0x184d8fc] Thread::call_run()+0xac (thread.cpp:242)
      V [libjvm.so+0x152b7ec] thread_native_entr

            Assignee:
            Unassigned
            Reporter:
            Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: