JDK-8337514 : JFR crash: assert(((((JfrTraceIdBits::load(value)) & ((JfrTraceIdEpoch::this_epoch_bit()) << 8)) != 0))) failed: invariant
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 24,25,26
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2024-07-30
  • Updated: 2025-08-18
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 26
26Unresolved
Related Reports
Duplicate :  
Relates :  
Description
Test: applications/kitchensink/Kitchensink8H.java

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (c:\sb\prod\1722124254\workspace\open\src\hotspot\share\jfr/recorder/checkpoint/types/jfrTypeSetUtils.hpp:99), pid=7864, tid=8772
#  assert(((((JfrTraceIdBits::load(value)) & ((JfrTraceIdEpoch::this_epoch_bit()) << 8)) != 0))) failed: invariant
#
# JRE version: Java(TM) SE Runtime Environment (24.0+9) (fastdebug build 24-ea+9-911)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-ea+9-911, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)


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

Current thread (0x000001e3b69de8a0):  JavaThread "JFR Recorder Thread" daemon [_thread_in_vm, id=8772, stack(0x000000185fc00000,0x000000185fd00000) (1024K)]

Stack: [0x000000185fc00000,0x000000185fd00000]
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0xc9f211]  os::win32::platform_print_native_stack+0x101  (os_windows_x86.cpp:235)
V  [jvm.dll+0xf6124b]  VMError::report+0x149b  (vmError.cpp:1011)
V  [jvm.dll+0xf638ed]  VMError::report_and_die+0x80d  (vmError.cpp:1846)
V  [jvm.dll+0xf63fe4]  VMError::report_and_die+0x64  (vmError.cpp:1611)
V  [jvm.dll+0x55e91b]  report_vm_error+0x5b  (debug.cpp:193)
V  [jvm.dll+0x87a4bb]  ClearArtifact<Klass const *>::operator()+0x2ab  (jfrTypeSetUtils.hpp:99)
V  [jvm.dll+0x87950a]  JfrArtifactSet::iterate<MethodIteratorHost<Wrapper<Method const *,ClearArtifact>,Wrapper<Klass const *,ClearArtifact>,0> >+0x1da  (jfrTypeSetUtils.hpp:265)
V  [jvm.dll+0x87e015]  teardown+0xa5  (jfrTypeSet.cpp:1197)
V  [jvm.dll+0x87c71b]  JfrTypeSet::clear+0x36b  (jfrTypeSet.cpp:1255)
V  [jvm.dll+0x80dea5]  JfrCheckpointManager::clear_type_set+0x115  (jfrCheckpointManager.cpp:592)
V  [jvm.dll+0x80da7a]  JfrCheckpointManager::clear+0x3a  (jfrCheckpointManager.cpp:537)
V  [jvm.dll+0x8593e3]  JfrRecorderService::start+0x33  (jfrRecorderService.cpp:448)
V  [jvm.dll+0x85a557]  recorderthread_entry+0x197  (jfrRecorderThreadLoop.cpp:79)
V  [jvm.dll+0x806b56]  JavaThread::thread_main_inner+0x266  (javaThread.cpp:758)
V  [jvm.dll+0xec38a7]  Thread::call_run+0x1b7  (thread.cpp:230)
V  [jvm.dll+0xc9d876]  thread_native_entry+0xd6  (os_windows.cpp:553)
C  [ucrtbase.dll+0x1fb80]  (no source info available)
C  [KERNEL32.DLL+0x84d4]  (no source info available)
C  [ntdll.dll+0x51791]  (no source info available)
Comments
The issue still appear after https://bugs.openjdk.org/browse/JDK-8356587 is fixed.
11-08-2025