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

C2 assert: assert(flat != TypePtr::BOTTOM) failed: cannot alias-analyze an untyped ptr when running SPECjbb2013



    • Bug
    • Resolution: Duplicate
    • P4
    • 9
    • 8u40, 9
    • hotspot



        When running SPECjbb2013 on a fastdebug build I get the following crash:

        # Internal Error (/localhome/hg/hs-gc-clean/src/share/vm/opto/compile.cpp:1662), pid=12975, tid=139818001143552
        # assert(flat != TypePtr::BOTTOM) failed: cannot alias-analyze an untyped ptr
        # JRE version: Java(TM) SE Runtime Environment (8.0_20-b22) (build 1.8.0_20-ea-fastdebug-b22)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.9.0-fastdebug-internal-hs-gc-clean mixed mode linux-amd64 compressed oops)
        # Core dump written. Default location: /localhome/mgerdin/tests/rw/benchmarks/specjbb2013/core or core.12975
        # 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 (0x00007f2b05851000): JavaThread "C2 CompilerThread1" daemon [_thread_in_native, id=13147, stack(0x00007f29ea3a9000,0x00007f29ea4aa000)]

        Stack: [0x00007f29ea3a9000,0x00007f29ea4aa000], sp=0x00007f29ea4a3c20, free space=1003k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xff8666] VMError::report(outputStream*)+0x1124
        V [libjvm.so+0xff9c95] VMError::report_and_die()+0x411
        V [libjvm.so+0x7b3188] report_vm_error(char const*, int, char const*, char const*)+0xb4
        V [libjvm.so+0x7216bf] Compile::find_alias_type(TypePtr const*, bool, ciField*)+0x15f
        V [libjvm.so+0x3b7376] Compile::alias_type(TypePtr const*, ciField*)+0x40
        V [libjvm.so+0x6445e6] Compile::get_alias_index(TypePtr const*)+0x38
        V [libjvm.so+0x72532a] Compile::final_graph_reshaping_impl(Node*, Final_Reshape_Counts&)+0x20e
        V [libjvm.so+0x726ea3] Compile::final_graph_reshaping_walk(Node_Stack&, Node*, Final_Reshape_Counts&)+0x237
        V [libjvm.so+0x7273b2] Compile::final_graph_reshaping()+0x184
        V [libjvm.so+0x723f3c] Compile::Optimize()+0xd86
        V [libjvm.so+0x71d650] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool)+0x11bc
        V [libjvm.so+0x616c04] C2Compiler::compile_method(ciEnv*, ciMethod*, int)+0x118
        V [libjvm.so+0x73ab72] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x4e0
        V [libjvm.so+0x73a09a] CompileBroker::compiler_thread_loop()+0x3c2
        V [libjvm.so+0xf848f7] compiler_thread_entry(JavaThread*, Thread*)+0x66
        V [libjvm.so+0xf7f0b1] JavaThread::thread_main_inner()+0x183
        V [libjvm.so+0xf7ef0b] JavaThread::run()+0x189
        V [libjvm.so+0xdbf103] java_start(Thread*)+0x1ca
        C [libpthread.so.0+0x8182] start_thread+0xc2

        Current CompileTask:
        C2:4472860 12046 % 4 java.util.concurrent.ForkJoinPool$WorkQueue::growArray @ 83 (174 bytes)

        It seems to regularly crash when osr-compiling that particular method at bci 83.

        I=M, assert in fastdebug but product seems to run fine
        L=H, assert fires every time the benchmark is run
        W=H, no known workaround


          1. hs_err_pid12010.log
            513 kB
          2. hs_err_pid12975.log
            512 kB
          3. hs_err_pid4046.log
            75 kB
          4. replay_pid12010.log
            186 kB
          5. replay_pid12975.log
            195 kB

          Issue Links



                vlivanov Vladimir Ivanov
                mgerdin Mikael Gerdin (Inactive)
                0 Vote for this issue
                9 Start watching this issue