Test runtime/handshake/HandshakeSuspendExitTest.java crashes with assert(!single_suspend || (!is_virtual && java_thread->is_carrier_thread_suspended()) || (is_virtual && JvmtiVTSuspender::is_vthread_suspended(thread_h()))) failed: sanity check #
log:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94929/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/178a1d74-43ea-49b0-ad4a-c7294e4400dd/runs/013868ce-dbec-4a89-8cff-1bdc9008eb68/workspace/open/src/hotspot/share/prims/jvmtiEnvBase.cpp:1598), pid=30122, tid=30244
# assert(!single_suspend || (!is_virtual && java_thread->is_carrier_thread_suspended()) || (is_virtual && JvmtiVTSuspender::is_vthread_suspended(thread_h()))) failed: sanity check
#
# JRE version: Java(TM) SE Runtime Environment (20.0+17) (fastdebug build 20-ea+17-1140)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 20-ea+17-1140, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x1331134] JvmtiEnvBase::suspend_thread(oop, JavaThread*, bool, int*)+0x224
#
# Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/scratch/1/core.30122)
#
# 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: -Dtest.vm.opts=-XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=4.16667 -J-Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/linux-x64-debug.jdk/jdk-20/fastdebug -Dcompile.jdk=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/linux-x64-debug.jdk/jdk-20/fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/linux-x64-debug.test/hotspot/jtreg/native -Dtest.root=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg -Dtest.name=runtime/handshake/HandshakeSuspendExitTest.java -Dtest.file=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg/runtime/handshake/HandshakeSuspendExitTest.java -Dtest.src=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg/runtime/handshake -Dtest.src.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg/runtime/handshake:/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg/testlibrary:/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/lib -Dtest.classes=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/runtime/handshake/HandshakeSuspendExitTest.d -Dtest.class.path=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/runtime/handshake/HandshakeSuspendExitTest.d:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/testlibrary:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/test/lib -Dtest.class.path.prefix=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/runtime/handshake/HandshakeSuspendExitTest.d:/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/src.full/open/test/hotspot/jtreg/runtime/handshake:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/testlibrary:/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/classes/5/test/lib -XX:MaxRAMPercentage=4.16667 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/tmp -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+17-1140/linux-x64-debug.test/hotspot/jtreg/native -XX:+UnlockDiagnosticVMOptions -XX:GuaranteedSafepointInterval=1 -XX:+HandshakeALot com.sun.javatest.regtest.agent.MainWrapper /opt/mach5/mesos/work_dir/slaves/0c72054a-24ab-4dbb-944f-97f9341a1b96-S94833/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d7f9d1db-61a5-41c8-8eda-bb2b0f09c610/runs/29b3296f-f4e4-4faa-902c-e3a73282a4a6/testoutput/test-support/jtreg_open_test_hotspot_jtreg_tier1_runtime/runtime/handshake/HandshakeSuspendExitTest.d/main.0.jta
Host: AMD EPYC 7J13 64-Core Processor, 12 cores, 23G, Oracle Linux Server release 7.9
Time: Fri Sep 23 18:09:49 2022 UTC elapsed time: 0.498447 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007ff71c034ee0): JavaThread "Thread-11" [_thread_in_vm, id=30244, stack(0x00007ff75d8f9000,0x00007ff75d9fa000)] _threads_hazard_ptr=0x00007ff6c8000af0, _nested_threads_hazard_ptr_cnt=0
Stack: [0x00007ff75d8f9000,0x00007ff75d9fa000], sp=0x00007ff75d9f8710, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x1331134] JvmtiEnvBase::suspend_thread(oop, JavaThread*, bool, int*)+0x224 (jvmtiEnvBase.cpp:1598)
V [libjvm.so+0x13173b6] JvmtiEnv::SuspendThread(_jobject*)+0xe6 (jvmtiEnv.cpp:948)
V [libjvm.so+0x12c010c] jvmti_SuspendThread+0x16c (jvmtiEnter.cpp:534)
J 80 jvmti.JVMTIUtils.suspendThread0(Ljava/lang/Thread;)I (0 bytes) @ 0x00007ff774ab9db6 [0x00007ff774ab9cc0+0x00000000000000f6]
J 87 c2 HandshakeSuspendExitTest.suspendThread(Ljava/lang/Thread;)V (31 bytes) @ 0x00007ff774aba4e0 [0x00007ff774aba4c0+0x0000000000000020]
j HandshakeSuspendExitTest.run()V+40
j java.lang.Thread.run()V+13 java.base@20-ea
v ~StubRoutines::call_stub 0x00007ff774522d21
V [libjvm.so+0x101ad30] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x500 (javaCalls.cpp:417)
V [libjvm.so+0x101b540] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x430 (javaCalls.cpp:331)
V [libjvm.so+0x101b9b1] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x71 (javaCalls.cpp:193)
V [libjvm.so+0x119cd1b] thread_entry(JavaThread*, JavaThread*)+0x12b (jvm.cpp:2876)
V [libjvm.so+0x1051570] JavaThread::thread_main_inner()+0x230 (javaThread.cpp:700)
V [libjvm.so+0x1a42560] Thread::call_run()+0x100 (thread.cpp:224)
V [libjvm.so+0x16dfbf3] thread_native_entry(Thread*)+0x103 (os_linux.cpp:710)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 80 jvmti.JVMTIUtils.suspendThread0(Ljava/lang/Thread;)I (0 bytes) @ 0x00007ff774ab9d45 [0x00007ff774ab9cc0+0x0000000000000085]
J 87 c2 HandshakeSuspendExitTest.suspendThread(Ljava/lang/Thread;)V (31 bytes) @ 0x00007ff774aba4e0 [0x00007ff774aba4c0+0x0000000000000020]
j HandshakeSuspendExitTest.run()V+40
j java.lang.Thread.run()V+13 java.base@20-ea
v ~StubRoutines::call_stub 0x00007ff774522d21
Registers:
RAX=0x00007ff78eec8000, RBX=0x00007ff71c02a160, RCX=0x00007ff78dc394b5, RDX=0x00007ff78dda7060
RSP=0x00007ff75d9f8710, RBP=0x00007ff75d9f87d0, RSI=0x000000000000063e, RDI=0x00007ff78dda6a58
R8 =0x0000000000000006, R9 =0x0000000000000c22, R10=0x000000001dd8587c, R11=0x001042dd7992e837
R12=0x00007ff75d9f8758, R13=0x0000000000000000, R14=0x00007ff75d9f8738, R15=0x00007ff75d9f8760
RIP=0x00007ff78d313134, EFLAGS=0x0000000000010246, CSGSFS=0x002b000000000033, ERR=0x0000000000000006
TRAPNO=0x000000000000000e