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

Memory corruption in MStack::push

XMLWordPrintable

    • 24
    • b03

        A few odd numbers (83, 85, 87, 89, ...) of -XX:OptoNodeListSize trigger an assert in the matcher:

        java -Xcomp -XX:-TieredCompilation -XX:OptoNodeListSize=89 Test.java

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (workspace/open/src/hotspot/share/opto/matcher.cpp:1263), pid=2845732, tid=2845750
        # Error: ShouldNotReachHere()
        #
        # JRE version: Java(TM) SE Runtime Environment (25.0+26) (fastdebug build 25-ea+26-LTS-3300)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 25-ea+26-LTS-3300, compiled mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x15ddf1e] Matcher::xform(Node*, int)+0x140e

        Current CompileTask:
        C2:10877 2247 !b java.net.URI::create (23 bytes)

        Stack: [0x0000783fdcc00000,0x0000783fdcd00000], sp=0x0000783fdccfba90, free space=1006k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x15ddf1e] Matcher::xform(Node*, int)+0x140e (matcher.cpp:1263)
        V [libjvm.so+0x15e3dff] Matcher::match()+0x10ff
        V [libjvm.so+0xb2308e] Compile::Code_Gen()+0x1fe
        V [libjvm.so+0xb28be3] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x2033
        V [libjvm.so+0x94fe57] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x467
        V [libjvm.so+0xb37f18] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xb58
        V [libjvm.so+0xb390e8] CompileBroker::compiler_thread_loop()+0x578
        V [libjvm.so+0x108590b] JavaThread::thread_main_inner()+0x13b
        V [libjvm.so+0x1ad1746] Thread::call_run()+0xb6
        V [libjvm.so+0x1759058] thread_native_entry(Thread*)+0x128

          1. hs_err_pid2854707.log
            80 kB
          2. replay_pid2854707.log
            145 kB
          3. Test.java
            0.1 kB

              thartmann Tobias Hartmann
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: