Skip to content

Minecraft Server Crashes with SIGBUS Error in OpenJDK 21.0.7 (No Errors Preceding Crash) #3462

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

Open
Chrigux opened this issue May 21, 2025 · 1 comment

Comments

@Chrigux
Copy link

Chrigux commented May 21, 2025

Describe the problem

I'm encountering a fatal crash in a Minecraft server running within the itzg/docker-minecraft-server Docker image. The crash occurs with a SIGBUS (0x7) error in the Java Runtime Environment (OpenJDK 21.0.7), specifically in the VM Periodic Task Thread during the PerfLongVariant::sample() function. Notably, there are no errors or warnings in the Minecraft server logs immediately preceding the crash, but creating a hs_err_pid1.log file in the data directory. The server terminated unexpectedly after approximately 5-6 hours of uptime.

This happens very few days.

Container definition

docker run
  -d
  --name='itzg-minecraft-server'
  --net='bridge'
  --pids-limit 2048
  -e TZ="Europe/Berlin"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="server"
  -e HOST_CONTAINERNAME="itzg-minecraft-server"
  -e 'MEMORY'='8G'
  -e 'TZ'='Europe/Berlin'
  -e 'TYPE'='VANILLA'
  -e 'VERSION'='LATEST'
  -e 'MOTD'='The SVG Minecraft Server'
  -e 'DIFFICULTY'='easy'
  -e 'OVERRIDE_ICON'='FALSE'
  -e 'HARDCORE'='false'
  -e 'SEED'='499200391'
  -e 'MODE'='survival'
  -e 'SERVER_NAME'='The SVG Minecraft Server'
  -e 'CF_API_KEY'=''
  -e 'CF_PAGE_URL'=''
  -e 'CF_SLUG'=''
  -e 'ONLINE_MODE'='true'
  -e 'ENABLE_WHITELIST'='true'
  -e 'VIEW_DISTANCE'='18'
  -e 'MAX_PLAYERS'='20'
  -e 'EULA'='TRUE'
  -e 'SNOOPER_ENABLED'='false'
  -e 'SPAWN_PROTECTION'='0'
  -e 'GENERATOR_SETTINGS'=''
  -e 'LEVEL_TYPE'='minecraft:default'
  -e 'PVP'='true'
  -e 'LEVEL'='world'
  -e 'EXEC_DIRECTLY'='true'
  -e 'STOP_SERVER_ANNOUNCE_DELAY'='35'
  -e 'FABRIC_LAUNCHER_VERSION'=''
  -e 'FABRIC_LOADER_VERSION'=''
  -e 'FORGE_VERSION'=''
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://djeqr6to3dedg.cloudfront.net/repo-logos/itzg/minecraft-server/live/logo-1704684813344.png'
  -p '25565:25565/tcp'
  -p '25565:25565/udp'
  -v '/mnt/user/appdata/minecraft/':'/data':'rw'
  -v '/mnt/user/appdata/minecraft/downloads/':'/downloads':'rw'
  --health-cmd='mc-health'
  --health-interval=30s
  --health-retries=10
  --health-timeout=10s
  --health-start-period=1m 'itzg/minecraft-server'

Container logs

...
[23:41:11] [Server thread/INFO]: Disconnecting todaracmustpay (/156.146.63.209:30737): You are not white-listed on this server!
[23:41:11] [Server thread/INFO]: todaracmustpay (/156.146.63.209:30737) lost connection: You are not white-listed on this server!
[23:41:11] [Server thread/WARN]: handleDisconnection() called twice
[00:50:13] [Server thread/WARN]: handleDisconnection() called twice

No service logs after this until the crash at Fri May 16 01:17:38 2025 with the crash generating an hs_err_pid1.log file -> attachment hs_err_pid1.log

Manual restart the next day:

[19:22:14] [ServerMain/INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD]
[19:22:16] [ServerMain/INFO]: Loaded 1373 recipes
[19:22:16] [ServerMain/INFO]: Loaded 1484 advancements
[19:22:16] [Server thread/INFO]: Starting minecraft server version 1.21.5
...
@itzg
Copy link
Owner

itzg commented May 21, 2025

This seems like something to report to Mojang. After setup of the files this image simple executes the server jar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants