I had similarly painful experiences. Also the project I was on was mostly in maintenance mode, with mostly junior engineers out of college on it who had little experience with that particular code. Not many tests. Lots of code archaeology and "I'm crossing my fingers I didn't just break some subset of the enormous configuration space of this tool"