Re:Ask HN: What is the funniest bug you encountered?
by JeanMarcS on Monday November 27, 2017 @06:24PM
(#15792723)
A classic one ! Once I did the same one, just an echo in a php page. It was at the bottom of the page, after the footer. It was a job for a web designer I was helping.
It's his son who saw it. So we removed it before the client (or anyone, it was in production) feedback to us.
Bullet dodged !
A week later, our dev team gets sent a chain email with two screenshots, and a brief comment from the lead saying "This should never happen." In the first screenshot, was my "What" popup. I didn't need to see the second one.
Turns out, when I moved on to other tickets, I completely forgot I had left that code just lying there, instead of discarding it, and had even pushed it with nary a thought. Nobody else on the dev team had seen either popup. No one in QA saw them either. And so, it made it all the way to production, where one of our users (mercifully, an in-house one), promptly caught it.
The dept head thought I was committing sabotage, given the very specific set of actions one had to take to see the effect, but thankfully everyone knew that it was too stupid to do something like that via commit into repo! At the least, my frustration at the bug proved justified.