Ah, the ever-unpopular
heisenbug.
When I had one of them, it turned out to be an uninitialized variable. Building it with debug zeroed off the variable, and things worked. Mind you, that was my own code, and own mistake.
Best of luck tracking it down!