Running TestVirtualThreads with -Xcomp -XX:+SafepointALot -XX:+DeoptimizeALot may sometimes result in an assertion error
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/merykitty/openjdk/valhalla/src/hotspot/cpu/x86/frame_x86.inline.hpp:459), pid=13948, tid=13986
# assert(sender_pc == nm->deopt_mh_handler_begin() || sender_pc == nm->deopt_handler_begin()) failed: unexpected sender pc
#
# JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-adhoc.merykitty.valhalla)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-adhoc.merykitty.valhalla, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xe8d12b] frame::sender_for_compiled_frame(RegisterMap*) const+0x4fb
#
# Core dump will be written. Default location: Core dumps may be processed with "/wsl-capture-crash %t %E %p %s" (or dumping to /home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/scratch/0/core.13948)
#
# 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=3.125 -Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=3.125 -J-Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -J-Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Dtest.compiler.opts= -Dtest.java.opts=-Xcomp -XX:+SafepointALot -XX:+DeoptimizeALot -Dtest.jdk=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/jdk -Dcompile.jdk=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/jdk -Dtest.timeout.factor=10.0 -Dtest.nativepath=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/test/hotspot/jtreg/native -Dtest.root=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg -Dtest.name=compiler/valhalla/inlinetypes/TestVirtualThreads.java -Dtest.verbose=Verbose[p=SUMMARY,f=FULL,e=FULL,t=false,m=false] -Dtest.file=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestVirtualThreads.java -Dtest.main.class=TestVirtualThreads -Dtest.src=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.src.path=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes:/home/merykitty/openjdk/valhalla/test/lib:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/whitebox:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg -Dtest.classes=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d -Dtest.class.path=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/test/lib:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/compiler/whitebox:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d -Dtest.class.path.prefix=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/test/lib:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/compiler/whitebox -Dtest.enable.preview=true -XX:MaxRAMPercentage=3.125 -Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Xcomp -XX:+SafepointALot -XX:+DeoptimizeALot -Djava.library.path=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp -XX:CompileCommand=dontinline,*::dontinline -XX:CompileCommand=compileonly,TestVirtualThreads*::test* -XX:CompileCommand=dontinline,*::*Helper --enable-preview com.sun.javatest.regtest.agent.MainWrapper /home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/compiler/valhalla/inlinetypes/TestVirtualThreads.d/main.10.jta
Host: merykitty, AMD Ryzen 7 7700 8-Core Processor, 16 cores, 23G, Ubuntu 24.04.3 LTS
Time: Sun Oct 19 11:03:23 2025 +07 elapsed time: 21.532695 seconds (0d 0h 0m 21s)
--------------- T H R E A D ---------------
Current thread (0x00007d9fb0001c10): JavaThread "ForkJoinPool-1-worker-2" daemon [_thread_in_Java, id=13986, stack(0x00007d9fbbe00000,0x00007d9fbbf00000) (1024K)]
Stack: [0x00007d9fbbe00000,0x00007d9fbbf00000], sp=0x00007d9fbbefb660, free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xe8d12b] frame::sender_for_compiled_frame(RegisterMap*) const+0x4fb (frame_x86.inline.hpp:459)
V [libjvm.so+0xe8ca0c] frame::sender_raw(RegisterMap*) const+0x12c (frame_x86.inline.hpp:423)
V [libjvm.so+0x1088a11] ContinuationEntry::assert_entry_frame_laid_out(JavaThread*)+0x1f1 (frame_x86.inline.hpp:400)
V [libjvm.so+0x1098878] log_frames_after_thaw(JavaThread*, ContinuationWrapper&, long*, bool)+0x538 (continuationFreezeThaw.cpp:3051)
V [libjvm.so+0x10b8316] Config<(oop_kind)0, G1BarrierSet>::thaw(JavaThread*, Continuation::thaw_kind)+0x796 (continuationFreezeThaw.cpp:2893)
V [libjvm.so+0x1099644] long* thaw<Config<(oop_kind)0, G1BarrierSet> >(JavaThread*, int)+0x74 (continuationFreezeThaw.cpp:242)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.util.concurrent.locks.LockSupport.parkNanos(J)V+19 java.base@26-internal
J 56 c1 TestVirtualThreads.testDoubleValue(LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;)LTestVirtualThreads$DoubleValue; (259 bytes) @ 0x00007da03bfaa49c [0x00007da03bfa9f40+0x000000000000055c]
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/merykitty/openjdk/valhalla/src/hotspot/cpu/x86/frame_x86.inline.hpp:459), pid=13948, tid=13986
# assert(sender_pc == nm->deopt_mh_handler_begin() || sender_pc == nm->deopt_handler_begin()) failed: unexpected sender pc
#
# JRE version: OpenJDK Runtime Environment (26.0) (fastdebug build 26-internal-adhoc.merykitty.valhalla)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 26-internal-adhoc.merykitty.valhalla, compiled mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0xe8d12b] frame::sender_for_compiled_frame(RegisterMap*) const+0x4fb
#
# Core dump will be written. Default location: Core dumps may be processed with "/wsl-capture-crash %t %E %p %s" (or dumping to /home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/scratch/0/core.13948)
#
# 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=3.125 -Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Dtest.tool.vm.opts=-J-XX:MaxRAMPercentage=3.125 -J-Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -J-Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Dtest.compiler.opts= -Dtest.java.opts=-Xcomp -XX:+SafepointALot -XX:+DeoptimizeALot -Dtest.jdk=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/jdk -Dcompile.jdk=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/jdk -Dtest.timeout.factor=10.0 -Dtest.nativepath=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/test/hotspot/jtreg/native -Dtest.root=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg -Dtest.name=compiler/valhalla/inlinetypes/TestVirtualThreads.java -Dtest.verbose=Verbose[p=SUMMARY,f=FULL,e=FULL,t=false,m=false] -Dtest.file=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes/TestVirtualThreads.java -Dtest.main.class=TestVirtualThreads -Dtest.src=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes -Dtest.src.path=/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes:/home/merykitty/openjdk/valhalla/test/lib:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/whitebox:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg -Dtest.classes=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d -Dtest.class.path=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/test/lib:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/compiler/whitebox:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d -Dtest.class.path.prefix=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d:/home/merykitty/openjdk/valhalla/test/hotspot/jtreg/compiler/valhalla/inlinetypes:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/test/lib:/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/classes/0/compiler/valhalla/inlinetypes/TestVirtualThreads.d/compiler/whitebox -Dtest.enable.preview=true -XX:MaxRAMPercentage=3.125 -Dtest.boot.jdk=/home/merykitty/openjdk/unpatched-jdk/build/linux-x86_64-server-release/images/jdk -Djava.io.tmpdir=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/tmp -Xcomp -XX:+SafepointALot -XX:+DeoptimizeALot -Djava.library.path=/home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/images/test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xcomp -XX:CompileCommand=dontinline,*::dontinline -XX:CompileCommand=compileonly,TestVirtualThreads*::test* -XX:CompileCommand=dontinline,*::*Helper --enable-preview com.sun.javatest.regtest.agent.MainWrapper /home/merykitty/openjdk/valhalla/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_hotspot_jtreg_compiler_valhalla_inlinetypes_TestVirtualThreads_java/compiler/valhalla/inlinetypes/TestVirtualThreads.d/main.10.jta
Host: merykitty, AMD Ryzen 7 7700 8-Core Processor, 16 cores, 23G, Ubuntu 24.04.3 LTS
Time: Sun Oct 19 11:03:23 2025 +07 elapsed time: 21.532695 seconds (0d 0h 0m 21s)
--------------- T H R E A D ---------------
Current thread (0x00007d9fb0001c10): JavaThread "ForkJoinPool-1-worker-2" daemon [_thread_in_Java, id=13986, stack(0x00007d9fbbe00000,0x00007d9fbbf00000) (1024K)]
Stack: [0x00007d9fbbe00000,0x00007d9fbbf00000], sp=0x00007d9fbbefb660, free space=1005k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0xe8d12b] frame::sender_for_compiled_frame(RegisterMap*) const+0x4fb (frame_x86.inline.hpp:459)
V [libjvm.so+0xe8ca0c] frame::sender_raw(RegisterMap*) const+0x12c (frame_x86.inline.hpp:423)
V [libjvm.so+0x1088a11] ContinuationEntry::assert_entry_frame_laid_out(JavaThread*)+0x1f1 (frame_x86.inline.hpp:400)
V [libjvm.so+0x1098878] log_frames_after_thaw(JavaThread*, ContinuationWrapper&, long*, bool)+0x538 (continuationFreezeThaw.cpp:3051)
V [libjvm.so+0x10b8316] Config<(oop_kind)0, G1BarrierSet>::thaw(JavaThread*, Continuation::thaw_kind)+0x796 (continuationFreezeThaw.cpp:2893)
V [libjvm.so+0x1099644] long* thaw<Config<(oop_kind)0, G1BarrierSet> >(JavaThread*, int)+0x74 (continuationFreezeThaw.cpp:242)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j java.util.concurrent.locks.LockSupport.parkNanos(J)V+19 java.base@26-internal
J 56 c1 TestVirtualThreads.testDoubleValue(LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;LTestVirtualThreads$DoubleValue;)LTestVirtualThreads$DoubleValue; (259 bytes) @ 0x00007da03bfaa49c [0x00007da03bfa9f40+0x000000000000055c]
- relates to
-
JDK-8367258 [lworld] Several crashes when running test TestVirtualThreads.java with -XX:+SafepointALot -XX:+DeoptimizeALot -XX:+DeoptimizeNMethodBarriersALot -XX:MaxNodeLimit=100000
-
- In Progress
-