aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/debug
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-07-29 12:09:51 -0400
committerBill Nottingham <notting@redhat.com>2008-07-29 12:09:51 -0400
commit1c27e9e64ba2bec2868da849e86b227b56f03257 (patch)
treeea44fdd5f33cb5769efdd92aad5f10594bbb4803 /sysconfig/debug
parent327cfaeab96ffbec4145648de16d58346d4b3f9a (diff)
downloadinitscripts-1c27e9e64ba2bec2868da849e86b227b56f03257.tar
initscripts-1c27e9e64ba2bec2868da849e86b227b56f03257.tar.gz
initscripts-1c27e9e64ba2bec2868da849e86b227b56f03257.tar.bz2
initscripts-1c27e9e64ba2bec2868da849e86b227b56f03257.tar.xz
initscripts-1c27e9e64ba2bec2868da849e86b227b56f03257.zip
Rename the mcheck stuff to a more generic 'debug' framework.
Diffstat (limited to 'sysconfig/debug')
-rw-r--r--sysconfig/debug13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysconfig/debug b/sysconfig/debug
new file mode 100644
index 00000000..f0c05aae
--- /dev/null
+++ b/sysconfig/debug
@@ -0,0 +1,13 @@
+# MALLOC_CHECK_: should the system (libc) malloc check for memory errors?
+# Used values are:
+# unset: do not check
+# 0: silently ignore errors
+# 1: print diagnostics on stderr when an error is detected
+# 2: call abort when an error is detected
+MALLOC_CHECK_=1
+
+# MALLOC_PERTURB_: initialize cleared memory to the specified value
+MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
+
+# Perform extra sanity checking in the gslice allocator
+G_SLICE=debug-blocks