JDK-8275752 : Test vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine/TestDescription.java failed: assertion Invalid constant tag
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jvmti
  • Affected Version: 18
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-10-22
  • Updated: 2021-10-26
  • Resolved: 2021-10-26
Related Reports
Duplicate :  
Description
Test: vmTestbase/nsk/jvmti/RedefineClasses/StressRedefine/TestDescription.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/ff806ead-2cac-495d-9cbc-62116f99bf14-S13887/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/520caa72-f2a7-4666-bd6b-9e32213eca0f/runs/5fc010fe-3b68-4716-94d2-fce58447c9a0/workspace/open/src/hotspot/share/utilities/constantTag.hpp:118), pid=20567, tid=20574
#  assert((tag >= 0 && tag <= JVM_CONSTANT_NameAndType) || (tag >= JVM_CONSTANT_MethodHandle && tag <= JVM_CONSTANT_InvokeDynamic) || (tag >= JVM_CONSTANT_InternalMin && tag <= JVM_CONSTANT_InternalMax)) failed: Invalid constant tag
#
# JRE version: Java(TM) SE Runtime Environment (18.0+21) (fastdebug build 18-ea+21-1279)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+21-1279, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0xa48fa4]  ConstantPool::unreference_symbols()+0xf4

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

Current thread (0x00007fbe20326c90):  VMThread "VM Thread" [stack: 0x00007fbe00300000,0x00007fbe00400000] [id=20574]

Stack: [0x00007fbe00300000,0x00007fbe00400000],  sp=0x00007fbe003fe750,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0xa48fa4]  ConstantPool::unreference_symbols()+0xf4
V  [libjvm.so+0xa4ed9b]  ConstantPool::deallocate_contents(ClassLoaderData*)+0x15b
V  [libjvm.so+0x97e064]  ClassLoaderData::free_deallocate_list()+0x4b4
V  [libjvm.so+0x9863c8]  ClassLoaderDataGraph::clean_deallocate_lists(bool)+0x88
V  [libjvm.so+0x11f9cb1]  VM_RedefineClasses::doit()+0x121
V  [libjvm.so+0x197d09a]  VM_Operation::evaluate()+0x18a
V  [libjvm.so+0x19a0623]  VMThread::evaluate_operation(VM_Operation*)+0x183
V  [libjvm.so+0x19a1497]  VMThread::inner_execute(VM_Operation*)+0x3f7
V  [libjvm.so+0x19a15c5]  VMThread::loop()+0xb5
V  [libjvm.so+0x19a16ec]  VMThread::run()+0xbc
V  [libjvm.so+0x188e850]  Thread::call_run()+0x100
V  [libjvm.so+0x156e0f4]  thread_native_entry(Thread*)+0x104
Comments
This failure did not reappear so I'm assuming it was a result of JDK-8275761.
26-10-2021

Another occurrence of the same assertion failure # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (/opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13241/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/343d6b19-ae4b-46d8-b5fc-d5e080c2af96/runs/f267354d-ff58-4749-8eef-06264b3291b6/workspace/open/src/hotspot/share/utilities/constantTag.hpp:118), pid=3900312, tid=3900763 # assert((tag >= 0 && tag <= JVM_CONSTANT_NameAndType) || (tag >= JVM_CONSTANT_MethodHandle && tag <= JVM_CONSTANT_InvokeDynamic) || (tag >= JVM_CONSTANT_InternalMin && tag <= JVM_CONSTANT_InternalMax)) failed: Invalid constant tag # # JRE version: Java(TM) SE Runtime Environment (18.0+21) (fastdebug build 18-ea+21-1281) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+21-1281, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64) # Problematic frame: # V [libjvm.so+0xa1aa5c] ConstantPool::resolve_string_constants_impl(constantPoolHandle const&, JavaThread*)+0x21c --------------- T H R E A D --------------- Current thread (0x0000fffdf4fbe1e0): JavaThread "JFR Periodic Tasks" daemon [_thread_in_vm, id=3900763, stack(0x0000fffda8600000,0x0000fffda8800000)] Stack: [0x0000fffda8600000,0x0000fffda8800000], sp=0x0000fffda87fdf70, free space=2039k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0xa1aa5c] ConstantPool::resolve_string_constants_impl(constantPoolHandle const&, JavaThread*)+0x21c V [libjvm.so+0x9dd1b0] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, DirectiveSet*, JavaThread*)+0x560 V [libjvm.so+0x9dd534] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, JavaThread*)+0xa4 V [libjvm.so+0x9ae514] CompilationPolicy::event(methodHandle const&, methodHandle const&, int, int, CompLevel, CompiledMethod*, JavaThread*)+0x484 V [libjvm.so+0xe22b9c] InterpreterRuntime::frequency_counter_overflow_inner(JavaThread*, unsigned char*)+0x14c V [libjvm.so+0xe22d0c] InterpreterRuntime::frequency_counter_overflow(JavaThread*, unsigned char*)+0x1c j jdk.jfr.internal.consumer.EventLog.update()V+0 jdk.jfr@18-ea j jdk.jfr.internal.PlatformRecorder.periodicTask()V+34 jdk.jfr@18-ea J 36673 c1 jdk.jfr.internal.PlatformRecorder$$Lambda$342+0x00000008011f8830.run()V jdk.jfr@18-ea (8 bytes) @ 0x0000fffe9951d584 [0x0000fffe9951d480+0x0000000000000104] J 14672 c2 java.lang.Thread.run()V java.base@18-ea (17 bytes) @ 0x0000fffea0cf1f30 [0x0000fffea0cf1ec0+0x0000000000000070] v ~StubRoutines::call_stub V [libjvm.so+0xe30cbc] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x58c V [libjvm.so+0xe31328] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x3e8 V [libjvm.so+0xe316a4] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x70 V [libjvm.so+0xf906b8] thread_entry(JavaThread*, JavaThread*)+0x118 V [libjvm.so+0x174b724] JavaThread::thread_main_inner()+0x284 V [libjvm.so+0x1751cc8] Thread::call_run()+0xf8 V [libjvm.so+0x147e524] thread_native_entry(Thread*)+0x104 C [libpthread.so.0+0x7738] start_thread+0x198
22-10-2021