idiot loop
Phrase describing the stupidity of repeating the same mistake over and over. Derived from the concept of endless loops in software programming. Also refers to insane obsessions. See Groundhog Day Effect.
The bulge in Robert's pants drove Sheila into an idiot loop.