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

3 compiler tests failed with "assert(allocates2(pc)) failed: not in CodeBuffer memory"

XMLWordPrintable

    • b20
    • x86_64
    • windows

      The following tests failed in the JDK16 CI:

      compiler/vectorization/TestMacroLogicVector.java
      compiler/arraycopy/TestArrayCopyDisjoint.java
      compiler/arraycopy/TestArrayCopyConjoint.java

      Here's a snippet from the TestMacroLogicVector.java log file:

      #section:main
      ----------messages:(4/589)----------
      command: main -XX:+IgnoreUnrecognizedVMOptions -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:UseAVX=3 -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*::test* -XX:+TraceNewVectors compiler.vectorization.TestMacroLogicVector
      reason: User specified action: run main/othervm -XX:+IgnoreUnrecognizedVMOptions -Xbatch -XX:-TieredCompilation -XX:CICompilerCount=1 -XX:UseAVX=3 -XX:CompileCommand=quiet -XX:CompileCommand=compileonly,*::test* -XX:+TraceNewVectors compiler.vectorization.TestMacroLogicVector
      Mode: othervm [/othervm specified]
      elapsed time (seconds): 3.99
      ----------configuration:(0/0)----------
      ----------System.out:(16/1005)*----------
      # To suppress the following error report, specify this argument
      # after -XX: or in .hotspotrc: SuppressErrorAt=\\asm/codeBuffer.hpp:184
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (t:\\workspace\\open\\src\\hotspot\\share\\asm/codeBuffer.hpp:184), pid=1668744, tid=1705624
      # assert(allocates2(pc)) failed: not in CodeBuffer memory: 0x0000024cc7a948a0 <= 0x0000024cc7aa2621 <= 0x0000024cc7aa2620
      #
      # JRE version: (16.0+20) (fastdebug build )
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 16-ea+20-1037, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, windows-amd64)
      # Core dump will be written. Default location: T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\\scratch\\1\\hs_err_pid1668744.mdmp
      #
      # An error report file with more information is saved as:
      # T:\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_compiler_3\\scratch\\1\\hs_err_pid1668744.log
      #
      #
      ----------System.err:(2/312)----------
      Java HotSpot(TM) 64-Bit Server VM warning: Disabling tiered compilation with non-native JVMCI compiler is not recommended. Turning on tiered compilation and disabling intermediate compilation levels instead.
      Java HotSpot(TM) 64-Bit Server VM warning: Increasing number of compiler threads for JVMCI compiler.
      ----------rerun:(57/6172)*----------


      Here's the crashing thread's stack:

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

      Current thread (0x0000024cb737dfa0): JavaThread "Unknown thread" [_thread_in_vm, id=1705624, stack(0x0000009738c00000,0x0000009738d00000)]

      Stack: [0x0000009738c00000,0x0000009738d00000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xa58bf1] os::platform_print_native_stack+0xf1 (os_windows_x86.cpp:236)
      V [jvm.dll+0xc76bb6] VMError::report+0xfc6 (vmError.cpp:731)
      V [jvm.dll+0xc7859e] VMError::report_and_die+0x7de (vmError.cpp:1548)
      V [jvm.dll+0xc78c54] VMError::report_and_die+0x64 (vmError.cpp:1341)
      V [jvm.dll+0x446bc7] report_vm_error+0x117 (debug.cpp:267)
      V [jvm.dll+0xe2b22] CodeSection::set_end+0x62 (codeBuffer.hpp:184)
      V [jvm.dll+0x20322f] Assembler::subl+0x5f (assembler_x86.cpp:4666)
      V [jvm.dll+0xb681e2] StubGenerator::generate_base64_encodeBlock+0x2772 (stubGenerator_x86_64.cpp:5571)
      V [jvm.dll+0xb64e04] StubGenerator::generate_all+0x1354 (stubGenerator_x86_64.cpp:6826)
      V [jvm.dll+0xb5d160] StubGenerator_generate+0x50 (stubGenerator_x86_64.cpp:6877)
      V [jvm.dll+0xb8aa47] StubRoutines::initialize2+0xd7 (stubRoutines.cpp:317)
      V [jvm.dll+0x5f3872] init_globals+0xc2 (init.cpp:155)
      V [jvm.dll+0xc0cf11] Threads::create_vm+0x621 (thread.cpp:3732)
      V [jvm.dll+0x6d04a2] JNI_CreateJavaVM_inner+0xb2 (jni.cpp:3764)
      V [jvm.dll+0x6d331f] JNI_CreateJavaVM+0x1f (jni.cpp:3847)
      C [jli.dll+0x53ef] JavaMain+0x113 (java.c:416)
      C [ucrtbase.dll+0x1fb80]
      C [KERNEL32.DLL+0x84d4]
      C [ntdll.dll+0x6e871]

      Normally a Tier3 failure would start out at P4, but in this case
      we have three test failures so I'm starting this one as a P3.

      The failing test task has this description:

      Run test open/test/hotspot/jtreg/:tier1_compiler_3 with windows-x64-debug with -XX:+CreateCoredumpOnCrash -ea -esa -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+UseJVMCICompiler -Djvmci.Compiler=graal -XX:+TieredCompilation

            kvn Vladimir Kozlov
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: