masochistic

adjective
  1. deriving pleasure or satisfaction from one’s own pain or suffering
  2. Usage: psychology
  3. characterized by behavior that seems to invite suffering or hardship
  4. Usage: informal

Examples