Server stops after failing to handle a packet. Generates IllegalArgumentException
Upon receiving a chat message that generates a java.lang.IllegalArgumentException: end before start, the server warns, prints a stack trace and stops. It's possible this issue can't be reproduced. Possible security issue since it might be possible to stop any 1.5 server with this bug.
What I expected to happen was...:
When I sent my chat message, the server should have kept running.
What actually happened was...:
The server stopped, after generating the following warning and stack trace in the server log:
2013-03-14 20:39:06 [WARNING] Failed to handle packet for knutremi/80.212.244.111: java.lang.IllegalArgumentException: end before start
java.lang.IllegalArgumentException: end before start
at javax.swing.JTextArea.replaceRange(Unknown Source)
at in.publish(SourceFile:56)
at java.util.logging.Logger.log(Unknown Source)
at java.util.logging.Logger.doLog(Unknown Source)
at java.util.logging.Logger.log(Unknown Source)
at kh.a(SourceFile:50)
at jh.a(SourceFile:403)
at ci.b(SourceFile:356)
at jh.d(SourceFile:60)
at jk.b(SourceFile:35)
at ie.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(SourceFile:480)
at hz.r(SourceFile:255)
at net.minecraft.server.MinecraftServer.q(SourceFile:397)
at net.minecraft.server.MinecraftServer.run(SourceFile:331)
at gp.run(SourceFile:573)
2013-03-14 20:39:06 [SEVERE] Encountered an unexpected exception IllegalArgumentException
java.lang.IllegalArgumentException: end before start
at javax.swing.JTextArea.replaceRange(Unknown Source)
at in.publish(SourceFile:56)
at java.util.logging.Logger.log(Unknown Source)
at java.util.logging.Logger.doLog(Unknown Source)
at java.util.logging.Logger.log(Unknown Source)
at kh.b(SourceFile:70)
at jk.b(SourceFile:41)
at ie.b(SourceFile:30)
at net.minecraft.server.MinecraftServer.r(SourceFile:480)
at hz.r(SourceFile:255)
at net.minecraft.server.MinecraftServer.q(SourceFile:397)
at net.minecraft.server.MinecraftServer.run(SourceFile:331)
at gp.run(SourceFile:573)
Steps to Reproduce:
1. Have op and creative mode.
2. Chat normally (quickly?). I'm unable to remember exactly how I used the chat.
3. If you're unlucky, Minecraft will send something that results in the above stacktrace in the server log.