It happened to my units too. It reminds me of the board game Advanced Squad Leader in which units under heavy fire could become "berserk". In this case they ran towards the enemy in mad furry, trying to attack them in close combat. So when I saw this happen in CM, I said to myself: this game is incredible! I did not think it was a bug.