Incorrect assert in CastLLNode::Ideal

XMLWordPrintable

    • b03
    • 27

      The attached Java Fuzzer failure starts to fail after JDK-8367341 with the following assertion:

      To reproduce:
      $ java -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch Test.java
      $ java -XX:CompileCommand=compileonly,*Reduced*::* -XX:-TieredCompilation -Xbatch Reduced.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/da1065b5-7b94-4f0d-85e9-a3a252b9a32e-S35568/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/0749998a-5034-4b32-81b3-be27d8a2b7c1/runs/d604f20f-e69e-4651-82f3-79f998a668d4/workspace/open/src/hotspot/share/opto/castnode.cpp:396), pid=188715, tid=188734
      # assert((tl != t_in_l) == (tl->_lo > t_in_l->_lo || tl->_hi < t_in_l->_hi)) failed: if type differs then this nodes's type must be narrower
      #
      # JRE version: Java(TM) SE Runtime Environment (27.0+4) (fastdebug build 27-ea+4-314)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 27-ea+4-314, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xa091dd] CastLLNode::Ideal(PhaseGVN*, bool)+0x53d
      .................
      Command Line: -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch --add-modules=ALL-DEFAULT jdk.compiler/com.sun.tools.javac.launcher.SourceLauncher Test.java
      .................
      Current CompileTask:
      C2:2108 128 % !b Test::mainTest @ 76 (543 bytes)

      Stack: [0x00007f3b7c5cb000,0x00007f3b7c6cb000], sp=0x00007f3b7c6c5cf0, free space=1003k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xa091dd] CastLLNode::Ideal(PhaseGVN*, bool)+0x53d (castnode.cpp:396)
      V [libjvm.so+0x189bb8d] PhaseIterGVN::transform_old(Node*)+0xbd (phaseX.cpp:668)
      V [libjvm.so+0x18a09f5] PhaseIterGVN::optimize()+0xc5 (phaseX.cpp:1054)
      V [libjvm.so+0xbb8362] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x672 (loopnode.hpp:1344)
      V [libjvm.so+0xbaf121] Compile::optimize_loops(PhaseIterGVN&, LoopOptsMode)+0xb1 (compile.cpp:2268)
      V [libjvm.so+0xbb204f] Compile::Optimize()+0xcbf (compile.cpp:2517)
      V [libjvm.so+0xbb51f3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2023 (compile.cpp:862)
      V [libjvm.so+0x9cc468] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x498 (c2compiler.cpp:147)
      V [libjvm.so+0xbc46e0] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x780 (compileBroker.cpp:2345)
      V [libjvm.so+0xbc5f40] CompileBroker::compiler_thread_loop()+0x530 (compileBroker.cpp:1989)
      V [libjvm.so+0x112659b] JavaThread::thread_main_inner()+0x13b (javaThread.cpp:776)
      V [libjvm.so+0x1bb28f6] Thread::call_run()+0xb6 (thread.cpp:242)
      V [libjvm.so+0x1808518] thread_native_entry(Thread*)+0x118 (os_linux.cpp:860)

        1. FuzzerUtils.java
          13 kB
          Christian Hagedorn
        2. hs_err_pid188715.log
          80 kB
          Christian Hagedorn
        3. Reduced.java
          0.8 kB
          Christian Hagedorn
        4. Test.java
          5 kB
          Christian Hagedorn
        5. TestC2Fuzz.java
          2 kB
          Manuel Hässig

            Assignee:
            Quan Anh Mai
            Reporter:
            Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: