Fact Cafe
72

The First Computer Bug Was Real

Learn More

The First Computer Bug Was Real

While the term "bug" had been used by engineers since the 19th century to describe small, inexplicable flaws in machinery, its permanent association with computing stems from a much more literal incident. In the post (Review)-WWII era, computers were not sleek silicon devices but massive, room-sized electromechanical machines. The Harvard Mark II, for instance, used thousands of clicking relays and glowing vacuum tubes to perform calculations. These warm, well-lit environments proved to be an inviting habitat for more than just human operators.

On September 9, 1947, the Mark II began to malfunction. A team of technicians, including pioneering computer scientist Grace Hopper, investigated the machine's complex inner workings to find the source of the error. They eventually traced the problem to a specific panel, where they discovered a dead moth trapped between the points of an electromechanical relay. The insectโ€™s body was physically blocking the circuit from closing, causing the operational failure.

The team carefully removed the moth with tweezers and, with a sense of humor, taped it into their official logbook. Alongside the specimen, they wrote the now-famous note: "First actual case of bug being found." This tangible example, popularized by Hopper in her many talks, cemented the terms "bug" and "debugging" into the lexicon of computer science. It serves as a fascinating reminder that the vocabulary for our modern software glitches originated from a simple, physical pest in the gears of a mechanical brain.