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

NoSuchMethodException: j.l.i.MethodHandle.linkToStatic during JVM startup cause fatal error: ExceptionMark destructor expects no pending exceptions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8u60, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b06
    • Introduced In Version:
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        Starting from 8u40-b06 JVM crashes with fatal error: ExceptionMark destructor expects no pending exceptions:

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/opt/jprt/T/P1/093631.amurillo/s/hotspot/src/share/vm/utilities/exceptions.cpp:427), pid=32637, tid=140625270261504
        # fatal error: ExceptionMark destructor expects no pending exceptions
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0_40-b06) (build 1.8.0_40-internal-fastdebug-201409190936.amurillo.hs25-40-b11-jdk8u4-b06)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.40-b11-fastdebug compiled mode linux-amd64 compressed oops)
        # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        #
        # If you would like to submit a bug report, please visit:
        # http://bugreport.sun.com/bugreport/crash.jsp
        #

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

        Current thread (0x0000000000da7000): JavaThread "main" [_thread_in_vm, id=32640, stack(0x00007fe5df37c000,0x00007fe5df47d000)]

        Stack: [0x00007fe5df37c000,0x00007fe5df47d000], sp=0x00007fe5df47b5a0, free space=1021k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0xfddf92] VMError::report_and_die()+0x2d2
        V [libjvm.so+0x720c30] report_fatal(char const*, int, char const*)+0x80
        V [libjvm.so+0x7d41e7] ExceptionMark::~ExceptionMark()+0x147
        V [libjvm.so+0xf5ca34] Threads::create_vm(JavaVMInitArgs*, bool*)+0x424
        V [libjvm.so+0xa5eeb4] JNI_CreateJavaVM+0xb4
        C [libjli.so+0x7c0e] JavaMain+0x9e
        C [libpthread.so.0+0x69ca] start_thread+0xca


        According to the test log, the pending exception is "java.lang.NoSuchMethodException: no such method: java.lang.invoke.MethodHandle.linkToStatic(Object,MemberName)Object/invokeStatic":
        ----------System.out:(32/2143)----------
        CodeCache: size=4096Kb used=3577Kb max_used=3577Kb free=518Kb
         bounds [0x00007fe5dc0de000, 0x00007fe5dc4de000, 0x00007fe5dc4de000]
         total_blobs=950 nmethods=369 adapters=500
         compilation: disabled (not enough contiguous free space left)
        java.lang.InternalError
         - klass: 'java/lang/InternalError'
         - ---- fields (total size 4 words):
         - private transient 'backtrace' 'Ljava/lang/Object;' @12 a 'java/lang/Object'[4] (ec099f20 ec09a460)
         - private 'detailMessage' 'Ljava/lang/String;' @16 "java.lang.NoSuchMethodException: no such method: java.lang.invoke.MethodHandle.linkToStatic(Object,MemberName)Object/invokeStatic" (ec09a460 ec099aa0)
         - private 'cause' 'Ljava/lang/Throwable;' @20 a 'java/lang/NoSuchMethodException' (ec099aa0 eb592218)
         - private 'stackTrace' '[Ljava/lang/StackTraceElement;' @24 a 'java/lang/StackTraceElement'[0] (eb592218 eb592820)
         - private strict 'suppressedExceptions' 'Ljava/util/List;' @28 a 'java/util/Collections$UnmodifiableRandomAccessList' (eb592820 1)

        Issue could be reproduced only w/ -Xcomp.
        I was not able to reproduce it w/ 8u40-b05 as well as w/ 9-b31.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vlivanov Vladimir Ivanov
                Reporter:
                fzhinkin Filipp Zhinkin
                Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: