A software bug
is the common term used to describe an error, flaw, mistake, failure, or fault
in a computer program
or system
that produces an incorrect or unexpected result, or causes it to behave in unintended ways. Most bugs arise from mistakes and errors made by people in either a program's source code
or its design, and a few are caused by compilers
producing incorrect code.