An error in a computer program or in a piece of electronics that causes it to malfunction.