Upstream issue is tracked here: https://bugs.openjdk.org/browse/JDK-8382195
@MrMuskle There’s no reason to mark this first-come issue as a duplicate of that newer one, since this has more details and context. Please reinspect it.
Could you try adding JVM option -XX:CompilerThreadStackSize=2048?
No. Since the vanilla launcher uses its own JRE.
This is a JVM-level crash and doesn’t necessarily have something to do with Minecraft itself. I confirmed this is related to OpenJDK’s link-time optimization and I’ve filed a mailing post to them.
Ping OP or bugtracker MOD - this issue can be marked closed now.
For ones who use LTO’ed OpenJDK, please use this workaround: add JVM option -XX:CompilerThreadStackSize=2048 and I suppose it’s enough. Or even larger: -XX:CompilerThreadStackSize=8192.
Minecraft only crashes with the new Vulkan renderer. My hardware is NVIDIA GeForce RTX 3060 Mobile. Nvidia proprietary driver 590 and 595 both cause the crash. May not be necessarily relevant with driver/hardware because it also crashes with lavapipe (via env VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.json).
GDB shows libjvm falls into an infinite recursion. The backtrace shows below:
(omitted many many)
#2548 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2549 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2550 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2551 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2552 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2553 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2554 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2555 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2556 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2557 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=this@entry=0x14ccbebf3ee0, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2558 0x000014cd119afd3f in RangeCheckEliminator::calc_bounds(BlockBegin*, BlockBegin*) [clone .isra.0] (this=<optimized out>, block=<optimized out>, loop_header=<optimized out>)
at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:1048
#2559 0x000014cd1193c117 in RangeCheckEliminator::RangeCheckEliminator (this=0x14ccbebf3ee0, ir=0x14cc7c239810) at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:90
#2560 RangeCheckElimination::eliminate (ir=0x14cc7c239810) at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:48
#2561 RangeCheckElimination::eliminate (ir=0x14cc7c239810) at src/hotspot/share/c1/c1_RangeCheckElimination.cpp:44
#2562 Compilation::build_hir (this=this@entry=0x14ccbebf4190) at src/hotspot/share/c1/c1_Compilation.cpp:222
#2563 0x000014cd1194889c in Compilation::build_hir (this=0x14ccbebf4190) at src/hotspot/share/runtime/timerTrace.cpp:81
#2564 Compilation::compile_java_method (this=0x14ccbebf4190) at src/hotspot/share/c1/c1_Compilation.cpp:384
#2565 Compilation::compile_method (this=0x14ccbebf4190) at src/hotspot/share/c1/c1_Compilation.cpp:471
#2566 Compilation::compile_method (this=0x14ccbebf4190) at src/hotspot/share/c1/c1_Compilation.cpp:437
#2567 Compilation::Compilation (this=0x14ccbebf4190, compiler=<optimized out>, env=<optimized out>, method=0x14cc7c04b960, osr_bci=<optimized out>, buffer_blob=<optimized out>,
install_code=<optimized out>, directive=<optimized out>) at src/hotspot/share/c1/c1_Compilation.cpp:600
#2568 Compiler::compile_method (this=<optimized out>, env=<optimized out>, method=0x14cc7c04b960, entry_bci=<optimized out>, install_code=<optimized out>, directive=<optimized out>)
at src/hotspot/share/c1/c1_Compiler.cpp:263
#2569 0x000014cd11ac80d2 in CompileBroker::invoke_compiler_on_method (task=<optimized out>) at src/hotspot/share/compiler/compileBroker.cpp:2345
#2570 CompileBroker::compiler_thread_loop () at src/hotspot/share/compiler/compileBroker.cpp:1989
#2571 0x000014cd11d44af1 in JavaThread::thread_main_inner (this=0x14cc844e9670) at src/hotspot/share/runtime/javaThread.hpp:612
#2572 JavaThread::thread_main_inner (this=0x14cc844e9670) at src/hotspot/share/runtime/javaThread.cpp:764
#2573 JavaThread::run (this=0x14cc844e9670) at src/hotspot/share/runtime/javaThread.cpp:761
#2574 0x000014cd120b41bd in Thread::call_run (this=0x14cc844e9670) at src/hotspot/share/runtime/thread.cpp:242
#2575 thread_native_entry (thread=0x14cc844e9670) at src/hotspot/os/linux/os_linux.cpp:860
#2576 0x000014cd12b6c97a in ?? () from /usr/lib/libc.so.6
#2577 0x000014cd12bf02bc in ?? () from /usr/lib/libc.so.6Then the workaround jvm option can be narrowed to -XX:-RangeCheckElimination.
Also guess, I suppose this can be considered as an OpenJDK 25/26 JIT bug.
I encountered this issue also. Crashes with OpenJDK 25 and 26. Workaround for me is to add -XX:-TieredCompilation jvm option.
Happy to know that! I’ve reported this in openjdk’s mailing list and they filed the bug: (issue id) JDK-8382195, fyi