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

C2: Crash under PhaseIdealLoop::verify_strip_mined_scheduling with -XX:+VerifyLoopOptimizations

XMLWordPrintable

      Please find hs_err file, and fuzzy test sources (attached). Here are the commands to reproduce the issue:

      $ java -XX:CompileCommand=compileonly,*Test*::* -XX:-TieredCompilation -Xbatch -XX:+VerifyLoopOptimizations Test.java
      $ java -XX:CompileCommand=compileonly,*Reduced*::* -XX:-TieredCompilation -Xbatch -XX:+VerifyLoopOptimizations Reduced.java


      A quote from the hs_err_ file:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/d2398cde-9325-49c3-b030-8961a4f0a253-S299953/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/4beeee61-66a0-4f20-9cd4-298bf210c8b3/runs/c1fc1080-0328-4ed8-9902-68b14b06f8c0/workspace/open/src/hotspot/share/opto/loopnode.cpp:6359), pid=304655, tid=304673
      # Error: ShouldNotReachHere()
      #
      # JRE version: Java(TM) SE Runtime Environment (25.0+23) (fastdebug build 25-ea+23-LTS-2742)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+23-LTS-2742, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x14d8204] PhaseIdealLoop::verify_strip_mined_scheduling(Node*, Node*)+0x334

      Current CompileTask:
      C2:147 23 % !b Test_3433::mainTest @ 337 (651 bytes)

      Stack: [0x000000016eab4000,0x000000016ecb7000], sp=0x000000016ecb2670, free space=2041k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x11e3408] VMError::report(outputStream*, bool)+0x1b00 (loopnode.cpp:6359)
      V [libjvm.dylib+0x11e6ca8] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void const*, void const*, char const*, int, unsigned long)+0x55c
      V [libjvm.dylib+0x59f3b4] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x59f338] report_vm_error(char const*, int, char const*, char const*, ...)+0x0
      V [libjvm.dylib+0x59f5b0] report_unimplemented(char const*, int)+0x0
      V [libjvm.dylib+0xcf8df8] PhaseIdealLoop::verify_strip_mined_scheduling(Node*, Node*)+0x49c
      V [libjvm.dylib+0xcf9614] PhaseIdealLoop::build_loop_late_post_work(Node*, bool)+0x784
      V [libjvm.dylib+0xcf361c] PhaseIdealLoop::build_loop_late(VectorSet&, Node_List&, Node_Stack&)+0x270
      V [libjvm.dylib+0xcf1c18] PhaseIdealLoop::build_and_optimize()+0x7d8
      V [libjvm.dylib+0x50a6e0] PhaseIdealLoop::PhaseIdealLoop(PhaseIterGVN&, PhaseIdealLoop const*)+0x28c
      V [libjvm.dylib+0xcf37f4] PhaseIdealLoop::verify() const+0xb4
      V [libjvm.dylib+0xcf207c] PhaseIdealLoop::build_and_optimize()+0xc3c
      V [libjvm.dylib+0x50ab24] PhaseIdealLoop::PhaseIdealLoop(PhaseIterGVN&, LoopOptsMode)+0x28c
      V [libjvm.dylib+0x4fcf14] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0xb0
      V [libjvm.dylib+0x4f54d8] Compile::Optimize()+0x99c
      V [libjvm.dylib+0x4f371c] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1584
      V [libjvm.dylib+0x3b86c8] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x204
      V [libjvm.dylib+0x513900] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x98c
      V [libjvm.dylib+0x512c20] CompileBroker::compiler_thread_loop()+0x390
      V [libjvm.dylib+0x8f4d64] JavaThread::thread_main_inner()+0x1d0
      V [libjvm.dylib+0x112e62c] Thread::call_run()+0xf0
      V [libjvm.dylib+0xea7430] thread_native_entry(Thread*)+0x138
      C [libsystem_pthread.dylib+0x6c0c] _pthread_start+0x88
      Lock stack of current Java thread (top to bottom):

        1. FuzzerUtils.java
          13 kB
        2. hs_err_pid76565.log
          207 kB
        3. Reduced.java
          9 kB
        4. replay_pid76565.log
          155 kB
        5. Test_3433.java
          9 kB

            Unassigned Unassigned
            enikitin Evgeny Nikitin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: