News for hackers. Stuff that matters.
Re:A C Heisenbug in the wild by Swannie on Sunday June 12, 2011 @06:49PM (#2647595)
Doesn't surprise me if it's in a 20k loc program. Very easy to overlook the obvious.

That said, like the previous comments, if someone had seriously looked for this issue, you'd have hoped they'd have found this pretty quickly.

Re:A C Heisenbug in the wild by to3m on Monday June 13, 2011 @11:27AM (#2649339)
No, that's a fair comment. I have spent a surprising proportion of the past 10 years moving initialization calls from <random problem-causing place> into `main', so whenever I see a call to something like `someinitialization' I just assume it's in `main' along with all of the rest of them.

But it could easily be somewhere creepy and random, and the side-effects a bit hard to spot, making it harder to find.

(Which, of course, is why you should always put all of this stuff in `main' ;)