Mojira Archive
MC-17093

Player inducible stack overflow

1. Find a large enough area to work in. Build a 46x1x46 (XxYxZ) patch of dirt/grass.
2. Build a 3 high wall around the area.
3. Cover/cap the area with glowstone or other lighting source, such that the area is only lit by the lighting source.
4. Grow a garden filling the entire space using materials using NMS's BlockFlower class.
5. Instantly remove lighting source (e.g. a lighting switch invoked via redstone circuit or alike), making the room completely dark – I did this using WorldEdit, but you can just as easily build a contraption that will achieve the same effect with redstone.
6. BlockFlower (tall grass, wheat, sapling, etc. as well I think) will uproot due to darkness, triggering physics update, which triggers block update for adjacent block, which is also a BlockFlower that sees it is too dark, which will uproot, which triggers physics update, etc. etc. etc. for all 2000 or so blocks in there.
7. Due to size of the area, recursion gets too deep, and creates a stack overflow.

Fixed

Andy Huang

2013-06-02, 02:22 AM

2017-05-04, 01:17 AM

2013-06-14, 12:13 PM

0

3

Unconfirmed

crash, crops, flower, overflow, recursion, stack-overflow

Minecraft 1.5.2

Snapshot 13w24b