JFR Crash during sampling: assert(jt->has_last_Java_frame()) failed: invariant

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P3
    • None
    • Affects Version/s: 26
    • Component/s: hotspot
    • jfr
    • x86_64
    • windows

      Test: runtime/CommandLine/PrintClasses.java#id1

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\sb\prod\1765333851\workspace\open\src\hotspot\share\jfr\periodic\sampling\jfrThreadSampling.cpp:406), pid=47040, tid=240
      # assert(jt->has_last_Java_frame()) failed: invariant
      #
      # JRE version: Java(TM) SE Runtime Environment (26.0+28) (fastdebug build 26-ea+28-2785)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 26-ea+28-2785, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Problematic frame:
      # V [jvm.dll+0x9c0deb] JfrThreadSampling::process_native_sample_request+0x44b
      #
      # Core dump will be written. Default location: C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\scratch\0\hs_err_pid47040.mdmp
      #
      # JFR recording file will be written. Location: C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\scratch\0\hs_err_pid47040.jfr
      #
      # 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 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -Djava.io.tmpdir=c:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\tmp -XX:+CreateCoredumpOnCrash -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=4.16667 -J-Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -J-Djava.io.tmpdir=c:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\tmp -J-XX:+CreateCoredumpOnCrash -Dtest.compiler.opts= -Dtest.java.opts=-XX:+UnlockExperimentalVMOptions -XX:+UseSystemMemoryBarrier -Dtest.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\windows-x64-debug.jdk\jdk-26\fastdebug -Dcompile.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\windows-x64-debug.jdk\jdk-26\fastdebug -Dtest.timeout.factor=4.0 -Dtest.nativepath=c:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\windows-x64-debug.test\hotspot\jtreg\native -Dtest.root=C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\hotspot\jtreg -Dtest.name=runtime/CommandLine/PrintClasses.java#id1 -Dtest.verbose=Verbose[p=BRIEF,f=FULL,e=FULL,t=true,m=false] -Dtest.file=C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\hotspot\jtreg\runtime\CommandLine\PrintClasses.java -Dtest.main.class=PrintClasses -Dtest.src=C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\hotspot\jtreg\runtime\CommandLine -Dtest.src.path=C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\hotspot\jtreg\runtime\CommandLine;C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\lib -Dtest.classes=C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\classes\2\runtime\CommandLine\PrintClasses_id1.d -Dtest.class.path=C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\classes\2\runtime\CommandLine\PrintClasses_id1.d;C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\classes\2\runtime\CommandLine\PrintClasses_id1.d\test\lib -Dtest.class.path.prefix=C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\classes\2\runtime\CommandLine\PrintClasses_id1.d;C:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\src.full\open\test\hotspot\jtreg\runtime\CommandLine;C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\classes\2\runtime\CommandLine\PrintClasses_id1.d\test\lib -XX:MaxRAMPercentage=4.16667 -Dtest.boot.jdk=c:\ade\mesos\work_dir\jib-master\install\jdk\25\37\bundles\windows-x64\jdk-25_windows-x64_bin.zip\jdk-25 -Djava.io.tmpdir=c:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\tmp -XX:+CreateCoredumpOnCrash -XX:+UnlockExperimentalVMOptions -XX:+UseSystemMemoryBarrier -Djava.library.path=c:\ade\mesos\work_dir\jib-master\install\jdk-26+28-2785\windows-x64-debug.test\hotspot\jtreg\native -XX:StartFlightRecording com.sun.javatest.regtest.agent.MainWrapper C:\sb\prod\1765369404\testoutput\test-support\jtreg_open_test_hotspot_jtreg_hotspot_runtime\runtime\CommandLine\PrintClasses_id1.d\main.0.jta

      Host: AMD EPYC 9J14 96-Core Processor , 12 cores, 23G, Windows Server 2025 , 64 bit Build 26100 (10.0.26100.1591)
      Time: Wed Dec 10 12:38:41 2025 Etc elapsed time: 3.222065 seconds (0d 0h 0m 3s)

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

      Current thread (0x000002b6b17025d0): JfrSamplerThread "JFR Sampler Thread" [id=240, stack(0x000000e4e1200000,0x000000e4e1300000) (1024K)] _threads_hazard_ptr=0x000002b6b15db8d0, _nested_threads_hazard_ptr_cnt=0

      Stack: [0x000000e4e1200000,0x000000e4e1300000], sp=0x000000e4e12ff940, free space=1022k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0x9c0deb] JfrThreadSampling::process_native_sample_request+0x44b (jfrThreadSampling.cpp:406)
      V [jvm.dll+0x9be64b] JfrSamplerThread::sample_native_thread+0x18b (jfrThreadSampler.cpp:375)
      V [jvm.dll+0x9becbd] JfrSamplerThread::task_stacktrace+0x2ed (jfrThreadSampler.cpp:259)
      V [jvm.dll+0x9be49c] JfrSamplerThread::run+0x1ec (jfrThreadSampler.cpp:201)
      V [jvm.dll+0x108ab9e] Thread::call_run+0x1be (thread.cpp:247)
      V [jvm.dll+0xe20884] thread_native_entry+0xc4 (os_windows.cpp:555)
      C [ucrtbase.dll+0x14ea0] (no source info available)
      C [KERNEL32.DLL+0x2dbe7] (no source info available)
      C [ntdll.dll+0x85a6c] (no source info available)

            Assignee:
            Unassigned
            Reporter:
            David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: