in reply to I need a "non-trivial" bug for my script!

The silent and sporadic errors are the nasty ones (from my PoV). Some ideas:

Is this approach intended to test a maintenance programmer? Maybe I got something wrong, but I feel a little bit uncomfortable with the approach of laying out a code-minefield. Wouldn't it be more constructive to give the candidate a task to start from scratch? ... or to find an alternative solution to the already solved problem? ... or let her/him optimise/refactor the script concerning speed/memory/code-formatting/robustness? ... turn a script into a module? ... wrap a GUI around it? ...