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

Crash in DumpTimeClassInfo::add_verification_constraint

XMLWordPrintable

    • b09
    • 20
    • b10
    • generic
    • generic
    • Verified

        This happens in pre-21-b9 builds in our startup perf tests, this runs on linux-x64.

        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # SIGSEGV (0xb) at pc=0x00007f677259f39e, pid=736196, tid=736217
        #
        # JRE version: Java(TM) SE Runtime Environment (21.0+9) (build 21-ea+9-LTS-639)
        # Java VM: Java HotSpot(TM) 64-Bit Server VM (21-ea+9-LTS-639, mixed mode, emulated-client, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0x70e39e] DumpTimeClassInfo::add_verification_constraint(InstanceKlass*, Symbol*, Symbol*, bool, bool, bool)+0x2e
        #
        # No core dump will be written. 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:
        # https://bugreport.java.com/bugreport/crash.jsp
        #

        --------------- S U M M A R Y ------------

        Command Line: -XX:-UsePerfData -XX:CICompilerCount=2 -XX:TieredStopAtLevel=1 -XX:ArchiveClassesAtExit=App.jsa netty-startup-1.24-SNAPSHOT.jar

        Host: AMD EPYC 7J13 64-Core Processor, 6 cores, 9G, Oracle Linux Server release 8.7
        Time: Mon Feb 6 15:03:39 2023 UTC elapsed time: 1.047766 seconds (0d 0h 0m 1s)

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

        Current thread (0x00007f676c5df750): JavaThread "nioEventLoopGroup-2-1" [_thread_in_vm, id=736217, stack(0x00007f6746808000,0x00007f6746909000)]

        Stack: [0x00007f6746808000,0x00007f6746909000], sp=0x00007f67469025f0, free space=1001k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x70e39e] DumpTimeClassInfo::add_verification_constraint(InstanceKlass*, Symbol*, Symbol*, bool, bool, bool)+0x2e
        V [libjvm.so+0xe356ed] SystemDictionaryShared::add_verification_constraint(InstanceKlass*, Symbol*, Symbol*, bool, bool, bool)+0x7d
        V [libjvm.so+0xed182b] VerificationType::is_reference_assignable_from(VerificationType const&, ClassVerifier*, bool, JavaThread*) const+0x16b
        V [libjvm.so+0xede191] ClassVerifier::verify_exception_handler_table(unsigned int, char*, int&, int&, JavaThread*)+0x351
        V [libjvm.so+0xee0472] ClassVerifier::verify_method(methodHandle const&, JavaThread*)+0x1d2
        V [libjvm.so+0xee7cfa] ClassVerifier::verify_class(JavaThread*)+0xea
        V [libjvm.so+0xee812a] Verifier::verify(InstanceKlass*, bool, JavaThread*)+0x32a
        V [libjvm.so+0x896e52] InstanceKlass::link_class_impl(JavaThread*)+0x432
        V [libjvm.so+0x9a69c4] get_class_declared_methods_helper(JNIEnv_*, _jclass*, unsigned char, bool, Klass*, JavaThread*) [clone .constprop.0]+0xd4
        V [libjvm.so+0x9a6ed2] JVM_GetClassDeclaredConstructors+0x92
        j java.lang.Class.getDeclaredConstructors0(Z)[Ljava/lang/reflect/Constructor;+0 java.base@21-ea
        j java.lang.Class.privateGetDeclaredConstructors(Z)[Ljava/lang/reflect/Constructor;+52 java.base@21-ea
        j java.lang.Class.getConstructor0([Ljava/lang/Class;I)Ljava/lang/reflect/Constructor;+14 java.base@21-ea
        j java.lang.Class.getConstructor([Ljava/lang/Class;)Ljava/lang/reflect/Constructor;+24 java.base@21-ea
        j java.lang.reflect.Proxy$ProxyBuilder.build()Ljava/lang/reflect/Constructor;+16 java.base@21-ea
        j java.lang.reflect.Proxy.lambda$getProxyConstructor$0(Ljava/lang/ClassLoader;Ljdk/internal/loader/AbstractClassLoaderValue$Sub;)Ljava/lang/reflect/Constructor;+15 java.base@21-ea
        j java.lang.reflect.Proxy$$Lambda$76+0x0000000801076708.apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;+8 java.base@21-ea
        j jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get()Ljava/lang/Object;+75 java.base@21-ea
        j jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(Ljava/lang/ClassLoader;Ljava/util/function/BiFunction;)Ljava/lang/Object;+63 java.base@21-ea
        j java.lang.reflect.Proxy.getProxyConstructor(Ljava/lang/Class;Ljava/lang/ClassLoader;[Ljava/lang/Class;)Ljava/lang/reflect/Constructor;+40 java.base@21-ea
        j java.lang.reflect.Proxy.newProxyInstance(Ljava/lang/ClassLoader;[Ljava/lang/Class;Ljava/lang/reflect/InvocationHandler;)Ljava/lang/Object;+22 java.base@21-ea
        j sun.reflect.annotation.AnnotationParser$1.run()Ljava/lang/annotation/Annotation;+33 java.base@21-ea
        J 1269 c1 sun.reflect.annotation.AnnotationParser.parseAnnotation2(Ljava/nio/ByteBuffer;Ljdk/internal/reflect/ConstantPool;Ljava/lang/Class;Z[Ljava/lang/Class;)Ljava/lang/annotation/Annotation; java.base@21-ea (275 bytes) @ 0x00007f67656b24ac [0x00007f67656b1ea0+0x000000000000060c]

              iklam Ioi Lam
              ecaspole Eric Caspole
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: