Skip to content

Crash server/time out yourself with chat message #110

Closed

Description

@ethan-xd

Reproduction
Chat message "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA". That's it.

Doing this too many times crashes the server, but usually just times you out. This doesn't happen server side however, so this can lead to some quirky side effects.

image

According to my buddy Lolt every time this happens one core crashes. When the server runs out of cores, the entire server crashes. Sending the chat message then reconnecting on a 6 core server crashed on the 6th attempt.

Activity

  1. added
    bug
    on Sep 4, 2019
  2. added this to the 0.5 milestone on Sep 4, 2019
  3. caelunshun commented on Sep 4, 2019

    @caelunshun
    Member

    Seems like the cutoff is at any message of length 253 characters or more. I suspect this is an issue with handling of compressed packets received from the client.

  4. caelunshun commented on Sep 4, 2019

    @caelunshun
    Member

    Confirmed that this does not occur when compression is disabled (compression_threshold set to -1 in config).

    Edit: This will be fixed by #42 once it is complete. In the meantime, I will push a hotfix.

  5. caelunshun commented on Sep 4, 2019

    @caelunshun
    Member

    Thanks for reporting!

  6. ethan-xd commented on Sep 4, 2019

    @ethan-xd
    Author

    No worries!

    A bit off topic, would you like survival related bug reports (not the usual I break blocks and get nothing) or would you rather wait until an actual release?

  7. caelunshun commented on Sep 4, 2019

    @caelunshun
    Member

    No worries!

    A bit off topic, would you like survival related bug reports (not the usual I break blocks and get nothing) or would you rather wait until an actual release?

    Nothing in survival mode is really implemented, but you can reply to #40 with anything you find.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions