What is the meaning of the word "self-flagellation"?

Definitions: