I wanted to try to make horse(not donkey) wear a chest, so I entered this command: /entitydata @e[type=EntityHorse,r=2] {ChestedHorse:1}
But I was riding this horse at the moment. And couple of seconds after I pressed Enter we both went deep under the ground and died.
As per MC-16234: