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

[premain] assert(_init_thread == nullptr) failed: should be cleared before state change

XMLWordPrintable

      compiler/intrinsics/string/TestStringCompareToDifferentLength.java

      Rare assertion failure:
      # Internal Error (.../src/hotspot/share/oops/instanceKlass.cpp:4474), pid=35108, tid=23811
      # assert(_init_thread == nullptr) failed: should be cleared before state change

      Current thread (0x000000012c81a410): JavaThread "Reference Handler" daemon [_thread_in_vm, id=23811, stack(0x0000000170844000,0x0000000170a47000) (2060K)]

      Stack: [0x0000000170844000,0x0000000170a47000], sp=0x0000000170a45b70, free space=2054k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x1198628] VMError::report_and_die(int, char const*, char const*, char*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x564 (instanceKlass.cpp:4474)
      V [libjvm.dylib+0x1198e48] VMError::report_and_die(Thread*, unsigned int, unsigned char*, void*, void*)+0x0
      V [libjvm.dylib+0x58d4b0] print_error_for_unit_test(char const*, char const*, char*)+0x0
      V [libjvm.dylib+0x86d768] InstanceKlass::initialize_impl(JavaThread*)+0x1184
      V [libjvm.dylib+0x86c574] InstanceKlass::initialize(JavaThread*)+0x30
      V [libjvm.dylib+0x89d60c] InterpreterRuntime::_new(JavaThread*, ConstantPool*, int)+0x2a4
      j java.util.concurrent.locks.ReentrantLock$Sync.newCondition()Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject;+0 java.base@22-leydenpremain
      j java.util.concurrent.locks.ReentrantLock.newCondition()Ljava/util/concurrent/locks/Condition;+4 java.base@22-leydenpremain
      j java.lang.ref.ReferenceQueue.<init>()V+25 java.base@22-leydenpremain
      j jdk.internal.ref.Cleaner.<clinit>()V+4 java.base@22-leydenpremain
      v ~StubRoutines::call_stub 0x000000011378c190
      V [libjvm.dylib+0x8c2b78] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x420
      V [libjvm.dylib+0x8702b4] InstanceKlass::call_class_initializer(JavaThread*)+0x350
      V [libjvm.dylib+0x86d194] InstanceKlass::initialize_impl(JavaThread*)+0xbb0
      V [libjvm.dylib+0x86c574] InstanceKlass::initialize(JavaThread*)+0x30
      V [libjvm.dylib+0x112edcc] Unsafe_EnsureClassInitialized0(JNIEnv_*, _jobject*, _jobject*)+0x274
      j jdk.internal.misc.Unsafe.ensureClassInitialized0(Ljava/lang/Class;)V+0 java.base@22-leydenpremain
      j jdk.internal.misc.Unsafe.ensureClassInitialized(Ljava/lang/Class;)V+14 java.base@22-leydenpremain
      j java.lang.ref.Reference$ReferenceHandler.run()V+5 java.base@22-leydenpremain
      v ~StubRoutines::call_stub 0x000000011378c190
      V [libjvm.dylib+0x8c2b78] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x420
      V [libjvm.dylib+0x8c1888] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x210
      V [libjvm.dylib+0x8c1a68] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x6c
      V [libjvm.dylib+0xa4e884] thread_entry(JavaThread*, JavaThread*)+0x12c
      V [libjvm.dylib+0x8f8a28] JavaThread::thread_main_inner()+0x1dc
      V [libjvm.dylib+0x10cfaec] Thread::call_run()+0xf4
      V [libjvm.dylib+0xe8c684] thread_native_entry(Thread*)+0x130
      C [libsystem_pthread.dylib+0x706c] _pthread_start+0x94

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j java.util.concurrent.locks.ReentrantLock$Sync.newCondition()Ljava/util/concurrent/locks/AbstractQueuedSynchronizer$ConditionObject;+0 java.base@22-leydenpremain
      j java.util.concurrent.locks.ReentrantLock.newCondition()Ljava/util/concurrent/locks/Condition;+4 java.base@22-leydenpremain
      j java.lang.ref.ReferenceQueue.<init>()V+25 java.base@22-leydenpremain
      j jdk.internal.ref.Cleaner.<clinit>()V+4 java.base@22-leydenpremain
      v ~StubRoutines::call_stub 0x000000011378c190
      j jdk.internal.misc.Unsafe.ensureClassInitialized0(Ljava/lang/Class;)V+0 java.base@22-leydenpremain
      j jdk.internal.misc.Unsafe.ensureClassInitialized(Ljava/lang/Class;)V+14 java.base@22-leydenpremain
      j java.lang.ref.Reference$ReferenceHandler.run()V+5 java.base@22-leydenpremain
      v ~StubRoutines::call_stub 0x000000011378c190

            Unassigned Unassigned
            vlivanov Vladimir Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: