Both the Army and Marine Corps are checking their M4 carbines and M16 rifles for a malfunction with the selector switch that causes the weapons to fire without soldiers or Marines pulling the trigger.