Pumpkins and melons can grow into a block with an entity on it, causing it to suffocate
Pumpkins will grow into a block where a dog is standing, and the dog will immediately begin to suffocate. It seems like either the pumpkin should not grow in that block because there is a mob standing on it, or the dog's AI should cause it to move once it starts taking suffocation damage.