bcheck - batch utility for Runtime Checking (RTC)
bcheck [ -access | -all | -leaks | -memuse ] [ -o logfile ] [ -q ] [ -s script ] program [ args ]
bcheck, a batch interface to dbx's Runtime Checking (RTC), is a shell script which runs the program under dbx, with any specified args. The RTC error output is placed in the specified logfile, or the default file program.errs. If this file already exists, its contents are overwritten. Although bcheck can perform memory leak checking, memory access checking, memory use checking or all three, the default is to perform leak checking only.
Before running bcheck on a system running the Linux OS, you must set the _DBX_EXEC_32 environment variable.
Perform memory access checking.
Perform memory access and memory leak checking.
Perform memory leak checking only. (Default)
Perform memory use checking, which includes memory leaks checking.
Place the error output in logfile or the default file program.errs.
Make bcheck completely quiet, and return with the same exit status as the 'program'. Useful when you want to use bcheck in scripts, makefiles, and such.
Read in the dbx commands contained in script before execution. Using commands like suppress and dbxenv, you can tailor the error output of bcheck.
Perform leaks checking on hello:
bcheck hello
Perform access checking on mach with the argument:
bcheck -access mach 5
Perform access and memuse checking on 'cc' quietly and exit with normal exit status:
bcheck -all -q cc -c prog.c
Perform access checking on foo, suppressing all rui errors:
echo suppress rui > foo.sup bcheck -access -s foo.sup foo 1