-
Bug
-
Resolution: Fixed
-
P3
-
21
-
b05
-
aarch64
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8312884 | 21.0.1 | Serguei Spitsyn | P3 | Resolved | Fixed | b04 |
JDK-8311543 | 21 | Serguei Spitsyn | P3 | Resolved | Fixed | b30 |
The following test crashed with a SIGSEGV in JavaThread::is_interp_only_mode():
serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java
Here's snippets from the hs_err_pid file:
# SIGSEGV (0xb) at pc=0x0000000109ebf5cc, pid=5235, tid=25603
#
# JRE version: Java(TM) SE Runtime Environment (21.0) (slowdebug build 21-internal-LTS-2023-02-16-1211495.dcubed...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 21-internal-LTS-2023-02-16-1211495.dcubed..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0xebf5cc] JavaThread::is_interp_only_mode()+0x14
<snip>
--------------- T H R E A D ---------------
Current thread (0x0000000133810a10): JavaThread "JVMTI agent thread" daemon [_thread_in_vm, id=25603, stack(0x000000016d998000,0x000000016db9b000)] _threads_hazard_ptr=0x0000000125558250, _nested_threads_hazard_ptr_cnt=1, _nested_threads_hazard_ptr=0x0000000125558250
Stack: [0x000000016d998000,0x000000016db9b000], sp=0x000000016db9a6e0, free space=2057k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0xebf5cc] JavaThread::is_interp_only_mode()+0x14
V [libjvm.dylib+0xb6a700] JvmtiThreadState::is_interp_only_mode()+0x44
V [libjvm.dylib+0xb6c660] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*)+0x164
V [libjvm.dylib+0xb6c91c] JvmtiEventControllerPrivate::recompute_enabled()+0x1f0
V [libjvm.dylib+0xb6df20] JvmtiEventControllerPrivate::set_user_enabled(JvmtiEnvBase*, JavaThread*, Handle, jvmtiEvent, bool)+0x1a4
V [libjvm.dylib+0xb6e570] JvmtiEventController::set_user_enabled(JvmtiEnvBase*, JavaThread*, oopDesc*, jvmtiEvent, bool)+0xfc
V [libjvm.dylib+0xb52588] JvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x1a4
V [libjvm.dylib+0xafad3c] jvmti_SetEventNotificationMode(_jvmtiEnv*, jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x140
C [libGetStackTraceSuspendedStress.dylib+0x3b18] _jvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x3c
C [libGetStackTraceSuspendedStress.dylib+0x5e50] check_vthread_consistency_suspended(_jvmtiEnv*, JNIEnv_*, _jobject*)+0xc0
C [libGetStackTraceSuspendedStress.dylib+0x4d80] agentProc(_jvmtiEnv*, JNIEnv_*, void*)+0x19c
C [libGetStackTraceSuspendedStress.dylib+0x545c] agent_thread_wrapper(_jvmtiEnv*, JNIEnv_*, void*)+0x54
V [libjvm.dylib+0xb801d8] JvmtiAgentThread::call_start_function()+0x74
V [libjvm.dylib+0xb8010c] JvmtiAgentThread::start_function_wrapper(JavaThread*, JavaThread*)+0x60
V [libjvm.dylib+0x90be18] JavaThread::thread_main_inner()+0x108
V [libjvm.dylib+0x90bd04] JavaThread::run()+0x124
V [libjvm.dylib+0xff82b0] Thread::call_run()+0x154
V [libjvm.dylib+0xdb6ed4] thread_native_entry(Thread*)+0x138
C [libsystem_pthread.dylib+0x7878] _pthread_start+0x140
siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x0000000000000560
serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java
Here's snippets from the hs_err_pid file:
# SIGSEGV (0xb) at pc=0x0000000109ebf5cc, pid=5235, tid=25603
#
# JRE version: Java(TM) SE Runtime Environment (21.0) (slowdebug build 21-internal-LTS-2023-02-16-1211495.dcubed...)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (slowdebug 21-internal-LTS-2023-02-16-1211495.dcubed..., mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0xebf5cc] JavaThread::is_interp_only_mode()+0x14
<snip>
--------------- T H R E A D ---------------
Current thread (0x0000000133810a10): JavaThread "JVMTI agent thread" daemon [_thread_in_vm, id=25603, stack(0x000000016d998000,0x000000016db9b000)] _threads_hazard_ptr=0x0000000125558250, _nested_threads_hazard_ptr_cnt=1, _nested_threads_hazard_ptr=0x0000000125558250
Stack: [0x000000016d998000,0x000000016db9b000], sp=0x000000016db9a6e0, free space=2057k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0xebf5cc] JavaThread::is_interp_only_mode()+0x14
V [libjvm.dylib+0xb6a700] JvmtiThreadState::is_interp_only_mode()+0x44
V [libjvm.dylib+0xb6c660] JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState*)+0x164
V [libjvm.dylib+0xb6c91c] JvmtiEventControllerPrivate::recompute_enabled()+0x1f0
V [libjvm.dylib+0xb6df20] JvmtiEventControllerPrivate::set_user_enabled(JvmtiEnvBase*, JavaThread*, Handle, jvmtiEvent, bool)+0x1a4
V [libjvm.dylib+0xb6e570] JvmtiEventController::set_user_enabled(JvmtiEnvBase*, JavaThread*, oopDesc*, jvmtiEvent, bool)+0xfc
V [libjvm.dylib+0xb52588] JvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x1a4
V [libjvm.dylib+0xafad3c] jvmti_SetEventNotificationMode(_jvmtiEnv*, jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x140
C [libGetStackTraceSuspendedStress.dylib+0x3b18] _jvmtiEnv::SetEventNotificationMode(jvmtiEventMode, jvmtiEvent, _jobject*, ...)+0x3c
C [libGetStackTraceSuspendedStress.dylib+0x5e50] check_vthread_consistency_suspended(_jvmtiEnv*, JNIEnv_*, _jobject*)+0xc0
C [libGetStackTraceSuspendedStress.dylib+0x4d80] agentProc(_jvmtiEnv*, JNIEnv_*, void*)+0x19c
C [libGetStackTraceSuspendedStress.dylib+0x545c] agent_thread_wrapper(_jvmtiEnv*, JNIEnv_*, void*)+0x54
V [libjvm.dylib+0xb801d8] JvmtiAgentThread::call_start_function()+0x74
V [libjvm.dylib+0xb8010c] JvmtiAgentThread::start_function_wrapper(JavaThread*, JavaThread*)+0x60
V [libjvm.dylib+0x90be18] JavaThread::thread_main_inner()+0x108
V [libjvm.dylib+0x90bd04] JavaThread::run()+0x124
V [libjvm.dylib+0xff82b0] Thread::call_run()+0x154
V [libjvm.dylib+0xdb6ed4] thread_native_entry(Thread*)+0x138
C [libsystem_pthread.dylib+0x7878] _pthread_start+0x140
siginfo: si_signo: 11 (SIGSEGV), si_code: 2 (SEGV_ACCERR), si_addr: 0x0000000000000560
- backported by
-
JDK-8311543 SIGSEGV in JavaThread::is_interp_only_mode()
- Resolved
-
JDK-8312884 SIGSEGV in JavaThread::is_interp_only_mode()
- Resolved
- relates to
-
JDK-8311177 Switching to interpreter only mode in carrier thread can lead to crashes
- Resolved
-
JDK-8311218 fatal error: stuck in JvmtiVTMSTransitionDisabler::VTMS_transition_disable
- Resolved
- links to
-
Commit openjdk/jdk21/f24c5540
-
Commit openjdk/jdk/971c2efb
-
Review openjdk/jdk21/96
-
Review openjdk/jdk/14728
(3 links to)