[lworld] C2 fails assert(adr_type != nullptr) failed: source must have adr_type

XMLWordPrintable

    • x86_64
    • linux

      The following test failed in the Valhalla CI:

      compiler/valhalla/inlinetypes/TestArrayCopy.java#AlwaysIncrementalInline

      Here's a snippet from the log file:

      #section:main
      ----------messages:(8/682)----------
      command: main -Xbatch -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline compiler.valhalla.inlinetypes.TestArrayCopy
      reason: User specified action: run main/othervm -Xbatch -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AlwaysIncrementalInline compiler.valhalla.inlinetypes.TestArrayCopy
      started: Thu Jan 08 09:30:12.125 UTC 2026
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.value=ALL-UNNAMED --add-exports java.base/jdk.internal.vm.annotation=ALL-UNNAMED
      Process id: 1367556
      finished: Thu Jan 08 09:30:19.875 UTC 2026
      elapsed time (seconds): 7.75
      ----------configuration:(5/193)----------
      Boot Layer
        add modules: java.base
        add exports: java.base/jdk.internal.value ALL-UNNAMED
                     java.base/jdk.internal.vm.annotation ALL-UNNAMED

      ----------System.out:(24/2233)----------
      For random generator using seed: 846339988
      To re-run test with same seed value please add "-Djdk.test.lib.random.seed=846339988" to command line.
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S35035/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/efc90bc3-1742-4601-b793-e68de62ba49f/runs/5695bc08-eee6-4eb5-b6fa-c8723aca4a98/workspace/open/src/hotspot/share/opto/multnode.cpp:159), pid=1367556, tid=1367605
      # assert(adr_type != nullptr) failed: source must have adr_type
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+1) (fastdebug build 27-valhalla+1-23)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-valhalla+1-23, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x183b29b] ProjNode::adr_type() const+0x14b
      #
      # Core dump will be written. Default location: Determined by the following: "/opt/core.sh %p" (alternatively, falling back to /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34954/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9cc166ac-3fe6-4331-969e-8715058240cd/runs/49b1cfe7-f55c-4edf-b988-d15a4329395d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/scratch/4/core.1367556)
      #
      # An error report file with more information is saved as:
      # /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34954/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9cc166ac-3fe6-4331-969e-8715058240cd/runs/49b1cfe7-f55c-4edf-b988-d15a4329395d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/scratch/4/hs_err_pid1367556.log
      #
      # Compiler replay data is saved as:
      # /opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S34954/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/9cc166ac-3fe6-4331-969e-8715058240cd/runs/49b1cfe7-f55c-4edf-b988-d15a4329395d/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_compiler_3/scratch/4/replay_pid1367556.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ----------System.err:(0/0)----------
      ----------rerun:(52/8676)*----------


      Here's the crashing thread's stack:

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

      Current thread (0x00007f2f1815bf80): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=1367605, stack(0x00007f2efb29b000,0x00007f2efb39b000) (1024K)]


      Current CompileTask:
      C2:1768 323 b compiler.valhalla.inlinetypes.TestArrayCopy::testConstantLen5 (49 bytes)

      Stack: [0x00007f2efb29b000,0x00007f2efb39b000], sp=0x00007f2efb395d00, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x183b29b] ProjNode::adr_type() const+0x14b (multnode.cpp:159)
      V [libjvm.so+0x17a38ca] MergeMemNode::memory_at(unsigned int) const+0x2aa (memnode.cpp:6218)
      V [libjvm.so+0x17b3ef4] MergeMemNode::Ideal(PhaseGVN*, bool)+0x224 (memnode.cpp:6027)
      V [libjvm.so+0x199342d] PhaseIterGVN::transform_old(Node*)+0xbd (phaseX.cpp:668)
      V [libjvm.so+0x1998275] PhaseIterGVN::optimize()+0xc5 (phaseX.cpp:1054)
      V [libjvm.so+0xc0f770] Compile::inline_incrementally_cleanup(PhaseIterGVN&)+0x360 (compile.cpp:2697)
      V [libjvm.so+0xc1053e] Compile::inline_incrementally(PhaseIterGVN&)+0x42e (compile.cpp:2747)
      V [libjvm.so+0xc1305e] Compile::Optimize()+0x47e (compile.cpp:2880)
      V [libjvm.so+0xc1693d] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1d8d (compile.cpp:885)
      V [libjvm.so+0xa0a625] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x4b5 (c2compiler.cpp:149)
      V [libjvm.so+0xc26280] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x780 (compileBroker.cpp:2345)
      V [libjvm.so+0xc27ae0] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
      V [libjvm.so+0x11ef24b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:777)
      V [libjvm.so+0x1cdda36] Thread::call_run()+0xb6 (thread.cpp:242)
      V [libjvm.so+0x18f3bd8] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)

            Assignee:
            Damon Fenacci
            Reporter:
            Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: