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

JVM crashed with "assert(adr_type != NULL) failed: source must have adr_type" while printing ideal graph to file

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      JVM intermittently crashing with assert while printing ideal graph to file:

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/HUDSON/workspace/8-2-build-linux-amd64/jdk8/1590/hotspot/src/share/vm/opto/machnode.cpp:549), pid=32713, tid=139669152626432
      # assert(adr_type != NULL) failed: source must have adr_type
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0-b125) (build 1.8.0-ea-fastdebug-b125)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b66-fastdebug mixed mode linux-amd64 compressed oops)
      # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x00007f075013b800): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=32724, stack(0x00007f07422a7000,0x00007f07423a8000)]

      Stack: [0x00007f07422a7000,0x00007f07423a8000], sp=0x00007f07423a2d40, free space=1007k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xf5f62a] VMError::report_and_die()+0x2da
      V [libjvm.so+0x6e0da4] report_vm_error(char const*, int, char const*, char const*)+0x84
      V [libjvm.so+0xba7729] MachProjNode::adr_type() const+0xb9
      V [libjvm.so+0xc23c65] MergeMemNode::memory_at(unsigned int) const+0x2a5
      V [libjvm.so+0xc242e8] MergeMemNode::dump_spec(outputStream*) const+0x148
      V [libjvm.so+0x88446c] IdealGraphPrinter::visit_node(Node*, bool, VectorSet*)+0x51c
      V [libjvm.so+0x885608] IdealGraphPrinter::walk_nodes(Node*, bool, VectorSet*)+0x448
      V [libjvm.so+0x885e58] IdealGraphPrinter::print(Compile*, char const*, Node*, int, bool)+0x108
      V [libjvm.so+0x65f53e] Compile::print_method(CompilerPhaseType, int)+0xbe
      V [libjvm.so+0x656d9a] Compile::Code_Gen()+0x42a
      V [libjvm.so+0x65aa8f] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x180f
      V [libjvm.so+0x537b11] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x2c1
      V [libjvm.so+0x6670fa] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x4ba
      V [libjvm.so+0x668454] CompileBroker::compiler_thread_loop()+0x584
      V [libjvm.so+0xee29f1] JavaThread::thread_main_inner()+0x221
      V [libjvm.so+0xee2ced] JavaThread::run()+0x2ad
      V [libjvm.so+0xcf62b8] java_start(Thread*)+0x108


      Current CompileTask:
      C2: 330 12 % IGPrinterCrash::test @ 18 (56 bytes)


      I was able to reproduce issue with hs25, hs24 and hs23 using attached testcase:
      jdk1.8.0/fastdebug/bin/java -XX:PrintIdealGraphFile=ig.xml -XX:PrintIdealGraphLevel=1 -XX:-TieredCompilation IGPrinterCrash

      Attachments

        Activity

          People

            chagedorn Christian Hagedorn
            fzhinkin Filipp Zhinkin
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: