new feature in valgrind 3.4.0 makes it easy to track _origin_ of "uninitialized values"

Martin Olsson mnemo at
Fri Feb 27 16:37:06 UTC 2009


Valgrind 3.4.0 introduces a really neat feature for finding the reason behind those
pesky "jump/move depends on unintialized memory" errors.

What this new feature does is that it prints the _origin_ of the undefined value
instead of printing a warning when that value is _used_. Normally there is a huge
gap between the origin and the use and that means that with existing valgrind
versions, these warnings can be quiet hard to track down. The new feature makes
them super actionable instead.

This blog post is well worth reading:

Now, I just wish we actually had the stable 3.4.0 version of valgrind in jaunty
(seems we got 3.3.1 right now).

More information about the Ubuntu-devel-discuss mailing list