The moral of the story is: anytime you think something's happening for no reason ... there's a reason.
The second moral of the story is: anytime you think the error is in a driver, tool, or OS component ... it's in your code.
Of course there are exceptions (we've all had fun with buggy OpenGL drivers) but these are good guidelines and should always be the first line of attack when dealing with errors or weird behaviours.