-
Notifications
You must be signed in to change notification settings - Fork 0
Valgrind notes
Aleksey Midenkov edited this page Oct 7, 2018
·
1 revision
valgrind \
--undef-value-errors=no \
--log-file=leaks.log \
--num-callers=30 \
--leak-check=full \
--track-origins=no \
"$@"
- Reachable blocks (those to which a pointer was found) are not shown.
To see them, rerun with:--leak-check=full --show-reachable=yes
- Use
--undef-value-errors=no
to disable conditional jump and other undef value usage display.
valgrind \
--leak-check=no \
--track-origins=yes \
--log-file=corruptions.log \
--num-callers=30 \
"$@"
- Use
--track-origins=yes
to see where uninitialised values come from.--track-origins
is slow. First time run slow tests without it.
{
<1>
Memcheck:Leak
...
fun:OCIEnvCreate
}
{
<2>
Memcheck:Cond
...
fun:OCIEnvCreate
}
- Use
--demangle=no
to get mangled names (suppressions doesn't work with demangled names). - Suppressions format manual