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

ciReplay: assert(false) failed: unexpected TypeAryPtr::_klass

    XMLWordPrintable

    Details

      Description

      Executing attached replay file results in following crash:
      # Internal Error (/home/katya/work/JavaSE/Hotspot/ws/git/jdk.jdk.master/open/src/hotspot/share/opto/type.hpp:1263), pid=21127, tid=21140
      # assert(false) failed: unexpected TypeAryPtr::_klass
      #
      # Problematic frame:
      # V [libjvm.so+0x194f927] TypeAryPtr::make(TypePtr::PTR, TypeAry const*, ciKlass*, bool, int, int, TypePtr const*, int)+0x177
      #
      --------------- S U M M A R Y ------------

      Command Line: -XX:ReplaySuppressInitializers=0 -XX:+ReplayCompiles -XX:ReplayDataFile=replay_pid20005.log
      #
      Stack: [0x00007fcf20420000,0x00007fcf20521000], sp=0x00007fcf2051bf30, free space=1007k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x194f927] TypeAryPtr::make(TypePtr::PTR, TypeAry const*, ciKlass*, bool, int, int, TypePtr const*, int)+0x177
      V [libjvm.so+0x1951087] TypeOopPtr::make_from_klass_common(ciKlass*, bool, bool)+0x167
      V [libjvm.so+0x13ad221] PhaseMacroExpand::scalar_replacement(AllocateNode*, GrowableArray<SafePointNode*>&)+0x4a1
      V [libjvm.so+0x13ae1be] PhaseMacroExpand::eliminate_allocate_node(AllocateNode*) [clone .part.0]+0x1be
      V [libjvm.so+0x13aeafb] PhaseMacroExpand::eliminate_macro_nodes()+0x61b
      V [libjvm.so+0xa83200] Compile::Optimize()+0x1890
      V [libjvm.so+0xa84bfe] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x159e
      V [libjvm.so+0x89e804] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x664
      V [libjvm.so+0xa94ee8] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xc88
      V [libjvm.so+0xa95ca8] CompileBroker::compiler_thread_loop()+0x648
      V [libjvm.so+0x19153ba] JavaThread::thread_main_inner()+0x25a
      V [libjvm.so+0x191d780] Thread::call_run()+0x100
      V [libjvm.so+0x15ff914] thread_native_entry(Thread*)+0x104


      To reproduce do for example:

      > cp open/test/jdk/java/lang/String/Indent.java .
      > $TESTED_JDK/bin/javac Indent.java
      > $TESTED_JDK/bin/java -XX:ReplaySuppressInitializers=0 -XX:+ReplayCompiles -XX:ReplayDataFile=replay_bug.log


      You can try to generate bad replay file by yourself. In my case it happened for compId=320.
      > $TESTED_JDK/bin/java -XX:ReplaySuppressInitializers=0 -Xbatch -Xcomp -XX:CICrashAt=320 Indent

      You can generate all replay files by running the test with "-XX:CompileCommand=option,*::*,DumpReplay" and then
      see which one leads to crash.

        Attachments

          Activity

            People

            Assignee:
            dlong Dean Long
            Reporter:
            epavlova Ekaterina Pavlova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: