The following test failed in the JDK21 CI:
applications/kitchensink/Kitchensink.java
Here's a snippet from the log file:
[2023-05-03T10:30:41.062043281Z] Gathering output for process 3918364
[2023-05-03T10:30:47.240761361Z] Waiting for completion for process 3918364
[2023-05-03T10:30:47.241166097Z] Waiting for completion finished for process 3918364
Output and diagnostic info for process 3918364 was saved into 'pid-3918364-output.log'
[stress.process.out] #
[stress.process.out] [thread 3903106 also had an error]
[stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
[stress.process.out] #
[stress.process.out] # SIGSEGV (0xb) at pc=0x00007fc82de672d3, pid=3903050, tid=3903111
[stress.process.out] #
[stress.process.out] # JRE version: Java(TM) SE Runtime Environment (21.0+21) (fastdebug build 21-ea+21-LTS-1770)
[stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-ea+21-LTS-1770, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-amd64)
[stress.process.out] # Problematic frame:
[stress.process.out] # V [libjvm.so+0x113f2d3] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*) [clone .part.0]+0x153
[stress.process.out] #
[stress.process.out] # 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/741e9afd-8c02-45c3-b2e2-9db1450d0832-S91199/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/27ed9bc5-baae-4d11-8bf0-8d5684ac09d8/runs/68873867-0a02-4e2c-8dbb-4da2e279060e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/core.3903050)
[stress.process.out] #
[stress.process.out] Unsupported internal testing APIs have been used.
[stress.process.out]
[stress.process.out] # An error report file with more information is saved as:
[stress.process.out] # /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S91199/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/27ed9bc5-baae-4d11-8bf0-8d5684ac09d8/runs/68873867-0a02-4e2c-8dbb-4da2e279060e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid3903050.log
[stress.process.out] [thread 3917156 also had an error][thread 3917157 also had an error]
[stress.process.out] [thread 3916362 also had an error]
[stress.process.out]
[stress.process.out] #
[stress.process.out] # If you would like to submit a bug report, please visit:
[stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
[stress.process.out] #
[2023-05-03T10:31:47.243994001Z] Gathering output for process 3918833
[2023-05-03T10:31:47.250648799Z] Waiting for completion for process 3918833
[2023-05-03T10:31:47.250778935Z] Waiting for completion finished for process 3918833
Output and diagnostic info for process 3918833 was saved into 'pid-3918833-output.log'
Here's the crashing thread's stack:
--------------- T H R E A D ---------------
Current thread (0x00007fc828549430): JavaThread "JvmtiStressModule" [_thread_in_vm, id=3903111, stack(0x00007fc5f8137000,0x00007fc5f8238000) (1028K)] _threads_hazard_ptr=0x00007fc4e03b4c20, _nested_threads_hazard_ptr_cnt=0
Stack: [0x00007fc5f8137000,0x00007fc5f8238000], sp=0x00007fc5f8236400, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x113f2d3] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*) [clone .part.0]+0x153 (javaThread.hpp:1093)
V [libjvm.so+0x1140810] JvmtiEventControllerPrivate::recompute_enabled()+0x110 (jvmtiEventController.cpp:558)
V [libjvm.so+0x11432d2] JvmtiEventController::set_user_enabled(JvmtiEnvBase*, JavaThread*, oop, jvmtiEvent, bool)+0x162 (jvmtiEventController.cpp:1061)
V [libjvm.so+0x11197b8] JvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x138 (jvmtiEnv.cpp:586)
V [libjvm.so+0x10cd257] jvmti_SetEventNotificationMode+0x107 (jvmtiEnter.cpp:5321)
C [libJvmtiStressModule.so+0x3f08] enable_events+0x88 (libJvmtiStressModule.c:631)
C [libJvmtiStressModule.so+0x4d5a] Java_applications_kitchensink_process_stress_modules_JvmtiStressModule_finishIteration+0x83a (libJvmtiStressModule.c:638)
j applications.kitchensink.process.stress.modules.JvmtiStressModule.finishIteration()Lapplications/kitchensink/process/stress/modules/JvmtiStatistics;+0
j applications.kitchensink.process.stress.modules.JvmtiStressModule.execute()V+285
j applications.kitchensink.process.stress.modules.StressModule.run()V+118
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21-ea
j java.lang.Thread.run()V+19 java.base@21-ea
v ~StubRoutines::call_stub 0x00007fc817d41d1a
V [libjvm.so+0xe56782] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x462 (javaCalls.cpp:415)
V [libjvm.so+0xe56d63] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x283 (javaCalls.cpp:329)
V [libjvm.so+0xe56f71] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x71 (javaCalls.cpp:191)
V [libjvm.so+0xfa61b6] thread_entry(JavaThread*, JavaThread*)+0x96 (jvm.cpp:2919)
V [libjvm.so+0xe8899e] JavaThread::thread_main_inner()+0x17e (javaThread.cpp:717)
V [libjvm.so+0x175aff8] Thread::call_run()+0xb8 (thread.cpp:215)
V [libjvm.so+0x14599fa] thread_native_entry(Thread*)+0x11a (os_linux.cpp:740)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j applications.kitchensink.process.stress.modules.JvmtiStressModule.finishIteration()Lapplications/kitchensink/process/stress/modules/JvmtiStatistics;+0
j applications.kitchensink.process.stress.modules.JvmtiStressModule.execute()V+285
j applications.kitchensink.process.stress.modules.StressModule.run()V+118
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21-ea
j java.lang.Thread.run()V+19 java.base@21-ea
v ~StubRoutines::call_stub 0x00007fc817d41d1a
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000001000005a4
applications/kitchensink/Kitchensink.java
Here's a snippet from the log file:
[2023-05-03T10:30:41.062043281Z] Gathering output for process 3918364
[2023-05-03T10:30:47.240761361Z] Waiting for completion for process 3918364
[2023-05-03T10:30:47.241166097Z] Waiting for completion finished for process 3918364
Output and diagnostic info for process 3918364 was saved into 'pid-3918364-output.log'
[stress.process.out] #
[stress.process.out] [thread 3903106 also had an error]
[stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
[stress.process.out] #
[stress.process.out] # SIGSEGV (0xb) at pc=0x00007fc82de672d3, pid=3903050, tid=3903111
[stress.process.out] #
[stress.process.out] # JRE version: Java(TM) SE Runtime Environment (21.0+21) (fastdebug build 21-ea+21-LTS-1770)
[stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 21-ea+21-LTS-1770, mixed mode, sharing, tiered, compressed class ptrs, z gc, linux-amd64)
[stress.process.out] # Problematic frame:
[stress.process.out] # V [libjvm.so+0x113f2d3] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*) [clone .part.0]+0x153
[stress.process.out] #
[stress.process.out] # 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/741e9afd-8c02-45c3-b2e2-9db1450d0832-S91199/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/27ed9bc5-baae-4d11-8bf0-8d5684ac09d8/runs/68873867-0a02-4e2c-8dbb-4da2e279060e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/core.3903050)
[stress.process.out] #
[stress.process.out] Unsupported internal testing APIs have been used.
[stress.process.out]
[stress.process.out] # An error report file with more information is saved as:
[stress.process.out] # /opt/mach5/mesos/work_dir/slaves/741e9afd-8c02-45c3-b2e2-9db1450d0832-S91199/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/27ed9bc5-baae-4d11-8bf0-8d5684ac09d8/runs/68873867-0a02-4e2c-8dbb-4da2e279060e/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid3903050.log
[stress.process.out] [thread 3917156 also had an error][thread 3917157 also had an error]
[stress.process.out] [thread 3916362 also had an error]
[stress.process.out]
[stress.process.out] #
[stress.process.out] # If you would like to submit a bug report, please visit:
[stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
[stress.process.out] #
[2023-05-03T10:31:47.243994001Z] Gathering output for process 3918833
[2023-05-03T10:31:47.250648799Z] Waiting for completion for process 3918833
[2023-05-03T10:31:47.250778935Z] Waiting for completion finished for process 3918833
Output and diagnostic info for process 3918833 was saved into 'pid-3918833-output.log'
Here's the crashing thread's stack:
--------------- T H R E A D ---------------
Current thread (0x00007fc828549430): JavaThread "JvmtiStressModule" [_thread_in_vm, id=3903111, stack(0x00007fc5f8137000,0x00007fc5f8238000) (1028K)] _threads_hazard_ptr=0x00007fc4e03b4c20, _nested_threads_hazard_ptr_cnt=0
Stack: [0x00007fc5f8137000,0x00007fc5f8238000], sp=0x00007fc5f8236400, free space=1021k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x113f2d3] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*) [clone .part.0]+0x153 (javaThread.hpp:1093)
V [libjvm.so+0x1140810] JvmtiEventControllerPrivate::recompute_enabled()+0x110 (jvmtiEventController.cpp:558)
V [libjvm.so+0x11432d2] JvmtiEventController::set_user_enabled(JvmtiEnvBase*, JavaThread*, oop, jvmtiEvent, bool)+0x162 (jvmtiEventController.cpp:1061)
V [libjvm.so+0x11197b8] JvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x138 (jvmtiEnv.cpp:586)
V [libjvm.so+0x10cd257] jvmti_SetEventNotificationMode+0x107 (jvmtiEnter.cpp:5321)
C [libJvmtiStressModule.so+0x3f08] enable_events+0x88 (libJvmtiStressModule.c:631)
C [libJvmtiStressModule.so+0x4d5a] Java_applications_kitchensink_process_stress_modules_JvmtiStressModule_finishIteration+0x83a (libJvmtiStressModule.c:638)
j applications.kitchensink.process.stress.modules.JvmtiStressModule.finishIteration()Lapplications/kitchensink/process/stress/modules/JvmtiStatistics;+0
j applications.kitchensink.process.stress.modules.JvmtiStressModule.execute()V+285
j applications.kitchensink.process.stress.modules.StressModule.run()V+118
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21-ea
j java.lang.Thread.run()V+19 java.base@21-ea
v ~StubRoutines::call_stub 0x00007fc817d41d1a
V [libjvm.so+0xe56782] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x462 (javaCalls.cpp:415)
V [libjvm.so+0xe56d63] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0x283 (javaCalls.cpp:329)
V [libjvm.so+0xe56f71] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, JavaThread*)+0x71 (javaCalls.cpp:191)
V [libjvm.so+0xfa61b6] thread_entry(JavaThread*, JavaThread*)+0x96 (jvm.cpp:2919)
V [libjvm.so+0xe8899e] JavaThread::thread_main_inner()+0x17e (javaThread.cpp:717)
V [libjvm.so+0x175aff8] Thread::call_run()+0xb8 (thread.cpp:215)
V [libjvm.so+0x14599fa] thread_native_entry(Thread*)+0x11a (os_linux.cpp:740)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j applications.kitchensink.process.stress.modules.JvmtiStressModule.finishIteration()Lapplications/kitchensink/process/stress/modules/JvmtiStatistics;+0
j applications.kitchensink.process.stress.modules.JvmtiStressModule.execute()V+285
j applications.kitchensink.process.stress.modules.StressModule.run()V+118
j java.lang.Thread.runWith(Ljava/lang/Object;Ljava/lang/Runnable;)V+5 java.base@21-ea
j java.lang.Thread.run()V+19 java.base@21-ea
v ~StubRoutines::call_stub 0x00007fc817d41d1a
siginfo: si_signo: 11 (SIGSEGV), si_code: 1 (SEGV_MAPERR), si_addr: 0x00000001000005a4
- relates to
-
JDK-8306028 separate ThreadStart/ThreadEnd events posting code in JVMTI VTMS transitions
-
- Resolved
-