If you have an armorstand with ShowArms:1b then you can place any item in there and then break it, it will drop an absolutely identical item. You can then drop all the original items and the duplicate will show a red 0. If the item can be used (Armor Stand, Food, Ender Pearls, etc, probably blocks too, haven't tested) you can use it and it will decrement the item's value to -1 and so on.
Demonstration Video: https://youtu.be/ClgpRPlxqnI
Linked issues
Comments 3
By the way, this isn't really a duplicate, because my point is that you can cause infinite item stcks to happen, while the "duplicate" is that the client crashes. I would mark this as related, but because it's fixed, I don't really care whatever this is marked as.
Actually duplicate of MC-93597.
Fixed in 15w49b.