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

javah crash in sharedRuntime.cpp:843

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 7u13
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:

      Description

      FULL PRODUCT VERSION :
      java version " 1.7.0_13 "
      Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
      Java HotSpot(TM) Server VM (build 23.7-b01, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Ubuntu 10.04

      A DESCRIPTION OF THE PROBLEM :
      Building JavaFX on linux, fails periodically during javah.

      Not reproducible on demand, retrying the build has worked. Clean and rebuild does not happen. Just updated to 13, saw this a couple of times before updating.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      clean build the JFX tree repeatedly until it fails.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (sharedRuntime.cpp:843), pid=324, tid=1085848432
      # guarantee(cb->is_adapter_blob() || cb->is_method_handles_adapter_blob()) failed: exception happened outside interpreter, nmethods and vtable stubs (1)
      #
      # JRE version: 7.0_13-b20
      # Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode linux-x86 )
      # 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 (0x0995e000): JavaThread " main " [_thread_in_Java, id=325, stack(0x40b3b000,0x40b8c000)]

      Stack: [0x40b3b000,0x40b8c000], sp=0x40b894c0, free space=313k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x4901a9] VMError::report_and_die()+0x199
      V [libjvm.so+0x1c45a9] report_vm_error(char const*, int, char const*, char const*)+0x49
      V [libjvm.so+0x3f2d38] SharedRuntime::continuation_for_implicit_exception(JavaThread*, unsigned char*, SharedRuntime::ImplicitExceptionKind)+0x318
      V [libjvm.so+0x3ac542] JVM_handle_linux_signal+0x672
      V [libjvm.so+0x3a4836] signalHandler(int, siginfo*, void*)+0x26
      C [libpthread.so.0+0xe370] _L_unlock_19+0xb
      J java.net.URL.<init>(Ljava/net/URL;Ljava/lang/String;Ljava/net/URLStreamHandler;)V
      j sun.misc.URLClassPath$JarLoader.checkResource(Ljava/lang/String;ZLjava/util/jar/JarEntry;)Lsun/misc/Resource;+13
      J sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resource;
      j java.net.URLClassLoader$1.run()Ljava/lang/Object;+1
      v ~StubRoutines::call_stub
      V [libjvm.so+0x27de45] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x315
      V [libjvm.so+0x3a2b09] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x19
      V [libjvm.so+0x27cc5f] JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*)+0x2f
      V [libjvm.so+0x2d7974] JVM_DoPrivileged+0x274
      C [libjava.so+0x9a4a] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3a
      j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0
      j java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class;+13
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+70
      j sun.misc.Launcher$AppClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+36
      j java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class;+3
      v ~StubRoutines::call_stub
      V [libjvm.so+0x27de45] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x315
      V [libjvm.so+0x3a2b09] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x19
      V [libjvm.so+0x27cc5f] JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*)+0x2f
      V [libjvm.so+0x27e26a] JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Handle, Thread*)+0x12a
      V [libjvm.so+0x432611] SystemDictionary::load_instance_class(Symbol*, Handle, Thread*)+0x471
      V [libjvm.so+0x432d06] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, Thread*)+0x6d6
      V [libjvm.so+0x4332a0] SystemDictionary::resolve_or_fail(Symbol*, Handle, Handle, bool, Thread*)+0x30
      V [libjvm.so+0x47bd06] VerificationType::is_reference_assignable_from(VerificationType const&, ClassVerifier*, Thread*) const+0x1e6
      V [libjvm.so+0x4854a5] StackMapFrame::pop_stack(VerificationType, Thread*)+0x135
      V [libjvm.so+0x480977] ClassVerifier::verify_method(methodHandle, Thread*)+0xb97
      V [libjvm.so+0x484617] ClassVerifier::verify_class(Thread*)+0xd7
      V [libjvm.so+0x4849c8] Verifier::verify(instanceKlassHandle, Verifier::Mode, bool, Thread*)+0x258
      V [libjvm.so+0x24bb87] instanceKlass::verify_code(instanceKlassHandle, bool, Thread*)+0x37
      V [libjvm.so+0x24e724] instanceKlass::link_class_impl(instanceKlassHandle, bool, Thread*)+0x4b4
      V [libjvm.so+0x25523f] instanceKlass::initialize_impl(instanceKlassHandle, Thread*)+0x5f
      V [libjvm.so+0x25578b] instanceKlass::initialize(Thread*)+0x5b
      V [libjvm.so+0x338e0a] LinkResolver::resolve_static_call(CallInfo&, KlassHandle&, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0xfa
      V [libjvm.so+0x338f54] LinkResolver::resolve_invokestatic(CallInfo&, constantPoolHandle, int, Thread*)+0xc4
      V [libjvm.so+0x277697] InterpreterRuntime::resolve_invoke(JavaThread*, Bytecodes::Code)+0x157
      j com.sun.tools.javac.comp.MemberEnter.<init>(Lcom/sun/tools/javac/util/Context;)V+67
      j com.sun.tools.javac.comp.MemberEnter.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/comp/MemberEnter;+20
      j com.sun.tools.javac.comp.Enter.<init>(Lcom/sun/tools/javac/util/Context;)V+65
      j com.sun.tools.javac.comp.Enter.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/comp/Enter;+20
      j com.sun.tools.javac.comp.Check.<init>(Lcom/sun/tools/javac/util/Context;)V+72
      j com.sun.tools.javac.comp.Check.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/comp/Check;+20
      j com.sun.tools.javac.code.Types.<init>(Lcom/sun/tools/javac/util/Context;)V+460
      j com.sun.tools.javac.code.Types.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/code/Types;+20
      j com.sun.tools.javac.jvm.ClassReader.<init>(Lcom/sun/tools/javac/util/Context;Z)V+195
      j com.sun.tools.javac.jvm.ClassReader.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/jvm/ClassReader;+21
      j com.sun.tools.javac.main.JavaCompiler.<init>(Lcom/sun/tools/javac/util/Context;)V+126
      j com.sun.tools.javac.main.JavaCompiler.instance(Lcom/sun/tools/javac/util/Context;)Lcom/sun/tools/javac/main/JavaCompiler;+20
      j com.sun.tools.javac.main.Main.compile([Ljava/lang/String;[Ljava/lang/String;Lcom/sun/tools/javac/util/Context;Lcom/sun/tools/javac/util/List;Ljava/lang/Iterable;)I+569
      j com.sun.tools.javac.api.JavacTaskImpl.call()Ljava/lang/Boolean;+59
      j com.sun.tools.javah.JavahTask.run()Z+475
      j com.sun.tools.javah.JavahTask.run([Ljava/lang/String;)I+6
      j com.sun.tools.javah.Main.main([Ljava/lang/String;)V+10
      v ~StubRoutines::call_stub
      V [libjvm.so+0x27de45] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x315
      V [libjvm.so+0x3a2b09] os::os_exception_wrapper(void (*)(JavaValue*, methodHandle*, JavaCallArguments*, Thread*), JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x19
      V [libjvm.so+0x27cc5f] JavaCalls::call(JavaValue*, methodHandle, JavaCallArguments*, Thread*)+0x2f
      V [libjvm.so+0x29070a] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*)+0x23a
      V [libjvm.so+0x29af7b] jni_CallStaticVoidMethod+0xbb
      C [libjli.so+0x2e8d] JavaMain+0x8bd
      C [libpthread.so.0+0x596e] start_thread+0xbe


      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x57144800 JavaThread " Service Thread " daemon [_thread_blocked, id=331, stack(0x5742f000,0x57480000)]
        0x57142c00 JavaThread " C1 CompilerThread0 " daemon [_thread_blocked, id=330, stack(0x573ae000,0x5742f000)]
        0x57141000 JavaThread " Signal Dispatcher " daemon [_thread_blocked, id=329, stack(0x5735d000,0x573ae000)]
        0x57100800 JavaThread " Finalizer " daemon [_thread_blocked, id=328, stack(0x57092000,0x570e3000)]
        0x099d9800 JavaThread " Reference Handler " daemon [_thread_blocked, id=327, stack(0x57041000,0x57092000)]
      =>0x0995e000 JavaThread " main " [_thread_in_Java, id=325, stack(0x40b3b000,0x40b8c000)]

      Other Threads:
        0x099d3c00 VMThread [stack: 0x56fc0000,0x57041000] [id=326]
        0x5714f000 WatcherThread [stack: 0x57480000,0x57501000] [id=332]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 2432K, used 1795K [0x42ca0000, 0x42f40000, 0x481f0000)
        eden space 2176K, 70% used [0x42ca0000, 0x42e20ee0, 0x42ec0000)
        from space 256K, 99% used [0x42ec0000, 0x42efffe0, 0x42f00000)
        to space 256K, 0% used [0x42f00000, 0x42f00000, 0x42f40000)
       tenured generation total 5504K, used 667K [0x481f0000, 0x48750000, 0x52ca0000)
         the space 5504K, 12% used [0x481f0000, 0x48296e00, 0x48296e00, 0x48750000)
       compacting perm gen total 12288K, used 3299K [0x52ca0000, 0x538a0000, 0x56ca0000)
         the space 12288K, 26% used [0x52ca0000, 0x52fd8d80, 0x52fd8e00, 0x538a0000)
      No shared spaces configured.

      Card table byte_map: [0x56ca0000,0x56d41000] byte_map_base: 0x56a89b00

      Polling page: 0x4002b000

      Code Cache [0x40c1b000, 0x40cd3000, 0x42c1b000)
       total_blobs=211 nmethods=76 adapters=70 free_code_cache=32058Kb largest_free_block=32827904

      Compilation events (10 events):
      Event: 0.364 Thread 0x57142c00 68 java.lang.Character::toUpperCase (9 bytes)
      Event: 0.365 Thread 0x57142c00 nmethod 68 0x40ccb048 code [0x40ccb150, 0x40ccb1f8]
      Event: 0.365 Thread 0x57142c00 69 java.lang.CharacterDataLatin1::toUpperCase (53 bytes)
      Event: 0.365 Thread 0x57142c00 nmethod 69 0x40ccb288 code [0x40ccb380, 0x40ccb470]
      Event: 0.365 Thread 0x57142c00 70 java.security.ProtectionDomain::getCodeSource (5 bytes)
      Event: 0.365 Thread 0x57142c00 nmethod 70 0x40ccb588 code [0x40ccb680, 0x40ccb700]
      Event: 0.365 Thread 0x57142c00 72 s sun.misc.PerfCounter::add (18 bytes)
      Event: 0.365 Thread 0x57142c00 nmethod 72 0x40ccb748 code [0x40ccb8a0, 0x40ccbc38]
      Event: 0.365 Thread 0x57142c00 73 s sun.misc.PerfCounter::get (9 bytes)
      Event: 0.366 Thread 0x57142c00 nmethod 73 0x40ccbd88 code [0x40ccbeb0, 0x40ccc08c]

      GC Heap History (4 events):
      Event: 0.202 GC heap before
      {Heap before GC invocations=0 (full 0):
       def new generation total 2432K, used 2176K [0x42ca0000, 0x42f40000, 0x481f0000)
        eden space 2176K, 100% used [0x42ca0000, 0x42ec0000, 0x42ec0000)
        from space 256K, 0% used [0x42ec0000, 0x42ec0000, 0x42f00000)
        to space 256K, 0% used [0x42f00000, 0x42f00000, 0x42f40000)
       tenured generation total 5504K, used 0K [0x481f0000, 0x48750000, 0x52ca0000)
         the space 5504K, 0% used [0x481f0000, 0x481f0000, 0x481f0200, 0x48750000)
       compacting perm gen total 12288K, used 2356K [0x52ca0000, 0x538a0000, 0x56ca0000)
         the space 12288K, 19% used [0x52ca0000, 0x52eed370, 0x52eed400, 0x538a0000)
      No shared spaces configured.
      Event: 0.205 GC heap after
      Heap after GC invocations=1 (full 0):
       def new generation total 2432K, used 256K [0x42ca0000, 0x42f40000, 0x481f0000)
        eden space 2176K, 0% used [0x42ca0000, 0x42ca0000, 0x42ec0000)
        from space 256K, 100% used [0x42f00000, 0x42f40000, 0x42f40000)
        to space 256K, 0% used [0x42ec0000, 0x42ec0000, 0x42f00000)
       tenured generation total 5504K, used 160K [0x481f0000, 0x48750000, 0x52ca0000)
         the space 5504K, 2% used [0x481f0000, 0x48218288, 0x48218400, 0x48750000)
       compacting perm gen total 12288K, used 2356K [0x52ca0000, 0x538a0000, 0x56ca0000)
         the space 12288K, 19% used [0x52ca0000, 0x52eed370, 0x52eed400, 0x538a0000)
      No shared spaces configured.
      }
      Event: 0.298 GC heap before
      {Heap before GC invocations=1 (full 0):
       def new generation total 2432K, used 2403K [0x42ca0000, 0x42f40000, 0x481f0000)
        eden space 2176K, 98% used [0x42ca0000, 0x42eb8f90, 0x42ec0000)
        from space 256K, 100% used [0x42f00000, 0x42f40000, 0x42f40000)
        to space 256K, 0% used [0x42ec0000, 0x42ec0000, 0x42f00000)
       tenured generation total 5504K, used 160K [0x481f0000, 0x48750000, 0x52ca0000)
         the space 5504K, 2% used [0x481f0000, 0x48218288, 0x48218400, 0x48750000)
       compacting perm gen total 12288K, used 2894K [0x52ca0000, 0x538a0000, 0x56ca0000)
         the space 12288K, 23% used [0x52ca0000, 0x52f73910, 0x52f73a00, 0x538a0000)
      No shared spaces configured.
      Event: 0.303 GC heap after
      Heap after GC invocations=2 (full 0):
       def new generation total 2432K, used 255K [0x42ca0000, 0x42f40000, 0x481f0000)
        eden space 2176K, 0% used [0x42ca0000, 0x42ca0000, 0x42ec0000)
        from space 256K, 99% used [0x42ec0000, 0x42efffe0, 0x42f00000)
        to space 256K, 0% used [0x42f00000, 0x42f00000, 0x42f40000)
       tenured generation total 5504K, used 667K [0x481f0000, 0x48750000, 0x52ca0000)
         the space 5504K, 12% used [0x481f0000, 0x48296e00, 0x48296e00, 0x48750000)
       compacting perm gen total 12288K, used 2894K [0x52ca0000, 0x538a0000, 0x56ca0000)
         the space 12288K, 23% used [0x52ca0000, 0x52f73910, 0x52f73a00, 0x538a0000)
      No shared spaces configured.
      }

      Deoptimization events (0 events):
      No events

      Internal exceptions (10 events):
      Event: 0.356 Thread 0x0995e000 Threw 0x42dc9ea0 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.356 Thread 0x0995e000 Threw 0x42dcb4e0 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.357 Thread 0x0995e000 Threw 0x42dcd3e8 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.357 Thread 0x0995e000 Threw 0x42dcf300 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.359 Thread 0x0995e000 Threw 0x42dd6dd8 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.360 Thread 0x0995e000 Threw 0x42e099d0 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.361 Thread 0x0995e000 Threw 0x42e0bfe0 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.361 Thread 0x0995e000 Threw 0x42e0e2a8 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.365 Thread 0x0995e000 Threw 0x42e11690 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166
      Event: 0.366 Thread 0x0995e000 Threw 0x42e194c8 at /HUDSON/workspace/jdk7u13-2-build-linux-i586-product/jdk7u13/hotspot/src/share/vm/prims/jvm.cpp:1166

      Events (10 events):
      Event: 0.361 loading class 0x09a8b490
      Event: 0.361 loading class 0x09a8b490 done
      Event: 0.361 loading class 0x09a90778
      Event: 0.361 loading class 0x09a90778 done
      Event: 0.364 loading class 0x09a21600
      Event: 0.364 loading class 0x09a21600 done
      Event: 0.365 loading class 0x09a92568
      Event: 0.365 loading class 0x09a92568 done
      Event: 0.365 loading class 0x09a84aa8
      Event: 0.365 loading class 0x09a84aa8 done


      Dynamic libraries:
      08048000-08049000 r-xp 00000000 08:06 13507 /opt/jdk1.7.0_13/bin/javah
      08049000-0804a000 rw-p 00000000 08:06 13507 /opt/jdk1.7.0_13/bin/javah
      09957000-09ad2000 rw-p 00000000 00:00 0 [heap]
      40000000-4001b000 r-xp 00000000 08:06 2368 /lib/ld-2.11.1.so
      4001b000-4001c000 r--p 0001a000 08:06 2368 /lib/ld-2.11.1.so
      4001c000-4001d000 rw-p 0001b000 08:06 2368 /lib/ld-2.11.1.so
      4001d000-4001f000 rw-p 00000000 00:00 0
      4001f000-4002a000 r-xp 00000000 08:06 15233 /opt/jdk1.7.0_13/jre/lib/i386/libverify.so
      4002a000-4002b000 rw-p 0000b000 08:06 15233 /opt/jdk1.7.0_13/jre/lib/


      ( This report has more than 16,000 characters and has been truncated. )

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                igerasim Ivan Gerasimov
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: