When a command block sets a player's spawnpoint and the player is in a bed at the same time the game crashes. This bug doesn't work when friends are on your world. On realms it will crash the server for around 45 minutes and will rollback.
Steps to Reproduce:
- Get a repeating always active command block and put in it "spawnpoint @a".
- Set time to night.
- Try to enter a bed.
Result: Game crash