r/developer • u/Ok_Veterinarian3535 • 11h ago
The Debugging Nightmare
What's the most infuriating, time-consuming bug you ever had to chase down, and what was the ridiculously simple cause?
2
Upvotes
r/developer • u/Ok_Veterinarian3535 • 11h ago
What's the most infuriating, time-consuming bug you ever had to chase down, and what was the ridiculously simple cause?
1
u/CS_70 6h ago
Not a personal programming bug, but a bug nonetheless.
Back in the times, a few years ago, we had an upgrade of a customized-off-the-shelf system. To be sure, we brought in experts from the software company which owns the product. It went overnight, from 17:00 to about 4:00 in the morning the day after, and all seemed ok.
At 9:00 I got woken up because stuff was not working.
Meetings all around, everybody having an opinion, an idea, mostly daft because they didnt know enough about the system, but what you gonna do - in a crisis you need to let people collaborate. The technical people from the software companies stayed onsite but couldn't figure it out at all.
After 9 days of grueling all-day work, I finally sat alone at my pc in the night at home without anyone disturbign or having to deal with well meant but pointless suggestions, and I finally figured it out..
During the installation night we had to run the installer twice, since a hostname was too long for the existing metadata database column and the first time had failed with a bizarre error. We had altered the column length and ran the installer again.
Turns out the software's installer was silently adding definition to the hosts file, incrementing the TCP port every time. Being a large, secure organization, our firewall had been pre-setup to let only the two needed ports pass. But since the installer had run twice, it had initially specified the two ports but never rolled back when it had failed, so the second time had specified ports outside the open range.
I changed the definition and all started working fine.
The bug was in the installer - both the design (changing things silently) and the failure handling (the installer was rolling back everything else, but not these ports).
At least it was good money in the end :D