pinpointing “conditional jump or move depends on uninitialized value(s)” valgrind message

Use the valgrind option –track-origins=yes to have it track the origin of uninitialized values. This will make it slower and take more memory, but can be very helpful if you need to track down the origin of an uninitialized value. Update: Regarding the point at which the uninitialized value is reported, the valgrind manual states: It is important to … Read more