JDK-8310340 : assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 22,23
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2023-06-19
  • Updated: 2024-06-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23 JDK 24
23Unresolved 24Unresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Test: serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c:\sb\prod\1687197110\workspace\open\src\hotspot\share\runtime\continuationFreezeThaw.cpp:2242), pid=64476, tid=12664
#  assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller

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

Current thread (0x000002075819d2f0):  JavaThread "ForkJoinPool-1-worker-9" daemon [_thread_in_Java, id=12664, stack(0x00000084d5800000,0x00000084d5900000) (1024K)]

Stack: [0x00000084d5800000,0x00000084d5900000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xc59391]  os::win32::platform_print_native_stack+0x101  (os_windows_x86.cpp:236)
V  [jvm.dll+0xeeca1c]  VMError::report+0x146c  (vmError.cpp:991)
V  [jvm.dll+0xeeee15]  VMError::report_and_die+0x645  (vmError.cpp:1797)
V  [jvm.dll+0xeef524]  VMError::report_and_die+0x64  (vmError.cpp:1562)
V  [jvm.dll+0x550adb]  report_vm_error+0x5b  (debug.cpp:191)
V  [jvm.dll+0x53d390]  ThawBase::recurse_thaw_compiled_frame+0x8f0  (continuationFreezeThaw.cpp:2242)
V  [jvm.dll+0x540f8a]  ThawBase::thaw_slow+0x34a  (continuationFreezeThaw.cpp:2001)
V  [jvm.dll+0x540376]  Thaw<Config<0,ZBarrierSet> >::thaw+0x3c6  (continuationFreezeThaw.cpp:1793)
V  [jvm.dll+0x52e54c]  thaw_internal<Config<0,G1BarrierSet> >+0x5cc  (continuationFreezeThaw.cpp:2399)
V  [jvm.dll+0x52df4f]  thaw<Config<0,XBarrierSet> >+0x3f  (continuationFreezeThaw.cpp:253)
C  0x0000020747036e75
Comments
Here's a log file snippet for the jdk-23+17-1348-tier7 sighting: serviceability/jvmti/stress/StackTrace/Suspended/GetStackTraceSuspendedStressTest.java #section:main ----------messages:(6/363)---------- command: main -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest reason: User specified action: run main/othervm/native -agentlib:GetStackTraceSuspendedStress GetStackTraceSuspendedStressTest started: Thu Apr 04 17:36:52 UTC 2024 Mode: othervm [/othervm specified] finished: Thu Apr 04 17:37:37 UTC 2024 elapsed time (seconds): 44.863 ----------configuration:(0/0)---------- ----------System.out:(143/4882)*---------- Agent_OnLoad started Agent_OnLoad finished Synchronization point checkStatus(0) called. Data 0000022F6910A6B0 0000022F6902CC00 Agent: waiting to start Agent: started VThread-Consumer-2: started VThread-Consumer-4: started VThread-Consumer-5: started <snip> VThread-Producer-6: started VThread-Consumer-6: started VThread-Consumer-15: started # # A fatal error has been detected by the Java Runtime Environment: # # Internal Error (c:\\sb\\prod\\1712123946\\workspace\\open\\src\\hotspot\\share\\runtime\\continuationFreezeThaw.cpp:2296), pid=17116, tid=27792 # assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller # # JRE version: Java(TM) SE Runtime Environment (23.0+17) (fastdebug build 23-ea+17-1348) # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 23-ea+17-1348, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) # Core dump will be written. Default location: C:\\sb\\prod\\1712249628\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\0\\hs_err_pid17116.mdmp # # An error report file with more information is saved as: # C:\\sb\\prod\\1712249628\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_hotspot_serviceability\\scratch\\0\\hs_err_pid17116.log [43.934s][warning][os] Loading hsdis library failed # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # ----------System.err:(0/0)---------- ----------rerun:(49/7209)*---------- Here's the crashing thread's stack: --------------- T H R E A D --------------- Current thread (0x0000022f5507cb60): JavaThread "ForkJoinPool-1-worker-6" daemon [_thread_in_Java, id=27792, stack(0x0000009ba0600000,0x0000009ba0700000) (1024K)] Stack: [0x0000009ba0600000,0x0000009ba0700000] Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [jvm.dll+0xc92241] os::win32::platform_print_native_stack+0x101 (os_windows_x86.cpp:235) V [jvm.dll+0xf3ca7b] VMError::report+0x149b (vmError.cpp:1010) V [jvm.dll+0xf3f13e] VMError::report_and_die+0x80e (vmError.cpp:1845) V [jvm.dll+0xf3f864] VMError::report_and_die+0x64 (vmError.cpp:1610) V [jvm.dll+0x54f7cb] report_vm_error+0x5b (debug.cpp:193) V [jvm.dll+0x53c194] ThawBase::recurse_thaw_compiled_frame+0x924 (continuationFreezeThaw.cpp:2296) V [jvm.dll+0x53fb05] ThawBase::thaw_slow+0x335 (continuationFreezeThaw.cpp:2044) V [jvm.dll+0x53ef06] Thaw<Config<0,ZBarrierSet> >::thaw+0x3c6 (continuationFreezeThaw.cpp:1826) V [jvm.dll+0x52c7d8] thaw_internal<Config<0,ZBarrierSet> >+0x548 (continuationFreezeThaw.cpp:2456) V [jvm.dll+0x52c25f] thaw<Config<1,ZBarrierSet> >+0x3f (continuationFreezeThaw.cpp:253) C 0x0000022f07536e61 (no source info available) The last pc belongs to Cont thaw return barrier (printed below). Lock stack of current Java thread (top to bottom): StubRoutines::Cont thaw return barrier [0x0000022f07536d73, 0x0000022f07536e90] (285 bytes) [MachCode] 0x0000022f07536d73: 498b a788 | 0500 0049 | 3ba7 8805 | 0000 0f84 | 1b00 0000 | 48b9 985c | 54ce fc7f | 0000 4883 0x0000022f07536d93: e4f0 48b8 | a0f6 dbcd | fc7f 0000 | ffd0 f450 | 4883 ec10 | c5fb 1104 | 2449 8bcf | ba01 0000 0x0000022f07536db3: 0048 83ec | 2040 f6c4 | 0f0f 8419 | 0000 0048 | 83ec 0848 | b800 9879 | cdfc 7f00 | 00ff d048 0x0000022f07536dd3: 83c4 08e9 | 0c00 0000 | 48b8 0098 | 79cd fc7f | 0000 ffd0 | 4883 c420 | 488b d8c5 | fb10 0424 0x0000022f07536df3: 4883 c410 | 5849 3ba7 | 8805 0000 | 0f84 1b00 | 0000 48b9 | c85c 54ce | fc7f 0000 | 4883 e4f0 0x0000022f07536e13: 48b8 a0f6 | dbcd fc7f | 0000 ffd0 | f448 85db | 7505 e976 | f8ff ff48 | 2be3 4883 | e4f0 5048 0x0000022f07536e33: 83ec 10c5 | fb11 0424 | 498b cfba | 0100 0000 | 4883 ec20 | 40f6 c40f | 0f84 1900 | 0000 4883 0x0000022f07536e53: ec08 48b8 | 20c2 78cd | fc7f 0000 | ffd0 4883 | c408 e90c | 0000 0048 | b820 c278 | cdfc 7f00 0x0000022f07536e73: 00ff d048 | 83c4 2048 | 8bd8 c5fb | 1004 2448 | 83c4 1058 | 488b e348 | 83ec 105d | [/MachCode]
04-04-2024

ILW = HLM = P3
20-06-2023