Actually in Brazil recently they had a guy arrested for offending a supreme court judge.

There is currently a political movement suing to remove the judge for power abuse, but I am not following it a lot.

I live in the Netherlands now, but I can't really tell, since I don't vote and I am still learning dutch. Still I would bet a lot of money that this does not happen here, since people (at least the ones I know) are very much into freedom of speech.