Cross conduction in class-B power amplifier
The MOSFETs don't immediately switch, and they won't both switch at exactly the same time. There is a period when both are 'on' and as such you get shoot through. 

You need to drive the gates independently with some dead time to eliminate it.