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

C2: assert(is_valid()) failed: must be valid after JDK-8305636

XMLWordPrintable

    • b11

      The attached Fuzzer test fails:

      ```
      cd 0001/
      ../build/linux-x86_64-server-fastdebug/images/jdk/bin/java -Xmx512m -XX:-TieredCompilation Test

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/shipilev/shipilev-jdk/src/hotspot/share/opto/predicates.hpp:252), pid=18183, tid=18203
      # assert(is_valid()) failed: must be valid
      #

      Current thread (0x00007f8f6425e980): JavaThread "C2 CompilerThread4" daemon [_thread_in_native, id=18203, stack(0x00007f8fe170c000,0x00007f8fe180d000) (1028K)]


      Current CompileTask:
      C2: 254 27 Test::vMeth (380 bytes)

      Stack: [0x00007f8fe170c000,0x00007f8fe180d000], sp=0x00007f8fe18076b0, free space=1005k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1122f5f] PhaseIdealLoop::clone_parse_predicate_to_unswitched_loops(PredicateBlock const*, Deoptimization::DeoptReason, IfProjNode*&, IfProjNode*&)+0xaf (predicates.hpp:252)
      V [libjvm.so+0x112322a] PhaseIdealLoop::clone_parse_and_assertion_predicates_to_unswitched_loop(IdealLoopTree*, Node_List&, IfProjNode*&, IfProjNode*&)+0x1ea (loopPredicate.cpp:449)
      V [libjvm.so+0x11412ae] PhaseIdealLoop::create_slow_version_of_loop(IdealLoopTree*, Node_List&, IfNode*, PhaseIdealLoop::CloneLoopMode)+0x8ae (loopUnswitch.cpp:255)
      V [libjvm.so+0x11424aa] PhaseIdealLoop::do_unswitching(IdealLoopTree*, Node_List&)+0xfa (loopUnswitch.cpp:142)
      V [libjvm.so+0x113eb58] IdealLoopTree::iteration_split_impl(PhaseIdealLoop*, Node_List&)+0x1c8 (loopTransform.cpp:3601)
      V [libjvm.so+0x113f142] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x2e2 (loopTransform.cpp:3730)
      V [libjvm.so+0x113f123] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x2c3 (loopTransform.cpp:3742)
      V [libjvm.so+0x113f123] IdealLoopTree::iteration_split(PhaseIdealLoop*, Node_List&)+0x2c3 (loopTransform.cpp:3742
      ```

      Bisection points to JDK-8305636.

            chagedorn Christian Hagedorn
            shade Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: