Hacker News new | ask | show | jobs
by jalbertoni 1264 days ago
Reminds me of what we dubbed "the cosmic ray incident."

During college, we were arranged in groups of 2 or 3 to do some pair programming for the more complicated exercises.

I had attached the debugger and had set a variable to 99, so the loop would execute one more time and we could test if our changes would work.

Went through the instructions step by step, and suddenly we got a segmentation fault. Between setting it to 99 and it accessing some data later on, the value changed to 107.

Quite a bit of confusion ensued. I made a backup of the executable before recompiling. Running them again, both the new version and the backup worked perfectly. The files matched bit for bit. To this day we have no idea what caused that bit flip.