by lukeadamson · 3y ago · 0 comments
I was working a large project for a wafer fab company, and occasionally the compiler would crash during full builds with SIGILL (illegal instruction, for those who aren’t familiar with the signal). Compiler bugs are never fun, and this was particularly vexing because it was so inconsistent.
It took me awhile, but eventually I got around to thinking: What could cause the compiler to execute an illegal instruction? What could cause an illegal instruction at all?
I removed the outer case from my computer, and sure enough, all of the fans had died. The CPU was overheating during intense, long-running builds. Replaced the fans and the “bug” went away!
*This is my first comment since I created my account in 2009. I hope I did it right! ;-)
[1] https://marcan.st/2017/12/debugging-an-evil-go-runtime-bug/
It was a hand-me-down K6-II with (I think) 233 MHz clock rate. The thing had a tiny fan on top of the cooler that was roughly 4x4cm (if even that). The poor thing generally worked quite nicely, but had stuck bearings so it required a little nudge to spin every time the machine was turned on. I didn't have the side panel on because that was just too much of a hassle and usually would just reach in and start the thing blindly.
I forgot that one day and the machine had been running for about an hour (low load, so nothing too bad). I reached in and promptly gave myself quite a nasty burn blister because I touched the cooler instead of the fan.