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

C2: Error: ShouldNotReachHere() in Type::typerr()

    XMLWordPrintable

Details

    • b25
    • 19
    • b32

    Backports

      Description

        The attached Java Fuzzer test fails after JDK-8284960 (Ihe integration of JEP 426: Vector API (Fourth Incubator)):

        To reproduce

        $ javac FuzzerUtils.java
        $ java -Xcomp -XX:CompileOnly=Test Test.java
        $ java -Xcomp -XX:CompileOnly=Reduced Reduced.java

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/mach5/mesos/work_dir/slaves/779adf21-f3e5-4e6a-a889-8cc0f9bc6fbb-S66862/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/e7a5f059-99c2-4c80-b089-a6e1a468a184/runs/f86e41f7-d216-4fe3-8825-70c90f059250/workspace/open/src/hotspot/share/opto/type.cpp:1164), pid=12242, tid=12255
        # Error: ShouldNotReachHere()
        #
        # JRE version: Java(TM) SE Runtime Environment (19.0+25) (fastdebug build 19-ea+25-1892)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-ea+25-1892, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x1a9c469] Type::typerr(Type const*) const+0x79
        ...........
        Command Line: -Xmx1G -Xcomp -Xbatch -XX:CompileOnly=Test -XX:CompileCommand=quiet Test
        ...........
        Current CompileTask:
        C2: 311 14 b 4 Test::vMeth1 (262 bytes)

        Stack: [0x00007fe8656d2000,0x00007fe8657d3000], sp=0x00007fe8657cd4d0, free space=1005k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1a9c469] Type::typerr(Type const*) const+0x79
        V [libjvm.so+0x1a9ebbb] TypeVect::xmeet(Type const*) const+0x1eb
        V [libjvm.so+0x1aa3e93] Type::meet_helper(Type const*, bool) const+0x73
        V [libjvm.so+0x63bfd9] AddNode::add_of_identity(Type const*, Type const*) const+0x39
        V [libjvm.so+0x63c1f8] AddNode::Value(PhaseGVN*) const+0xe8
        V [libjvm.so+0x17bd373] PhaseIterGVN::transform_old(Node*)+0x233
        V [libjvm.so+0x17b64ee] PhaseIterGVN::optimize()+0x6e
        V [libjvm.so+0xae290a] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x65a
        V [libjvm.so+0xaded57] Compile::Optimize()+0x1027
        V [libjvm.so+0xae0ee0] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1520
        V [libjvm.so+0x8f826a] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x62a
        V [libjvm.so+0xaef9a8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xbb8
        V [libjvm.so+0xaf0998] CompileBroker::compiler_thread_loop()+0x6f8
        V [libjvm.so+0x1a6c1ac] JavaThread::thread_main_inner()+0x23c
        V [libjvm.so+0x1a77690] Thread::call_run()+0x100
        V [libjvm.so+0x1729454] thread_native_entry(Thread*)+0x104

        Attachments

          1. Test.java
            8 kB
          2. Reduced2.java
            0.3 kB
          3. Reduced.java
            0.3 kB
          4. hs_err_pid12242.log
            178 kB
          5. FuzzerUtils.java
            13 kB

          Issue Links

            Activity

              People

                jbhateja Jatin Bhateja
                chagedorn Christian Hagedorn
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: