If you describe someone's behaviour as masochistic, you mean that they seem to be trying to get into a situation which causes them suffering or great difficulty. It seems masochistic, somehow. sadistic see also sado-masochistic
Masochistic behaviour involves a person getting sexual pleasure from their own pain or suffering. his masochistic tendencies. sadistic