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

UnsafeIntrinsicsTest.java#ZGenerationalDebug assert(!assert_on_failure) failed: Has low-order bits set

XMLWordPrintable

    • gc
    • b11
    • aarch64
    • windows

      The test compiler/gcbarriers/UnsafeIntrinsicsTest.java#ZGenerationalDebug fails by assert on Windows aarch64 on fastdebug binaries as follows

      ```
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (s\src\hotspot\share\gc/z/zAddress.inline.hpp:300), pid=5296, tid=4352
      # assert(!assert_on_failure) failed: Has low-order bits set: 0xbdbd323532317063
      #
      # JRE version: (24.0+2) (fastdebug build )
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 24+2-b3, mixed mode, tiered, compressed class ptrs, z gc, windows-aarch64)
      # CreateCoredumpOnCrash turned off, no core file dumped
      #
      #

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

      Command Line: -Dtest.vm.opts= -Dtest.tool.vm.opts= -Dtest.compiler.opts= -Dtest.java.opts=-Djbr.catch.SIGABRT=true -Dtest.jdk=D:\BuildAgent\work\a4596779d36397b2\jbrsdk-24-windows-aarch64-fastdebug-b3 -Dcompile.jdk=D:\BuildAgent\work\a4596779d36397b2\jbrsdk-24-windows-aarch64-fastdebug-b3 -Dtest.timeout.factor=2.0 -Dtest.nativepath=D:\BuildAgent\work\a4596779d36397b2\support\test\hotspot\jtreg\native -Dtest.root=D:\BuildAgent\work\a4596779d36397b2\test\hotspot\jtreg -Dtest.name=compiler/gcbarriers/UnsafeIntrinsicsTest.java#ZGenerationalDebug -Dtest.file=D:\BuildAgent\work\a4596779d36397b2\test\hotspot\jtreg\compiler\gcbarriers\UnsafeIntrinsicsTest.java -Dtest.src=D:\BuildAgent\work\a4596779d36397b2\test\hotspot\jtreg\compiler\gcbarriers -Dtest.src.path=D:\BuildAgent\work\a4596779d36397b2\test\hotspot\jtreg\compiler\gcbarriers;D:\BuildAgent\work\a4596779d36397b2\test\lib -Dtest.classes=D:\BuildAgent\work\a4596779d36397b2\JTwork\classes\0\compiler\gcbarriers\UnsafeIntrinsicsTest_ZGenerationalDebug.d -Dtest.class.path=D:\BuildAgent\work\a4596779d36397b2\JTwork\classes\0\compiler\gcbarriers\UnsafeIntrinsicsTest_ZGenerationalDebug.d;D:\BuildAgent\work\a4596779d36397b2\JTwork\classes\0\test\lib -Dtest.modules=java.base/jdk.internal.misc:+open --add-modules=java.base --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED -Djbr.catch.SIGABRT=true -Djava.library.path=D:\BuildAgent\work\a4596779d36397b2\support\test\hotspot\jtreg\native -XX:+UseZGC -XX:+ZGenerational -XX:+UnlockDiagnosticVMOptions -XX:+ZVerifyOops -XX:ZCollectionInterval=1 -XX:-CreateCoredumpOnCrash -XX:CompileCommand=dontinline,*::mergeImpl* com.sun.javatest.regtest.agent.MainWrapper D:\BuildAgent\work\a4596779d36397b2\JTwork\compiler\gcbarriers\UnsafeIntrinsicsTest_ZGenerationalDebug.d\main.1.jta

      Host: jre-w11a-azr1, Ampere(R) Altra(R) Processor, 4 cores, 15G, Windows 11 , 64 bit Build 22621 (10.0.22621.3672)
      Time: Tue Jun 18 11:30:48 2024 Coordinated Universal Time elapsed time: 0.114944 seconds (0d 0h 0m 0s)

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

      Current thread (0x000002c97529a200): JavaThread "main" [_thread_in_vm, id=4352, stack(0x000000d1e0f00000,0x000000d1e1000000) (1024K)]

      Stack: [0x000000d1e0f00000,0x000000d1e1000000]
      Native frames: <unavailable>
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.lang.Object.clone()Ljava/lang/Object;+0 java.base
      j java.util.Arrays.copyOfRange([BII)[B+11 java.base
      j java.lang.String.<init>(Ljava/lang/AbstractStringBuilder;Ljava/lang/Void;)V+32 java.base
      j java.lang.StringBuilder.toString()Ljava/lang/String;+16 java.base
      j sun.nio.cs.StandardCharsets.toLower(Ljava/lang/String;)Ljava/lang/String;+121 java.base
      j sun.nio.cs.StandardCharsets.lookup(Ljava/lang/String;)Ljava/nio/charset/Charset;+44 java.base
      j sun.nio.cs.StandardCharsets.charsetForName(Ljava/lang/String;)Ljava/nio/charset/Charset;+6 java.base
      j java.nio.charset.Charset.lookup2(Ljava/lang/String;)Ljava/nio/charset/Charset;+39 java.base
      j java.nio.charset.Charset.lookup(Ljava/lang/String;)Ljava/nio/charset/Charset;+40 java.base
      j java.nio.charset.Charset.isSupported(Ljava/lang/String;)Z+1 java.base
      j java.lang.System.initPhase1()V+37 java.base
      v ~StubRoutines::call_stub 0x000002c907530180
      Lock stack of current Java thread (top to bottom):
      LockStack[0]: sun.nio.cs.StandardCharsets
      {0x0000040000017ed0} - klass: 'sun/nio/cs/StandardCharsets'
       - ---- fields (total size 5 words):
       - private 'classMap' 'Ljava/util/Map;' @16 null (0x0000000000000000)
       - private 'aliasMap' 'Ljava/util/Map;' @24 null (0x0000000000000000)
       - private 'cache' 'Ljava/util/Map;' @32 null (0x0000000000000000)
      ```
      see the attached hs_err.txt

      The failure was observed on jdk24, jdk21

      Reproducibility: 100%

            swesonga Saint Wesonga
            vprovodin Vitaly Provodin
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: