Bug (engineering) - Wikipedia
https://en.wikipedia.org/wiki/Bug_(engineering)#History
"...The term bug to describe a defect has been engineering jargon since at least as far back as the 1870s, long before electronic computers and computer software. For instance, Thomas Edison wrote the following words in a letter to an associate in 1878: ..."(略><)
https://en.wikipedia.org/wiki/Bug_(engineering)#History
'... While Hopper was working on the Mark II and Mark III as Harvard faculty in about 1947, operators traced an error in the Mark II to a moth trapped in a relay. The moth was removed from the mechanism and taped in a log book with the note "First actual case of bug being found." ...'