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

RISC-V: assert(is_aligned(byte_count, elem_size)) failed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Other
    • Icon: P4 P4
    • tbd
    • 23
    • hotspot

      When running runtime/Unsafe/InternalErrorTest.java I hit this assert once.
      Setting to runtime as the value should be coming from the interpreter.

      # Internal Error (/home/rehn/source/jdk/open/src/hotspot/share/utilities/copy.cpp:75), pid=170046, tid=170127
      # assert(is_aligned(byte_count, elem_size)) failed: byte_count 125 must be multiple of element size 2
      #
      # JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-releaserobbin)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-releaserobbin, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
      # Problematic frame:
      # V [libjvm.so+0x786384] void CopySwap::conjoint_swap_if_needed<false>(void const*, void*, unsigned long, unsigned long) [clone .part.0]+0x18

      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x786384] void CopySwap::conjoint_swap_if_needed<false>(void const*, void*, unsigned long, unsigned long) [clone .part.0]+0x18 (copy.cpp:75)
      V [libjvm.so+0x787808] void CopySwap::conjoint_swap_if_needed<true>(void const*, void*, unsigned long, unsigned long)+0x982 (copy.cpp:73)
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j jdk.internal.misc.Unsafe.copySwapMemory0(Ljava/lang/Object;JLjava/lang/Object;JJJ)V+0 java.base@23-internal
      j jdk.internal.misc.Unsafe.copySwapMemory(Ljava/lang/Object;JLjava/lang/Object;JJJ)V+33 java.base@23-internal
      j InternalErrorTest.test(Ljava/nio/MappedByteBuffer;Ljdk/internal/misc/Unsafe;JJI)V+66
      j InternalErrorTest.main([Ljava/lang/String;)V+231
      j java.lang.invoke.LambdaForm$DMH+0x000000004c0c1800.invokeStatic(Ljava/lang/Object;Ljava/lang/Object;)V+10 java.base@23-internal
      j java.lang.invoke.LambdaForm$MH+0x000000004c0c2c00.invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+33 java.base@23-internal
      j java.lang.invoke.Invokers$Holder.invokeExact_MT(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+20 java.base@23-internal
      j jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+55 java.base@23-internal
      j jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+23 java.base@23-internal
      j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+102 java.base@23-internal
      j com.sun.javatest.regtest.agent.MainWrapper$MainTask.run()V+134
      j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@23-internal
      j java.lang.Thread.run()V+19 java.base@23-internal
      v ~StubRoutines::call_stub 0x00002aaac520c4aa


            rehn Robbin Ehn
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: