Because of some bug in the collision of chickens or walls the entity will get stuck in the wall.
Steps to reproduce
1. Place piston in a 1x2x3 blocks hole
2. Place wall after the piston
3. Summon chicken
4. Pull the lever or press the button added to the piston