SpigotMC/Spigot — pull request #151 by Dmck2b (2014-04-20 23:51:50+00:00)
Title: Fix a NoClassDefError crash by swallowing a stackoverflow

Currently physics overloads (especially those caused by illegal blocks placements, eg floating snow) are handled badly my the MC code. It attempts to call a crash report as expected, but is seemingly impossible to get it to work without calling a stackoverflow or just getting a NoClassDefFoundError.

While toying around, I accidentally commented out too much and found that the server continues on if you just swallow the issue. The physics operation doesn't fully finish, but the server is seemingly fine, not timing out as might be expected.

Test package including test world, the test jar and a random announcer plugin (to show that plugins are seemingly fine). https://mega.co.nz/#!x0xQyLpC!Dzg40CYDk9IgfLKkEo5-IbKPHFR41KeRrhnq0C2KZcE

You'll spawn in on a snow platform, breaking snow with the jar included just causes a section, but not all of it, to be destroyed and the server carrys on as normal. Using a normal jar, the server will crash with a NoClassDefFoundError without a watchdog and no indication as to where the error occurred.