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

C2: assert(!(*casted_receiver)->is_top()) failed: that path should be unreachable

XMLWordPrintable

    • aarch64
    • os_x

      Test: runtime/cds/appcds/applications/JavacBench.java#aot

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/e06a84a2-297b-45cc-807a-21ee0dbfa509-S719/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b82834d7-5ca0-4d44-bf55-992b337be7fb/runs/8d038d65-9bba-406a-a463-51c4a19b8cf9/workspace/open/src/hotspot/share/opto/graphKit.cpp:2950), pid=39855, tid=28167
      # assert(!(*casted_receiver)->is_top()) failed: that path should be unreachable
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+13) (fastdebug build 25-ea+13-LTS-1363)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+13-LTS-1363, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.39855
      #
      # 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: -XX:MaxRAMPercentage=6.25 -Dtest.boot.jdk=/System/Volumes/Data/mesos/work_dir/jib-master/install/jdk/23/37/bundles/macos-aarch64/jdk-23_macos-aarch64_bin.tar.gz/jdk-23.jdk/Contents/Home -Djava.io.tmpdir=/System/Volumes/Data/mesos/work_dir/slaves/d228d36c-581b-4156-829e-5c5a441dd0ce-S438/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/6cbb2d3e-381a-41b2-bb61-10ead25693b2/runs/7cf90e5f-17c9-49ec-98cf-66f242ed5482/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_tier2_runtime/tmp -Xcomp -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -Xlog:cds -Xlog:cds+heap=error -XX:AOTMode=create -XX:AOTConfiguration=JavacBench.aotconfig -XX:AOTCache=JavacBench.aot -Xlog:cds=debug,cds+class=debug,cds+heap=warning,cds+resolve=debug:file=JavacBench.aot.log::filesize=0

      Host: "Mac14,3" arm64, 8 cores, 16G, Darwin 23.4.0, macOS 14.4.1 (23E224)
      Time: Sun Mar 2 06:20:32 2025 GMT elapsed time: 1.379895 seconds (0d 0h 0m 1s)

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

      Current thread (0x0000000138c2c210): JavaThread "C2 CompilerThread2" daemon [_thread_in_native, id=28167, stack(0x000000016cce0000,0x000000016cee3000) (2060K)]


      Current CompileTask:
      C2:1379 551 jdk.internal.classfile.impl.Util::toInternalName (31 bytes)

      Stack: [0x000000016cce0000,0x000000016cee3000], sp=0x000000016cee03b0, free space=2048k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x1161798] VMError::report(outputStream*, bool)+0x1aac (graphKit.cpp:2950)
      V [libjvm.dylib+0x1164d94] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x548
      V [libjvm.dylib+0x578840] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x7d9370] GraphKit::subtype_check_receiver(Node*, ciKlass*, Node**)+0x0
      V [libjvm.dylib+0x7da3c0] GraphKit::maybe_cast_profiled_receiver(Node*, TypeKlassPtr const*, ciKlass*, bool)+0x138
      V [libjvm.dylib+0x7dac8c] GraphKit::gen_instanceof(Node*, Node*, bool)+0x54c
      V [libjvm.dylib+0xe8d1dc] Parse::do_instanceof()+0xcc
      V [libjvm.dylib+0xe88de8] Parse::do_one_bytecode()+0x1de4
      V [libjvm.dylib+0xe78528] Parse::do_one_block()+0x49c
      V [libjvm.dylib+0xe765c0] Parse::do_all_blocks()+0x480
      V [libjvm.dylib+0xe72da4] Parse::Parse(JVMState*, ciMethod*, float)+0xa34
      V [libjvm.dylib+0x39ad1c] ParseGenerator::generate(JVMState*)+0x104
      V [libjvm.dylib+0x4cf540] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0xe0c
      V [libjvm.dylib+0x399244] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1e0
      V [libjvm.dylib+0x4ee7f8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x868
      V [libjvm.dylib+0x4edc28] CompileBroker::compiler_thread_loop()+0x348
      V [libjvm.dylib+0x8bf7ac] JavaThread::thread_main_inner()+0x1a8
      V [libjvm.dylib+0x10ae1a0] Thread::call_run()+0xf4
      V [libjvm.dylib+0xe46c90] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x6f94] _pthread_start+0x88

            iklam Ioi Lam
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: