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

Parallel class loading test anonymous-simple gets SIGSEGV in Metaspace::contains

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b02

      Backports

        Description

        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0xfffffd625bef230c, pid=14567, tid=92
        #
        # JRE version: Java(TM) SE Runtime Environment (8.0-b117) (build 1.8.0-ea-fastdebug-b117)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.0-b61-internal-201311222208.amurillo.hs25-b61-gc-sync-fastdebug mixed mode solaris-amd64 compressed oops)

        Stack: [0xfffffd7ffa829000,0xfffffd7ffa929000], sp=0xfffffd7ffa924800, free space=1006k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x20c230c] bool Metaspace::contains(const void*)+0x2c;; __1cJMetaspaceIcontains6Fpkv_b_+0x2c
        V [libjvm.so+0x1057c00] Klass*Dependencies::DepStream::context_type()+0x208;; __1cMDependenciesJDepStreamMcontext_type6M_pnFKlass__+0x208
        V [libjvm.so+0x1062085] Klass*Dependencies::DepStream::check_klass_dependency(KlassDepChange*)+0x20d;; __1cMDependenciesJDepStreamWcheck_klass_dependency6MpnOKlassDepChange__pnFKlass__+0x20d
        V [libjvm.so+0x21a19f1] bool nmethod::check_all_dependencies()+0x91;; __1cHnmethodWcheck_all_dependencies6M_b_+0x91
        V [libjvm.so+0xe23829] int CodeCache::mark_for_deoptimization(DepChange&)+0x49d;; __1cJCodeCacheXmark_for_deoptimization6FrnJDepChange__i_+0x49d
        V [libjvm.so+0x27e409c] void Universe::flush_dependents_on(instanceKlassHandle)+0x80;; __1cIUniverseTflush_dependents_on6FnTinstanceKlassHandle__v_+0x80
        V [libjvm.so+0x26c179a] void SystemDictionary::add_to_hierarchy(instanceKlassHandle,Thread*)+0x5a;; __1cQSystemDictionaryQadd_to_hierarchy6FnTinstanceKlassHandle_pnGThread__v_+0x5a
        V [libjvm.so+0x26bfc3e] void SystemDictionary::define_instance_class(instanceKlassHandle,Thread*)+0xaee;; __1cQSystemDictionaryVdefine_instance_class6FnTinstanceKlassHandle_pnGThread__v_+0xaee
        V [libjvm.so+0x26c089f] instanceKlassHandle SystemDictionary::find_or_define_instance_class(Symbol*,Handle,instanceKlassHandle,Thread*)+0x7e3;; __1cQSystemDictionarybDfind_or_define_instance_class6FpnGSymbol_nGHandle_nTinstanceKlassHandle_pnGThread__4_+0x7e3
        V [libjvm.so+0x26bc31d] Klass*SystemDictionary::resolve_from_stream(Symbol*,Handle,Handle,ClassFileStream*,bool,Thread*)+0x73d;; __1cQSystemDictionaryTresolve_from_stream6FpnGSymbol_nGHandle_3pnPClassFileStream_bpnGThread__pnFKlass__+0x73d
        V [libjvm.so+0x1a3c187] _jclass*jvm_define_class_common(JNIEnv_*,const char*,_jobject*,const signed char*,int,_jobject*,const char*,unsigned char,Thread*)+0x4c3;; __1cXjvm_define_class_common6FpnHJNIEnv__pkcpnI_jobject_pkWi53CpnGThread__pnH_jclass__+0x4c3
        V [libjvm.so+0x1a3d677] JVM_DefineClassWithSource+0x5e3;; JVM_DefineClassWithSource+0x5e3
        C [libjava.so+0x11cfe] Java_java_lang_ClassLoader_defineClass1+0x12a;; Java_java_lang_ClassLoader_defineClass1+0x12a
        J 227 java.lang.ClassLoader.defineClass1(Ljava/lang/String;[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class; (0 bytes) @ 0xfffffd7feb4d0ad9 [0xfffffd7feb4d0920+0x1b9]
        J 259 C1 java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class; (43 bytes) @ 0xfffffd7feb5029e4 [0xfffffd7feb5022c0+0x724]
        J 234 C1 java.net.URLClassLoader.defineClass(Ljava/lang/String;Lsun/misc/Resource;)Ljava/lang/Class; (224 bytes) @ 0xfffffd7feb4e140c [0xfffffd7feb4df440+0x1fcc]
        J 149 C1 java.net.URLClassLoader$1.run()Ljava/lang/Class; (73 bytes) @ 0xfffffd7feb48e4ac [0xfffffd7feb48df00+0x5ac]
        J 115 C1 java.net.URLClassLoader$1.run()Ljava/lang/Object; (5 bytes) @ 0xfffffd7feb460294 [0xfffffd7feb460200+0x94]
        v ~StubRoutines::call_stub
        V [libjvm.so+0x16ddb72] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x1622;; __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x1622
        V [libjvm.so+0x16dc50f] void JavaCalls::call(JavaValue*,methodHandle,JavaCallArguments*,Thread*)+0x3f;; __1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x3f
        V [libjvm.so+0x1a501e4] JVM_DoPrivileged+0x167c;; JVM_DoPrivileged+0x167c
        C [libjava.so+0x10d97] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0xf;; Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0xf
        J 114 java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object; (0 bytes) @ 0xfffffd7feb45fee3 [0xfffffd7feb45fd60+0x183]
        J 113 C1 java.net.URLClassLoader.findClass(Ljava/lang/String;)Ljava/lang/Class; (29 bytes) @ 0xfffffd7feb45f33c [0xfffffd7feb45f000+0x33c]
        j java.lang.ClassLoader.loadClass(Ljava/lang/String;Z)Ljava/lang/Class;+70
        J 171 C1 java.lang.ClassLoader.loadClass(Ljava/lang/String;)Ljava/lang/Class; (7 bytes) @ 0xfffffd7feb4a0d14 [0xfffffd7feb4a0c00+0x114]
        v ~StubRoutines::call_stub
        V [libjvm.so+0x16ddb72] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x1622;; __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x1622
        V [libjvm.so+0x16dc50f] void JavaCalls::call(JavaValue*,methodHandle,JavaCallArguments*,Thread*)+0x3f;; __1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x3f
        V [libjvm.so+0x16d98bc] void JavaCalls::call_virtual(JavaValue*,KlassHandle,Symbol*,Symbol*,JavaCallArguments*,Thread*)+0x77c;; __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_pnGSymbol_5pnRJavaCallArguments_pnGThread__v_+0x77c
        V [libjvm.so+0x16da27d] void JavaCalls::call_virtual(JavaValue*,Handle,KlassHandle,Symbol*,Symbol*,Handle,Thread*)+0x149;; __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_pnGSymbol_63pnGThread__v_+0x149
        V [libjvm.so+0x26be651] instanceKlassHandle SystemDictionary::load_instance_class(Symbol*,Handle,Thread*)+0x36d;; __1cQSystemDictionaryTload_instance_class6FpnGSymbol_nGHandle_pnGThread__nTinstanceKlassHandle__+0x36d
        V [libjvm.so+0x26b9980] Klass*SystemDictionary::resolve_instance_class_or_null(Symbol*,Handle,Handle,Thread*)+0xc8c;; __1cQSystemDictionarybEresolve_instance_class_or_null6FpnGSymbol_nGHandle_3pnGThread__pnFKlass__+0xc8c
        V [libjvm.so+0x26b4065] Klass*SystemDictionary::resolve_or_fail(Symbol*,Handle,Handle,bool,Thread*)+0x28d;; __1cQSystemDictionaryPresolve_or_fail6FpnGSymbol_nGHandle_3bpnGThread__pnFKlass__+0x28d
        V [libjvm.so+0x1ae8489] _jclass*find_class_from_class_loader(JNIEnv_*,Symbol*,unsigned char,Handle,Handle,unsigned char,Thread*)+0x39;; __1cbCfind_class_from_class_loader6FpnHJNIEnv__pnGSymbol_CnGHandle_4CpnGThread__pnH_jclass__+0x39
        V [libjvm.so+0x1a3a1b9] JVM_FindClassFromClassLoader+0x6ad;; JVM_FindClassFromClassLoader+0x6ad
        C [libjava.so+0x11975] Java_java_lang_Class_forName0+0xd1;; Java_java_lang_Class_forName0+0xd1
        j java.lang.Class.forName0(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+0
        j java.lang.Class.forName(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;+41
        j runtime.ParallelClassLoading.shared.ProvokeType.provoke(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V+50
        j runtime.ParallelClassLoading.shared.ProvokeType.provoke(Ljava/lang/ClassLoader;Ljava/lang/String;)V+8
        j runtime.ParallelClassLoading.shared.ClassLoadingThread.run()V+83
        v ~StubRoutines::call_stub
        V [libjvm.so+0x16ddb72] void JavaCalls::call_helper(JavaValue*,methodHandle*,JavaCallArguments*,Thread*)+0x1622;; __1cJJavaCallsLcall_helper6FpnJJavaValue_pnMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x1622
        V [libjvm.so+0x16dc50f] void JavaCalls::call(JavaValue*,methodHandle,JavaCallArguments*,Thread*)+0x3f;; __1cJJavaCallsEcall6FpnJJavaValue_nMmethodHandle_pnRJavaCallArguments_pnGThread__v_+0x3f
        V [libjvm.so+0x16d98bc] void JavaCalls::call_virtual(JavaValue*,KlassHandle,Symbol*,Symbol*,JavaCallArguments*,Thread*)+0x77c;; __1cJJavaCallsMcall_virtual6FpnJJavaValue_nLKlassHandle_pnGSymbol_5pnRJavaCallArguments_pnGThread__v_+0x77c
        V [libjvm.so+0x16da10d] void JavaCalls::call_virtual(JavaValue*,Handle,KlassHandle,Symbol*,Symbol*,Thread*)+0xed;; __1cJJavaCallsMcall_virtual6FpnJJavaValue_nGHandle_nLKlassHandle_pnGSymbol_6pnGThread__v_+0xed
        V [libjvm.so+0x1aafabb] void thread_entry(JavaThread*,Thread*)+0xc7;; __1cMthread_entry6FpnKJavaThread_pnGThread__v_+0xc7
        V [libjvm.so+0x274a291] void JavaThread::thread_main_inner()+0x521;; __1cKJavaThreadRthread_main_inner6M_v_+0x521
        V [libjvm.so+0x27499a7] void JavaThread::run()+0x84f;; __1cKJavaThreadDrun6M_v_+0x84f
        V [libjvm.so+0x22b1b12] java_start+0x1ce;; java_start+0x1ce
        C [libc.so.1+0x1222ad] _thrp_setup+0xa5;; _thrp_setup+0xa5
        C [libc.so.1+0x122550] _lwp_start+0x0;; _lwp_start+0x0

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  coleenp Coleen Phillimore
                  Reporter:
                  ehelin Erik Helin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: