News for hackers. Stuff that matters.
Re:When you see a Heisenbug in C, change your compiler's opt... by kgabis on Sunday March 02, 2014 @03:41AM (#7328324)
I once had a bug in my program where it would work correctly only on -O3 (not quite correctly, but good enough for me to not notice). After a lot of head scratching I ran clang's static analyzer [0] and it found it to be an uninitialized variable. On -O3 compiler was reusing other variable, which happened to be very close to what I needed.

[0] http://i.imgur.com/lqs4FNn.png

There are no comments on this comment yet.