The only way for errors to occur in a program is by being put there by the author. No other mechanisms are known.