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

CTW: C1 fails with "State must not be null"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • Verification:
      Verified

      Backports

        Description

        $ export JAVA_HOME=<point to fastdebug build>
        $ export PATH=$JAVA_HOME/bin:$PATH
        $ cd test/hotspot/jtreg/testlibrary/ctw
        $ make
        $ cd dist
        $ wget https://repo1.maven.org/maven2/com/cloudbees/diff4j/1.2/diff4j-1.2.jar
        $ JAVA_OPTIONS="-XX:TieredStopAtLevel=1" ./ctw.sh diff4j-1.2.jar

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/home/shade/trunks/jdk/src/hotspot/share/c1/c1_RangeCheckElimination.cpp:903), pid=3761927, tid=3761940
        # assert(state) failed: State must not be null

        Current CompileTask:
        C1: 612 325 !b 1 com.cloudbees.diff.Patch$SinglePatchReader::hasNextPatch (697 bytes)

        Stack: [0x00007f05ccc36000,0x00007f05ccd37000], sp=0x00007f05ccd34050, free space=1016k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x8269ec] RangeCheckEliminator::process_access_indexed(BlockBegin*, BlockBegin*, AccessIndexed*) [clone .part.0]+0x54c
        V [libjvm.so+0x827e30] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x640
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x827d63] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x573
        V [libjvm.so+0x827bc7] RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*)+0x3d7
        V [libjvm.so+0x82834a] RangeCheckEliminator::RangeCheckEliminator(IR*)+0x3ca
        V [libjvm.so+0x8289d0] RangeCheckElimination::eliminate(IR*)+0x40
        V [libjvm.so+0x72bfe6] Compilation::build_hir() [clone .part.0]+0x1256
        V [libjvm.so+0x72f9e0] Compilation::compile_java_method()+0x1c0
        V [libjvm.so+0x7307e4] Compilation::compile_method()+0x1d4
        V [libjvm.so+0x7311ff] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, bool, DirectiveSet*)+0x36f
        V [libjvm.so+0x732637] Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1a7
        V [libjvm.so+0xa44369] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf19
        V [libjvm.so+0xa45048] CompileBroker::compiler_thread_loop()+0x5a8
        V [libjvm.so+0x19d07b1] JavaThread::thread_main_inner()+0x281
        V [libjvm.so+0x19d7ee4] Thread::call_run()+0x104

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                iveresov Igor Veresov
                Reporter:
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: