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

Hotspot crashes in System.out.println with assert(resolved_method->method_holder()->is_linked()) failed: must be linked


    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u31
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
    • CPU:
    • OS:



        I added a println statement to java.security.AccessController as follows:

        diff -r 5524b5afe01c src/share/classes/java/security/AccessController.java
        --- a/src/share/classes/java/security/AccessController.java Mon Jan 12 15:08:38 2015 -0800
        +++ b/src/share/classes/java/security/AccessController.java Wed Jan 14 12:43:13 2015 -0500
        @@ -823,6 +823,7 @@
                     // to return null though, so we construct a real ACC.
                     return new AccessControlContext(null, true);
                 } else {
        + System.out.println("Stack context isAuth: " + acc.isAuthorized());
                     return acc.optimize();

        and hotspot crashed with the following log/stack trace (pathname sanitized):

        # A fatal error has been detected by the Java Runtime Environment:
        # Internal Error (.../hotspot/src/share/vm/interpreter/linkResolver.cpp:1184), pid=19086, tid=139969356101376
        # assert(resolved_method->method_holder()->is_linked()) failed: must be linked
        # JRE version: (8.0) (build )
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.51-b01-fastdebug mixed 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.java.com/bugreport/crash.jsp

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

        Current thread (0x00007f4d2000b000): JavaThread "main" [_thread_in_vm, id=19089, stack(0x00007f4d27aff000,0x00007f4d27c00000)]

        Stack: [0x00007f4d27aff000,0x00007f4d27c00000], sp=0x00007f4d27bfd340, free space=1016k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x103c8f0] VMError::report_and_die()+0x160
        V [libjvm.so+0x72946b] report_vm_error(char const*, int, char const*, char const*)+0x7b
        V [libjvm.so+0xbfb6dd] LinkResolver::runtime_resolve_virtual_method(CallInfo&, methodHandle, KlassHandle, Handle, KlassHandle, bool, Thread*)+0x17d
        V [libjvm.so+0xbfc302] LinkResolver::resolve_virtual_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0x182
        V [libjvm.so+0xbfca18] LinkResolver::resolve_invokevirtual(CallInfo&, Handle, constantPoolHandle, int, Thread*)+0x268
        V [libjvm.so+0xbfef53] LinkResolver::resolve_invoke(CallInfo&, Handle, constantPoolHandle, int, Bytecodes::Code, Thread*)+0x63
        V [libjvm.so+0x9c6cd4] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x2d4
        j java.util.Arrays.<clinit>()V+2
        v ~StubRoutines::call_stub
        V [libjvm.so+0x9d50c7] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0xfb7
        V [libjvm.so+0x9334df] InstanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*)+0xdf
        V [libjvm.so+0x933717] InstanceKlass::call_class_initializer(Thread*)+0x97

        etc ... (full trace is in attachment)


            Issue Links



                • Assignee:
                  coleenp Coleen Phillimore
                  mullan Sean Mullan
                • Votes:
                  0 Vote for this issue
                  6 Start watching this issue


                  • Created: