The first bug was a moth that was trapped between the Relay # 70.
The first COBOL specification was created by Grace Hopper, the woman who found a moth (bug) in a system.
Operators looking for the cause of a malfunction in Harvard University's Mark II Aiken Relay Calculator on September 9, 1945 discovered a moth trapped in its innards and Scotch-taped the unfortunate creature to the computer log over a caption reading, 'First actual case of bug being found.'
Brian trapped the moth under a glass, then released it outside.
Dustox. a moth
On the 9th of September, 1947, when the machine was experiencing problems, an investigation showed that there was a moth trapped between the points of Relay #70, in Panel F. The operators removed the moth and affixed it to the log. The entry reads: "First actual case of bug being found." The word went out that they had "debugged" the machine and the term "debugging a computer program" was born. Although Grace Hopper was always careful to admit that she was not there when it actually happened, it was one of her favorite stories
Indian meal moth
Moth
There is a google article about her 107th birthday (Dec. 9, 2013) where it describes the "bug" that she found while they were testing the computer (Mark I Electromechanical Computing Machine). The anecdotal story is that the moth they found was a bug and that they debugged the machine.
1947 for a moth smashed in relay of Harvard Mark II. It shut it down.
wack it with something
Grace Hopper, USN. It was actually a moth that got caught between the contacts of relay #70 on panel F in an electromechanical computer at Harvard and got beaten to death. She found it taped it into the logbook with the problem description written by the technicians who had found and fixed the problem the night before. She added to their description "First actual case of bug being found.", but she was not the one that actually found it in the machine.
The word "bug" in computer terminology refers to an unexpected glitch that a program may execute by accident. The first computer bug was an actual bug! I forget how the story goes, but one day someone was opening up their computer to fix it because something was wrong with it, and they found a dead moth inside!