Spending an excessive amount of time investigating the source of a problem but making absolutely no progress; the most maddeningly frustrating of troubleshooting sessions.
I spent what seemed like forever struggleshooting a bug in my computer program's source code before I just gave up and found a new career.