r/softwaretesting • u/zaphodikus • Oct 27 '26
When a bug suddenly disappears
Spent a fair bit of time looking at a slow startup issue last week. 2 other people saw the issue on their PCs. One of them even built from source and encountered a first time startup delay of about a minute. If you install it always take 1 minute, and after that its fast again. Its not even an installer issue because the install merely unzips a folder. So today i decide to debug. After the first run, its literally 1 second, so clearly I wanted to work out why.
I broke out wireshark and the file monitor and the bug just hides, I reboot, I rebuild, still launches in 1 second flat. What do you guys do when a bug that always reproduced just vanishes... cry?
Commiserate, im not expecting pointers just cry with me a moment.
1
u/zaphodikus 29d ago
Tools like VMs that you can snapshot or just rebuild quickly have made our lives so much less painful. Remembering to snapshot helps.
Even if you never become an expert at Wireshark, or at the performance profiling tools, knowing they exist and how to get them running can be enough to clue to where a bug is. Some of the hardest ones are bugs where they are fatal, but are long running to reproduce. So lately I like writing proper stress apps that rattle about inside of a API to randomly find bugs that point to other bugs that are the root causes. But fuzz testing is still frowned on by people, and the bugs they find can be huge red herrings. My best one was a cryptography crash that was causing a memory corruption so hard it broke enough memory to cook the debugger. We had to upgrade the regulator circuit between the memory and cpu clock circuits. Took 2 months to find.
5
u/bostonaholic Oct 27 '26
Heisenbugs are the worst. The annoying part with first-run bugs is that reproducing it destroys the repro, so next time I'd grab a VM snapshot or a fresh user profile before launching so you can reset and try again. My money's on antivirus scanning the freshly unzipped folder on first launch.
2
u/Suremerr 25d ago
The repro gaslighting is the worst part - it demonstrated once and now it acts like you imagined the whole thing. Had a first-run-slow-then-fast one like that turn out to be the AV doing an on-access scan of the fresh exe, never to be seen again after day one. But yeah, mostly crying.
0
u/[deleted] 25d ago
[removed] β view removed comment
0
u/[deleted] 25d ago
[removed] β view removed comment