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

C2: assert(_base == Int) failed: Not an Int

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b29
    • Introduced In Version:
      16
    • Resolved In Build:
      b34
    • Verification:
      Verified

      Backports

        Description

        The attached fuzzer test fails with the following assertion:

        To reproduce:
        # java -Xcomp -XX:-TieredCompilation -XX:CompileOnly=Test Test.java

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/983c483a-6907-44e0-ad29-98c7183575e2-S14469/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/5986f74f-93ba-4d44-baaf-79d9af86790f/runs/ec853337-5fd8-4ef2-b3ea-1559f628e816/workspace/open/src/hotspot/share/opto/type.hpp:1613), pid=31055, tid=31068
        # assert(_base == Int) failed: Not an Int
        #
        # JRE version: Java(TM) SE Runtime Environment (16.0+32) (fastdebug build 16-ea+32-2190)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 16-ea+32-2190, compiled mode, sharing, compressed oops, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x1621164] PhaseIterGVN::no_dependent_zero_check(Node*) const+0x144
        ...........
        Command Line: -Xmx1G -Xcomp -Xbatch -XX:-TieredCompilation -XX:CompileOnly=Test -XX:CompileCommand=quiet Test
        ...........
        Current thread (0x00007f6164495ac0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=31068, stack(0x00007f6154043000,0x00007f6154144000)]


        Current CompileTask:
        C2: 329 5 !b Test::iMeth (323 bytes)

        Stack: [0x00007f6154043000,0x00007f6154144000], sp=0x00007f615413f3d0, free space=1008k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1621164] PhaseIterGVN::no_dependent_zero_check(Node*) const+0x144
        V [libjvm.so+0xe045fb] IfNode::dominated_by(Node*, PhaseIterGVN*)+0x37b
        V [libjvm.so+0x16255bd] PhaseIterGVN::transform_old(Node*)+0xed
        V [libjvm.so+0x161ddbe] PhaseIterGVN::optimize()+0x7e
        V [libjvm.so+0xa168e6] Compile::Optimize()+0x216
        V [libjvm.so+0xa19988] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1838
        V [libjvm.so+0x849aec] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1dc
        V [libjvm.so+0xa29798] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xe88
        V [libjvm.so+0xa2a3e8] CompileBroker::compiler_thread_loop()+0x5a8
        V [libjvm.so+0x18ba936] JavaThread::thread_main_inner()+0x256
        V [libjvm.so+0x18c12b0] Thread::call_run()+0x100
        V [libjvm.so+0x15a3486] thread_native_entry(Thread*)+0x116

          Attachments

          1. FuzzerUtils.java
            13 kB
          2. hs_err_pid31055.log
            168 kB
          3. Test.java
            9 kB

            Issue Links

              Activity

                People

                Assignee:
                chagedorn Christian Hagedorn
                Reporter:
                chagedorn Christian Hagedorn
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: