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

Anti-dependency on membar causes crash in register allocator due to invalid instruction scheduling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b156
    • Verification:
      Verified

      Backports

        Description

        jdk9 PIT,
        closed/java/lang/Enum/CloneEnumConstant.java crashed two times on different hosts

        ;; Using jvm: "/scratch/home/aurora/CommonData/TEST_JAVA_HOME/lib/server/libjvm.so"
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f2b77d52cf0, pid=29533, tid=29602
        #
        # JRE version: Java(TM) SE Runtime Environment (9.0) (fastdebug build 9-internal+0-2017-01-13-173800.jesper.dev1780-hs)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 9-internal+0-2017-01-13-173800.jesper.dev1780-hs, compiled mode, compressed oops, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x86acf0] RegMask::AND(RegMask const&)+0x0
        #
        # Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/home/aurora/sandbox/results/workDir/closed/java/lang/Enum/CloneEnumConstant/core.29533)
        #
        # If you would like to submit a bug report, please visit:
        # http://bugreport.java.com/bugreport/crash.jsp
        #

        --------------- S U M M A R Y ------------

        Command Line: -Dtest.src=/scratch/home/aurora/CommonData/j2se_jdk/jdk/test/closed/java/lang/Enum -Dtest.src.path=/scratch/home/aurora/CommonData/j2se_jdk/jdk/test/closed/java/lang/Enum -Dtest.classes=/scratch/home/aurora/sandbox/results/workDir/classes/15/closed/java/lang/Enum -Dtest.class.path=/scratch/home/aurora/sandbox/results/workDir/classes/15/closed/java/lang/Enum -Dtest.vm.opts= -Dtest.tool.vm.opts= -Dtest.compiler.opts= -Dtest.java.opts=-Xcomp -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:-UseBiasedLocking -Dtest.jdk=/export/home/aurora/CommonData/TEST_JAVA_HOME -Dcompile.jdk=/export/home/aurora/CommonData/TEST_JAVA_HOME -Dtest.timeout.factor=16.0 -Dtest.modules=java.corba/com.sun.corba.se.impl.copyobject java.corba/com.sun.corba.se.spi.copyobject -Dtest.nativepath=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED --add-modules=java.corba --add-exports=java.corba/com.sun.corba.se.impl.copyobject=ALL-UNNAMED --add-exports=java.corba/com.sun.corba.se.spi.copyobject=ALL-UNNAMED -Xcomp -Xcomp -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -XX:+IgnoreUnrecognizedVMOptions -XX:+AggressiveOpts -XX:-UseBiasedLocking -Djava.library.path=/export/home/aurora/sandbox/JTREG_NATIVEPATH_LIBRARY_PREPARED com.sun.javatest.regtest.agent.MainWrapper /scratch/home/aurora/sandbox/results/workDir/closed/java/lang/Enum/CloneEnumConstant.d/main.1.jta

        Host: scaaa603.us.oracle.com, Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 32 cores, 251G, Oracle Linux Server release 7.0
        Time: Sat Jan 14 12:53:36 2017 PST elapsed time: 44 seconds (0d 0h 0m 44s)

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

        Current thread (0x00007f2b7053c6b0): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=29602, stack(0x00007f2a60690000,0x00007f2a60791000)]


        Current CompileTask:
        C2: 44913 5843 !b com.sun.corba.se.impl.io.IIOPOutputStream::simpleWriteObject (176 bytes)

        Stack: [0x00007f2a60690000,0x00007f2a60791000], sp=0x00007f2a6078c0d8, free space=1008k
        Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x86acf0] RegMask::AND(RegMask const&)+0x0;; RegMask::AND(RegMask const&)+0x0
        V [libjvm.so+0x869b66] PhaseChaitin::Register_Allocate()+0x4c6;; PhaseChaitin::Register_Allocate()+0x4c6
        V [libjvm.so+0x9e5f79] Compile::Code_Gen()+0x3a9;; Compile::Code_Gen()+0x3a9
        V [libjvm.so+0x9e9b4a] Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x130a;; Compile::Compile(ciEnv*, C2Compiler*, ciMethod*, int, bool, bool, bool, DirectiveSet*)+0x130a
        V [libjvm.so+0x819062] C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x2e2;; C2Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x2e2
        V [libjvm.so+0x9f5156] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3d6;; CompileBroker::invoke_compiler_on_method(CompileTask*)+0x3d6
        V [libjvm.so+0x9f5df1] CompileBroker::compiler_thread_loop()+0x2b1;; CompileBroker::compiler_thread_loop()+0x2b1
        V [libjvm.so+0x15f8a9e] JavaThread::thread_main_inner()+0x22e;; JavaThread::thread_main_inner()+0x22e
        V [libjvm.so+0x15f8d2e] JavaThread::run()+0x1ce;; JavaThread::run()+0x1ce
        V [libjvm.so+0x1347032] thread_native_entry(Thread*)+0x112;; thread_native_entry(Thread*)+0x112
        C [libpthread.so.0+0x7dc5] start_thread+0xc5

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thartmann Tobias Hartmann
                  Reporter:
                  dfazunen Dmitry Fazunenko (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: