Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 23 + Spark = Crash #461

Closed
Teslicek opened this issue Sep 30, 2024 · 5 comments
Closed

Java 23 + Spark = Crash #461

Teslicek opened this issue Sep 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Teslicek
Copy link

Description

When using Java (Oracle GraalVM) 23 and starting an async spark profiler, upon player join, the whole server crashes.

This behavior does not happen when using Java (Oracle GraalVM) 22.

Reproduction Steps

  1. Start a paper server using GraalVM 23
  2. Create a spark profiler
  3. Make a player join during the profiler
  4. Your server should crash

Expected Behaviour

The server should not crash.

Platform Information

  • Minecraft Version: 1.21.1
  • Platform Type: server
  • Platform Brand: Paper
  • Platform Version: b115

Spark Version

1.10.109-bukkit

Logs and Configs

No response

Extra Details

We are using Pterodactyl panel so everything is running in a container.
All the plugins are working flawlessly using the new Java (Oracle GraalVM) 23, the only issue is spark profiler.

Crash log: hs_err_pid32.log

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fe2c4c06ecf, pid=32, tid=76
#
# JRE version: Java(TM) SE Runtime Environment Oracle GraalVM 23+37.1 (23.0+37) (build 23+37-jvmci-b01)
# Java VM: Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 23+37.1 (23+37-jvmci-b01, mixed mode, sharing, tiered, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# C  [spark-f09e253fe324c-libasyncProfiler.so.tmp+0x6ecf]  NMethod::isNMethod()+0x1f
#
# Core dump will be written. Default location: /home/container/core
#
# An error report file with more information is saved as:
# /home/container/hs_err_pid32.log
[11.580s][warning][os] Loading hsdis library failed
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
@Teslicek Teslicek added the bug Something isn't working label Sep 30, 2024
@SirYwell
Copy link
Contributor

SirYwell commented Oct 1, 2024

See async-profiler/async-profiler#923. Everything that uses async-profiler won't work currently on Java 23+. You'll need to use the Java sampler for now instead.

@ryantheleach
Copy link

ryantheleach commented Oct 12, 2024

spark is currently using v2.8.3 of async-profiler, v3.0.0 exists, but as it's a major version change, I'm unsure whether it will be binary compatible.

Edit: investigation shows that the fix isn't in 3.0.0, would either involve switching to nightlies, or waiting for a release to be cut.

@RealSourceOfficial
Copy link

see #386

@TerryLVM
Copy link

Captura de pantalla 2024-10-18 192208
Same happening here, had to disable the spark from paper config and delete the jar.
Currently using 1.21.1 paper
java 23

@ryantheleach
Copy link

@TerryLVM @Teslicek if you missed it, you may want to try out the builds on #386 Luck is looking for feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants