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

[JVMCI] Add extra JVMCI events for exception translation

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b25

      The crash below occurs when translating an exception from the HotSpot heap to the libgraal heap. To diagnose such crashes further requires more information about the buffer used during the translation. This issue exists to add more JVMCI events for this.

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # SIGSEGV (0xb) at pc=0x0000000160029cdc, pid=85315, tid=41219
      #
      # JRE version: OpenJDK Runtime Environment GraalVM CE 21.0.2-dev+13.1 (21.0.2+13) (build 21.0.2+13-jvmci-23.1-b30)
      # Java VM: OpenJDK 64-Bit Server VM GraalVM CE 21.0.2-dev+13.1 (21.0.2+13-jvmci-23.1-b30, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Problematic frame:
      # C [libjvmcicompiler.dylib+0x29cdc] UnmanagedMemoryUtil_copyLongsBackward_7b691590598abb4808bd8356492a4eae115aa796+0x2c
      #

      Stack: [0x000000016d5d8000,0x000000016d9db000], sp=0x000000016d9d79e0, free space=4094k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libjvmcicompiler.dylib+0x29cdc] UnmanagedMemoryUtil_copyLongsBackward_7b691590598abb4808bd8356492a4eae115aa796+0x2c
      C [libjvmcicompiler.dylib+0x29b7c] UnmanagedMemoryUtil_copyBackward_bd519f688d3017d4bc6a7566c7f413854b930c65+0x3c
      C [libjvmcicompiler.dylib+0x29b38] UnmanagedMemoryUtil_copy_60e047a1b53bf03f96a44fe90c35538388ebd6a4+0x38
      C [libjvmcicompiler.dylib+0x21a7c] JavaMemoryUtil_copyOnHeap_c4540802933f31f9aaaab977bab82e4b5e92868b+0x2c
      C [libjvmcicompiler.dylib+0x29f58] UnsafeMemoryUtil_unsafeCopyMemory_962fea10d13fd24cfb2c08fca23828c0b37e8cbb+0x38
      C [libjvmcicompiler.dylib+0x624944] Unsafe_copyMemory_38b26f405246e2c79cba9e0e9badaff69b863bb5+0x94
      C [libjvmcicompiler.dylib+0x633f14] VMSupport_bufferToBytes_63351ed500ee4fafb0f319cb0e9c1442d07145d2+0x114
      C [libjvmcicompiler.dylib+0x634334] VMSupport_decodeAndThrowThrowable_05b296293ba321b3be929a9ffc4ac868358daa9c+0x344
      C [libjvmcicompiler.dylib+0xe4a30] JNIJavaCallWrapperHolder_invoke_IJZ_J_16266b4d7600136825f9e7fff8288101c1b220f6+0xa0
      C [libjvmcicompiler.dylib+0xc994c] JNIJavaCallVariantWrapperHolder_invokeJJIIJI_J_VA_LIST_ed86ba52566961c6ff72d719206f00e5d4f9def9+0xfc
      V [libjvm.dylib+0x60a400] JNIEnv_::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+0x24
      V [libjvm.dylib+0x61f75c] HotSpotToSharedLibraryExceptionTranslation::decode(JavaThread*, ExceptionTranslation::DecodeFormat, long)+0xc4
      V [libjvm.dylib+0x60bb2c] ExceptionTranslation::doit(JavaThread*)+0x15c
      V [libjvm.dylib+0x60be08] JVMCIEnv::transfer_pending_exception(JavaThread*, JVMCIEnv*)+0x1a0
      V [libjvm.dylib+0x5d41a0] c2v_translate(JNIEnv_*, _jobject*, _jobject*, unsigned char)+0x794
      C [libjvmcicompiler.dylib+0x66e504] CompilerToVM_translate_a8db62e11d4c0e97ddc50b93363c0fb36733cc57+0xc4
      C [libjvmcicompiler.dylib+0x692750] HotSpotJVMCIRuntime_translate_ed1dc17d8fac5c95dc3e4342ed8d6ec72458a7f2+0xa0
      C [libjvmcicompiler.dylib+0x14a1bc] LibGraal_translate_dbd167e275cfe741aea99ae82b4ac4024136cdf7+0x2c
      C [libjvmcicompiler.dylib+0x1540d4] HSTruffleCompilerRuntime_getHostMethodInfo_2f809bd623aabeac201931298f9d04a276264ef8+0x24
      C [libjvmcicompiler.dylib+0x156b64] LibGraalTruffleHostEnvironment$HostMethodInfoCache_computeValue_e99ab586a90668f6eb2b7115dd39342c06d81d49+0x34
      C [libjvmcicompiler.dylib+0x156ac8] LibGraalTruffleHostEnvironment$HostMethodInfoCache_computeValue_0ba310485199ee1bb60066bfe1940407dd64c579+0x48
      C [libjvmcicompiler.dylib+0xfe8d34] TruffleElementCache_get_d8ab94cd134b0538077e3363916125a01cce8991+0xb4
      C [libjvmcicompiler.dylib+0x157178] LibGraalTruffleHostEnvironment_getHostMethodInfo_d82011e4e02066aeda0a94fb537342cb9a899986+0x28
      C [libjvmcicompiler.dylib+0xff8ed8] HostInliningPhase_shouldDenyTrivialInlining_9d99f5f4e3cc1ee55b6aead2b8c1ce994a119183+0x38
      C [libjvmcicompiler.dylib+0xfec0c0] HostInliningPhase$BytecodeParserInlineInvokePlugin_shouldInlineInvoke_97a68e1b91fb1ab6b70bae8e79ec984a82da59a0+0x50
      C [libjvmcicompiler.dylib+0x9fefec] BytecodeParser_tryInline_b33222887b2cf763114cf5144c5301265f715d6e+0x13c

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: