An error or flaw in software that causes it to behave unexpectedly or incorrectly. Used in software testing and debugging to identify and fix issues in programs.
Example:
A login page crashes when a user enters special characters — a developer reports it as a bug.