astre Search

Bug

A fault with a name older than computers, and one very real moth.

A bug is a fault in a machine, or a mistake in a computer program, that makes it go wrong. One famous bug was a real moth, taped into a logbook.

On 9 September 1947, Harvard’s Mark II computer stopped during a test. The moth was found in relay 70, one of about 13,000 relays in the machine. A relay is a switch worked by electricity. The logbook records the find at 15:45 and calls it the “First actual case of bug being found.”

Page 92 of the Mark II logbook, 9 September 1947, with the moth taped in at 15:45
Page 92 of the Mark II logbook, 9 September 1947, with the moth taped in at 15:45US Navy, public domain

The word “actual” is the joke. In 1878, Thomas Edison had already called little faults and difficulties “bugs”. The same Harvard lab had written about hunting bugs in its Mark I computer in 1944, three years before the moth.

Grace Hopper, a programmer on the team, told the story many times. In her 1982 account, an operator removed the moth and taped it into the book. The book, moth included, is now at the Smithsonian. The word still names a fault you can find and fix.

1878

the year Edison wrote about bugs as faults

Source: juncture-digital.org

9September 1947

the day a moth entered the Mark II logbook

Source: americanhistory.si.edu

about

13,000

relays in the Mark II

Source: archive.computerhistory.org