[lworld] C2: compiler/vectorization/runner/LoopArrayIndexComputeTest.java crashes with unbound label assert with --enable-preview

XMLWordPrintable

      When running the test with --enable-preview, the VM crashes. This was observed with Parallel GC in the parent process but the actual test fails with G1. The failure is intermittent.

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (src\hotspot\share\asm/assembler.hpp:169), pid=46540, tid=92716
      # assert(is_bound() || is_unused()) failed: Label was never bound to a location, but it was used as a jmp target
      #
      # JRE version: Java(TM) SE Runtime Environment (26.0) (fastdebug build 26-jep401ea2-2025-12-01-1629116)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-jep401ea2-2025-12-01-1629116, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0xeaa8c8] PhaseOutput::Output+0xc88
      #
      # Core dump will be written. Default location: testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\scratch\0\hs_err_pid46540.mdmp
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -Dtest.vm.opts=-XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -Djava.io.tmpdir=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\tmp -XX:+CreateCoredumpOnCrash -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=4.16667 -J-Dtest.boot.jdk=jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -J-Djava.io.tmpdir=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\tmp -J-XX:+CreateCoredumpOnCrash -Dtest.compiler.opts= -Dtest.java.opts=--enable-preview -Dtest.jdk=2025-12-01-1629116\windows-x64-debug.jdk\jdk-26\fastdebug -Dcompile.jdk=2025-12-01-1629116\windows-x64-debug.jdk\jdk-26\fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=2025-12-01-1629116\windows-x64-debug.test\hotspot\jtreg\native -Dtest.root=2025-12-01-1629116\src.full\open\test\hotspot\jtreg -Dtest.name=compiler/vectorization/runner/LoopArrayIndexComputeTest.java -Dtest.verbose=Verbose[p=BRIEF,f=FULL,e=FULL,t=true,m=false] -Dtest.file=2025-12-01-1629116\src.full\open\test\hotspot\jtreg\compiler\vectorization\runner\LoopArrayIndexComputeTest.java -Dtest.main.class=compiler.vectorization.runner.LoopArrayIndexComputeTest -Dtest.src=2025-12-01-1629116\src.full\open\test\hotspot\jtreg\compiler\vectorization\runner -Dtest.src.path=2025-12-01-1629116\src.full\open\test\hotspot\jtreg\compiler\vectorization\runner;2025-12-01-1629116\src.full\open\test\lib;2025-12-01-1629116\src.full\open\test\hotspot\jtreg -Dtest.classes=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d -Dtest.class.path=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d;testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d\test\lib;testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d -Dtest.class.path.prefix=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d;2025-12-01-1629116\src.full\open\test\hotspot\jtreg\compiler\vectorization\runner;testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\classes\0\compiler\vectorization\runner\LoopArrayIndexComputeTest.d\test\lib -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -Djava.io.tmpdir=testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\tmp -XX:+CreateCoredumpOnCrash --enable-preview -Djava.library.path=2025-12-01-1629116\windows-x64-debug.test\hotspot\jtreg\native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI com.sun.javatest.regtest.agent.MainWrapper testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_compiler\compiler\vectorization\runner\LoopArrayIndexComputeTest.d\main.1.jta yAV_ySAC

      Host: AMD EPYC 9J14 96-Core Processor , 12 cores, 23G, Windows Server 2022 , 64 bit Build 20348 (10.0.20348.3692)
      Time: Mon Dec 1 18:40:13 2025 Etc elapsed time: 1.419478 seconds (0d 0h 0m 1s)

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

      Current thread (0x0000025077625f40): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=92716, stack(0x00000055f6200000,0x00000055f6300000) (1024K)]


      Current CompileTask:
      C2:1419 378 4 java.lang.Byte::equals (31 bytes)

      Stack: [0x00000055f6200000,0x00000055f6300000], sp=0x00000055f62fc4e0, free space=1009k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xeaa8c8] PhaseOutput::Output+0xc88 (output.cpp:384)
      V [jvm.dll+0x5f344d] Compile::Code_Gen+0x37d (compile.cpp:3680)
      V [jvm.dll+0x5f17d7] Compile::Compile+0x1357 (compile.cpp:923)
      V [jvm.dll+0x4e16af] C2Compiler::compile_method+0x15f (c2compiler.cpp:152)
      V [jvm.dll+0x613190] CompileBroker::invoke_compiler_on_method+0x7f0 (compileBroker.cpp:2345)
      V [jvm.dll+0x6105cc] CompileBroker::compiler_thread_loop+0x27c (compileBroker.cpp:1990)
      V [jvm.dll+0x9a9131] JavaThread::thread_main_inner+0x251 (javaThread.cpp:778)
      V [jvm.dll+0x112ad4e] Thread::call_run+0x1be (thread.cpp:247)
      V [jvm.dll+0xe9fd14] thread_native_entry+0xc4 (os_windows.cpp:555)
      C [ucrtbase.dll+0x26b4c] (no source info available)
      C [KERNEL32.DLL+0x14cb0] (no source info available)
      C [ntdll.dll+0x7edcb] (no source info available)

        1. hs_err_pid46540.log
          63 kB
          Paul Hübner
        2. replay_pid46540.log
          197 kB
          Paul Hübner

            Assignee:
            Unassigned
            Reporter:
            Paul Hübner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: