Crazy, mad. Also as adverb, esp emphatically in barking mad, utterly mad. (1968 —) . R.Ingrams It was considered perfectly in order for a man who was clearly barking mad to sit for many years dispensing justice to his fellow citizens (1984).
[From the image of barking like a mad or uncontrollable dog.]