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

[lworld] SystemDictionary::resolve_instance_class_or_null fails with "invalid class name: Ljava/lang/String;"

    XMLWordPrintable

Details

    Description

      vmTestbase/vm/mlvm/hiddenloader/stress/byteMutation/Test.java fails with "-XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-UseVtableBasedCHA":

      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S43614/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/8e6d4295-ec8a-4556-beb2-fd78f6fd3e24/runs/3129bbfa-1370-43ff-9c79-1ad4b0d7a44f/workspace/open/src/hotspot/share/classfile/systemDictionary.cpp:692), pid=24562, tid=24359
      # assert(name != __null && !Signature::is_array(name) && !Signature::has_envelope(name)) failed: invalid class name: Ljava/lang/String;
      #
      # JRE version: Java(TM) SE Runtime Environment (21.0) (fastdebug build 21-lworld4ea-LTS-2023-04-19-1238278.tobias.hartmann.valhalla2)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-lworld4ea-LTS-2023-04-19-1238278.tobias.hartmann.valhalla2, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
      # Core dump will be written. Default location: core.24562
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp

      Current thread (0x000000014bdefe10): JavaThread "Thread-201426" [_thread_in_vm, id=24359, stack(0x000000016fb0c000,0x000000016fd0f000)]

      Stack: [0x000000016fb0c000,0x000000016fd0f000], sp=0x000000016fd0d910, free space=2054k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x115d3f8] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x4bc (systemDictionary.cpp:692)
      V [libjvm.dylib+0x115dccc] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, char*)+0x40
      V [libjvm.dylib+0x59e6a8] report_vm_error(char const*, int, char const*, char const*, ...)+0x80
      V [libjvm.dylib+0x1066974] SystemDictionary::resolve_instance_class_or_null(Symbol*, Handle, Handle, JavaThread*)+0xc0
      V [libjvm.dylib+0x10674b4] SystemDictionary::resolve_super_or_fail(Symbol*, Symbol*, Handle, Handle, bool, JavaThread*)+0x364
      V [libjvm.dylib+0x4a7314] ClassFileParser::post_process_parsed_stream(ClassFileStream const*, ConstantPool*, JavaThread*)+0x324
      V [libjvm.dylib+0x4a6528] ClassFileParser::ClassFileParser(ClassFileStream*, Symbol*, ClassLoaderData*, ClassLoadInfo const*, ClassFileParser::Publicity, JavaThread*)+0x338
      V [libjvm.dylib+0xbed5ec] KlassFactory::create_from_stream(ClassFileStream*, Symbol*, ClassLoaderData*, ClassLoadInfo const&, JavaThread*)+0xa4
      V [libjvm.dylib+0x10688ec] SystemDictionary::resolve_class_from_stream(ClassFileStream*, Symbol*, Handle, ClassLoadInfo const&, JavaThread*)+0x12c
      V [libjvm.dylib+0xa2b518] jvm_define_class_common(char const*, _jobject*, signed char const*, int, _jobject*, char const*, JavaThread*)+0x38c
      V [libjvm.dylib+0xa2c1d0] JVM_DefineClassWithSource+0xb4
      C [libjava.dylib+0x2fc4] Java_java_lang_ClassLoader_defineClass1+0x24c
      J 593 java.lang.ClassLoader.defineClass1(Ljava/lang/ClassLoader;Ljava/lang/String;[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class; java.base@21-lworld4ea (0 bytes) @ 0x000000011566fdc4 [0x000000011566fcc0+0x0000000000000104]
      v ~RuntimeStub::_new_instance_Java 0x0000000115227f94
      J 916 c2 vm.mlvm.hiddenloader.share.StressClassLoadingTest$1.run()V (71 bytes) @ 0x00000001156e6b10 [0x00000001156e6980+0x0000000000000190]
      v ~StubRoutines::call_stub 0x000000011509c17c
      V [libjvm.dylib+0x8ed080] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x590
      V [libjvm.dylib+0x8ebd84] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x20c
      V [libjvm.dylib+0x8ebf34] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x64
      V [libjvm.dylib+0xa45e70] thread_entry(JavaThread*, JavaThread*)+0x16c
      V [libjvm.dylib+0x919618] JavaThread::thread_main_inner()+0x20c
      V [libjvm.dylib+0x10a70bc] Thread::call_run()+0x220
      V [libjvm.dylib+0xe47efc] thread_native_entry(Thread*)+0x160
      C [libsystem_pthread.dylib+0x726c] _pthread_start+0x94
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      J 593 java.lang.ClassLoader.defineClass1(Ljava/lang/ClassLoader;Ljava/lang/String;[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class; java.base@21-lworld4ea (0 bytes) @ 0x000000011566fdc4 [0x000000011566fcc0+0x0000000000000104]
      J 1131 c2 vm.mlvm.share.CustomClassLoaders$1.loadClass(Ljava/lang/String;Z)Ljava/lang/Class; (67 bytes) @ 0x000000011570ead4 [0x000000011570e200+0x00000000000008d4]
      J 916 c2 vm.mlvm.hiddenloader.share.StressClassLoadingTest$1.run()V (71 bytes) @ 0x00000001156e6b10 [0x00000001156e6980+0x0000000000000190]
      v ~StubRoutines::call_stub 0x000000011509c17c

      Attachments

        Issue Links

          Activity

            People

              thartmann Tobias Hartmann
              thartmann Tobias Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: