Skip to content
Bill Torpey edited this page Aug 27, 2019 · 4 revisions

vmc.sh - valgrind memory check

Format & filter valgrind memory error reports

Usage

vmc.sh [-f] [-g] [-v] [-t] [-k keepFile] [-d discardFile] {files}
Parameter Description
-f Filter output to contain only relevant stack traces. Default is to include all memory error reports.
-g Output debug messages.
-v Verbose output. (Report even if all memory errors suppressed).
-t Process input files in sorted order based on timestamp. Default is to assume input files are named in the form xxxxxxx-<pid>.* and to sort files numerically by the value of <pid>, which is typically the order in which processes are started, and should therefore facilitate comparing different runs.
-k File containing regex's and/or md5 hashes of stacks that should be kept. If specified, a stack entry must match in order to be included in the report.
You can also use the VMC_KEEP environment variable to specify the file.
If not specified, the script will search for a file named "vmc.keep" in the current directory, and the directory from which the script was loaded.
If no keep entries are specified, all stack entries are potentially included in the report. (See below for more).
-d File containing regex's and/or md5 hashes of stacks that should be discarded.
You can also use the VMC_DISC environment variable to specify the file.
If not specified, the script will search for a file named "vmc.disc" in the current directory, and the directory from which the script was loaded.
A stack entry that matches a discard specification is discarded, even if matches any "keep" entries.
If no discard entries are specified, no stack entries are discarded.

Example

vmc.sh -f valgrind*.out
Clone this wiki locally