On Fri, Feb 11, 2011 at 4:07 AM, Steven Bellens wrote: > I was using #ifdef NDEBUG statements to print out debug information, > but already commented those out and the result is the same. Maybe there's a hidden assert()ion with side effects. Have you tried building in release mode but without -DNDEBUG? The "RelWithAsserts" build type should do that.