Jump to content
dgl

Server fails to shut down correctly when attempting to send servermsg to a disconnected player

Recommended Posts

This bug is reproducible but requires a very precise timing to pull off. I have a script that sends restart countdown servermsgs, including sending one final "Restarting NOW!" message right before sysytemd service is stopped. During last game session, server failed to shut down cleanly and persist server state, partially wiping player progress. After looking at the logs and some lucky guessing I was able to pinpoint the issue to that one final servermsg. Here's how to reproduce this:

1. Create a script that sleeps for a few seconds, sends servermsg and immediately terminates the server.

2. Log into the game.

3. Execute the script.

4. Quit the game immediately before servermsg.

5. My guess is that servermsg is either racing with shutdown, or attempts to message a disconnected player that did not yet have time to fully close the client session.

 

hs_err_pid15877.log systemd.log

Edited by dgl

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...