Man page of Bopmtrace
Section: User Commands (1)
Bopmtrace - Display Bop memory related informations.
bopmtrace < input-file
This program is a filter. It reads on standard input the output of bop memory debugging functions. See bop(3) documentation.
Its writes on standard output the result of its analyze of the input. Its functionnalities are somewhat similar to the GNU mtrace1), but it only analyzes the results of bop allocation/unallocation functions wrappers functions.
Display Bopmtrace version and exit successfully.
Display Bopmtrace usage and exit successfully.
0 ( zero ) unless it crashed or an unrecognized option is entered.
Bopmtrace outputs two sets of lines separated by an empty line. lines are sorted in chronological order in a set.
- Set 1 :
1 line for each unallocation of non allocated memory.
1 line for each duplicate allocation (Two allocations at the same address without an unallocation of the first allocation).
- Set 2 :
1 line for each allocated memory not freed.
Note that reallocs are treated as if they were an unallocation followed by an allocation, thus they don't appear as duplicate allocations.
- Output line format :
[action number] [diagnostic] [address] [infos]
action number : Chronological order of the operation (allocation or unallocation) in the program.
diagnostic : 'Not allocated' or 'Duplicated' or 'Not freed'.
address : Memory address in hexadecimal.
infos : Memory requested size for allocation actions, name of the program, function and line number from which the action originate
This is a simple output of mtrace :
3 Not allocated 08049ea0 src/boph.c bophDel 417
18 Duplicated 08049fd8 12 src/tests/bopleak.c main 64
16 Not Freed 08049fe8 28 src/boph.c bophPut 234
Presume addresses are 32 bits or less.
When there are more than 9,999,999,999 actions, the second set of output lines may not be sorted.
Patrick Davalan. http://patrick.davalan.free.fr/
Send bug reports and suggestions at jigmepema<at>wanadoo.fr
For prehistorical reasons, this is version 2.0.92 of Bopmtrace, but you should consider it as a test version despite the fact that it probably works fine as well.
- EXIT VALUE
- OUTPUT FORMAT.
- SEE ALSO
This document was created by
using the manual pages.
Time: 00:02:27 GMT, February 28, 2005