Skip to content

Commit

Permalink
removed old tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
Gray Watson committed Nov 20, 2020
1 parent d7177f7 commit f8f0ddf
Showing 1 changed file with 21 additions and 28 deletions.
49 changes: 21 additions & 28 deletions dmallocrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Rename this to .dmallocrc and place in your $HOME directory to
# activate. See dmalloc.info for more information.
#
# $Id: dmallocrc,v 1.32 1998/11/12 21:42:31 gray Exp $
#

#
# This file maps tags to certain combinations of debug tokens. The
Expand All @@ -27,88 +29,79 @@
#
# log-stats log general statistics
# log-non-free log non-freed memory pointers on shutdown
# log-known log only known non-freed memory pointers
# log-trans log memory transactions
# log-admin log full administrative information
# log-blocks log detailed block information in heap_map
# log-unknown log unknown non-freed memory pointers too
# log-bad-space log actual bytes from bad pointers
# log-nonfree-space log actual bytes in non-freed pointers
# log-elapsed-time log elapsed-time for allocated pointer
# log-current-time log current-time for allocated pointers
#
# check-fence check fence-post areas
# check-heap do general heap checking
# check-lists verify internal heap linked-lists
# check-blank check to see if blank space is overwritten
# check-funcs check the arguments of some routines
# check-shutdown check heap on shutdown
#
# catch-signals shutdown the library on SIGHUP, SIGINT, SIGTERM
# realloc-copy always copy data to a new pointer when realloc
# free-blank overwrite space that is freed
# error-abort abort the program (and dump core) on errors
# alloc-blank blank space that is to be alloced
# heap-check-map log a heap-map every time the heap is checked
# print-messages print errors and messages to STDERR
# catch-null abort program if library can't get sbrk space
# never-reuse never reuse memory that has been freed
# allow-nonlinear allow non-linear heap space
# allow-free-null allow the freeing of NULL pointers
# error-dump dump core on error and then continue
# allow-free-null allow the freeing of NULL pointers
#

# no debugging (for disabling memory checking)
none none

# basic runtime tests
runtime log-stats, log-non-free, log-blocks, log-bad-space, \
log-unknown, \
runtime log-stats, log-non-free, log-bad-space, \
check-fence, \
catch-null

# minimal checking
low log-stats, log-non-free, log-blocks, log-bad-space, \
log-unknown, log-elapsed-time, \
low log-stats, log-non-free, log-bad-space, log-elapsed-time, \
check-fence, \
free-blank, error-abort, alloc-blank, catch-null

# significant checking
medium log-stats, log-non-free, log-blocks, log-bad-space, \
log-unknown, log-elapsed-time, \
check-fence, check-heap, check-lists, \
medium log-stats, log-non-free, log-bad-space, log-elapsed-time, \
check-fence, check-heap, \
realloc-copy, free-blank, error-abort, alloc-blank, \
catch-null

# extensive checking
high log-stats, log-non-free, log-blocks, log-bad-space, \
log-unknown, log-elapsed-time, \
check-fence, check-heap, check-lists, check-blank, \
check-funcs, \
high log-stats, log-non-free, log-bad-space, log-elapsed-time, \
check-fence, check-heap, check-blank, check-funcs, \
realloc-copy, free-blank, error-abort, alloc-blank, \
catch-null

# full logging of statistics
log log-stats, log-non-free, log-trans, log-admin, log-blocks, \
log-unknown, log-bad-space, log-elapsed-time, \
log log-stats, log-non-free, log-trans, log-admin, log-bad-space, \
log-elapsed-time, \
check-fence, \
catch-null

# immediate logging of problems in a text-based programs
text log-bad-space, log-unknown, \
text log-bad-space, \
check-fence, \
catch-null, print-messages

# full logging of statistics in text programs
verbose log-stats, log-non-free, log-trans, log-admin, log-blocks, \
log-unknown, log-bad-space, log-elapsed-time, \
verbose log-stats, log-non-free, log-trans, log-admin, log-bad-space, \
log-elapsed-time, \
check-fence, \
catch-null, print-messages

# the kitchen-sink minus a couple special tokens:
# log-current-time, print-messages, allow-nonlinear, allow-free-null,
# log-known, log-current-time, print-messages, allow-free-null,
# error-dump
all log-stats, log-non-free, log-trans, log-admin, log-blocks, \
log-unknown, log-bad-space, log-elapsed-time, \
check-fence, check-heap, check-lists, check-blank, \
check-funcs, \
all log-stats, log-non-free, log-trans, log-admin, log-bad-space, \
log-elapsed-time, \
check-fence, check-heap, check-blank, check-funcs, \
catch-signals, realloc-copy, free-blank, error-abort, \
alloc-blank, heap-check-map, catch-null, never-reuse
alloc-blank, catch-null, never-reuse

0 comments on commit f8f0ddf

Please sign in to comment.