general valgrind monitor commands: help [debug] : monitor command help. With debug: + debugging commands v.wait [] : sleep (default 0) then continue v.info all_errors : show all errors found so far v.info last_error : show last error found v.info location : show information about location v.info n_errs_found [msg] : show the nr of errors found so far and the given msg v.info open_fds : show open file descriptors (only if --track-fds=yes) v.kill : kill the Valgrind process v.set gdb_output : set valgrind output to gdb v.set log_output : set valgrind output to log v.set mixed_output : set valgrind output to log, interactive output to gdb v.set merge-recursive-frames : merge recursive calls in max frames v.set vgdb-error : debug me at error >= memcheck monitor commands: xb [] prints validity bits for (or 1) bytes at bit values 0 = valid, 1 = invalid, __ = unaddressable byte Then prints the bytes values below the corresponding validity bits in a layout similar to the gdb command 'x /xb ' Example: xb 0x........ 10 get_vbits [] Similar to xb, but only prints the validity bytes by group of 4. make_memory [noaccess|undefined |defined|Definedifaddressable] [] mark (or 1) bytes at with the given accessibility check_memory [addressable|defined] [] check that (or 1) bytes at have the given accessibility and outputs a description of leak_check [full*|summary|xtleak] [kinds kind1,kind2,...|reachable|possibleleak*|definiteleak] [heuristics heur1,heur2,...] [increased*|changed|any] [unlimited*|limited ] * = defaults xtleak produces an xtree full leak result in xtleak.kcg.%p.%n where kind is one of: definite indirect possible reachable all none where heur is one of: stdstring length64 newarray multipleinheritance all none* Examples: leak_check leak_check summary any leak_check full kinds indirect,possible leak_check full reachable any limited 100 block_list |.. [unlimited*|limited ] [heuristics heur1,heur2,...] after a leak search, shows the list of blocks of (or of the range ..). With heuristics, only shows the blocks found via heur1,heur2,... * = defaults who_points_at [] shows places pointing inside (default 1) bytes at (with len 1, only shows "start pointers" pointing exactly to , with len > 1, will also show "interior pointers") xtmemory [] dump xtree memory profile in (default xtmemory.kcg.%p.%n) general valgrind monitor commands: help [debug] : monitor command help. With debug: + debugging commands v.wait [] : sleep (default 0) then continue v.info all_errors : show all errors found so far v.info last_error : show last error found v.info location : show information about location v.info n_errs_found [msg] : show the nr of errors found so far and the given msg v.info open_fds : show open file descriptors (only if --track-fds=yes) v.kill : kill the Valgrind process v.set gdb_output : set valgrind output to gdb v.set log_output : set valgrind output to log v.set mixed_output : set valgrind output to log, interactive output to gdb v.set merge-recursive-frames : merge recursive calls in max frames v.set vgdb-error : debug me at error >= debugging valgrind internals monitor commands: v.do expensive_sanity_check_general : do an expensive sanity check now v.info gdbserver_status : show gdbserver status v.info memory [aspacemgr] : show valgrind heap memory stats (with aspacemgr arg, also shows valgrind segments on log output) v.info exectxt : show stacktraces and stats of all execontexts v.info scheduler : show valgrind thread state and stacktrace v.info stats : show various valgrind and tool stats v.info unwind [] : show unwind debug info for .. v.set debuglog : set valgrind debug log level to v.set hostvisibility [yes*|no] : (en/dis)ables access by gdb/gdbserver to Valgrind internal host status/memory v.translate [] : debug translation of with (default traceflags 0b00100000 : show after instrumentation) An additional flag 0b100000000 allows to show gdbserver instrumentation memcheck monitor commands: xb [] prints validity bits for (or 1) bytes at bit values 0 = valid, 1 = invalid, __ = unaddressable byte Then prints the bytes values below the corresponding validity bits in a layout similar to the gdb command 'x /xb ' Example: xb 0x........ 10 get_vbits [] Similar to xb, but only prints the validity bytes by group of 4. make_memory [noaccess|undefined |defined|Definedifaddressable] [] mark (or 1) bytes at with the given accessibility check_memory [addressable|defined] [] check that (or 1) bytes at have the given accessibility and outputs a description of leak_check [full*|summary|xtleak] [kinds kind1,kind2,...|reachable|possibleleak*|definiteleak] [heuristics heur1,heur2,...] [increased*|changed|any] [unlimited*|limited ] * = defaults xtleak produces an xtree full leak result in xtleak.kcg.%p.%n where kind is one of: definite indirect possible reachable all none where heur is one of: stdstring length64 newarray multipleinheritance all none* Examples: leak_check leak_check summary any leak_check full kinds indirect,possible leak_check full reachable any limited 100 block_list |.. [unlimited*|limited ] [heuristics heur1,heur2,...] after a leak search, shows the list of blocks of (or of the range ..). With heuristics, only shows the blocks found via heur1,heur2,... * = defaults who_points_at [] shows places pointing inside (default 1) bytes at (with len 1, only shows "start pointers" pointing exactly to , with len > 1, will also show "interior pointers") xtmemory [] dump xtree memory profile in (default xtmemory.kcg.%p.%n) monitor command request to kill this process