In engineering, a bug is a design defect in an engineered system that causes an undesired result.
A page from the Harvard Mark II electromechanical computer's log, featuring a dead moth that was removed from the device.
A glitch is a short-lived fault in a system, such as a transient fault that corrects itself, making it difficult to troubleshoot. The term is particularly common in the computing and electronics industries, in circuit bending, as well as among players of video games. More generally, all types of systems including human organizations and nature experience glitches.
A computer affected by a visual glitch
The start-up screen of the Virtual Boy is affected by a visual glitch.