Have you encountered Heisenbug? These are the bugs that disappear when you try to watch them — e.g. the code runs just fine in a debugger or with extra logging turned on. Timing issues are usually at fault.
(I first heard it from a coworker in QA, though I believe it was not original to him.)