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

Crash in java_lang_invoke_MethodType::print_signature

XMLWordPrintable

    • b10

        Test compiler/c1/CanonicalizeArrayLength.java and might be other
        could crash when executed with
        -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation -XX:+PrintDeoptimizationDetails -XX:+TraceDeoptimization -XX:+Verbose -Xcomp

        Tail of log:
        [15505. Interpreted Frame]
        Interpreted frame (sp=0x0000fffca435de50 unextended sp=0x0000fffca435de50, fp=0x0000fffca435dec0, real_fp=0x0000fffca435dec0, pc=0x0000fffcc824bc00)
        ~deoptimization entry points [0x0000fffcc824bc00, 0x0000fffcc824d9c0] 7616 bytes
             BufferBlob (0x0000fffcc8235610) used for Interpreter
         - local [0x0000000773c03078]; #0
         - local [0x0000000000000000]; #1
         - local [0x0000000773c02f30]; #2
         - stack [0x00000007ffd00380]; #1
         - stack [0x0000000773c03078]; #0
         - monitor[0x0000fffca435de70]
         - bcp [0x0000000800b35bde]; @6
         - locals [0x0000fffca435df00]
         - method [0x00000008004370e0]; virtual void java.lang.invoke.MethodType.<init>(jobject, jobject)
        {method} {0x00000008004370e0} '<init>' '(Ljava/lang/Class;[Ljava/lang/Class;)V' in public final synchronized 'java/lang/invoke/MethodType'
        bci: 6
        locals:
        0 a 'java/lang/invoke/MethodType'{0x0000000773c03078} = (#
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x0000fffcccdf67b0, pid=1432766, tid=1432889
        #
        # JRE version: Java(TM) SE Runtime Environment (19.0) (fastdebug build 19-internal-2022-02-15-0018441.leonid.mesnik.jdk)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 19-internal-2022-02-15-0018441.leonid.mesnik.jdk, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
        # Problematic frame:
        # V [libjvm.so+0xef67b0] java_lang_invoke_MethodType::print_signature(oop, outputStream*)+0x80
        #

        The problem is that deoptimization happens right in java.lang.invoke.MethodType.<init>
        while ptype and rtype are not initialized yet.

              lmesnik Leonid Mesnik
              lmesnik Leonid Mesnik
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: