aboutsummaryrefslogtreecommitdiffstats
path: root/doc/wireshark.pod.template
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss.ws@gmail.com>2013-01-16 03:34:29 +0000
committerJeff Morriss <jeff.morriss.ws@gmail.com>2013-01-16 03:34:29 +0000
commit99ce4232cbd440daf89aed3fd98f7f93645c500e (patch)
tree531a48e6a22ede9fe022e07a87899e21cf898040 /doc/wireshark.pod.template
parent09a476117947936c0a63063c0b838dee5f1efc9b (diff)
As suggested in comments in sl_alloc() and sl_free(): add a new environment
variable (WIRESHARK_DEBUG_USE_SLICES) which turns off the slab allocator and uses g_slices instead (which can themselves be turned off by setting G_SLICE=always-malloc). This makes debugging problems in slab-allocated memory easier to find (hopefully including https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8197 ). Set WIRESHARK_DEBUG_USE_SLICES when running Valgrind on *shark. Remove unused structure member: emem_chunk_t.org. svn path=/trunk/; revision=47110
Diffstat (limited to 'doc/wireshark.pod.template')
-rw-r--r--doc/wireshark.pod.template6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/wireshark.pod.template b/doc/wireshark.pod.template
index 96f19e03a5..fa3a8dadac 100644
--- a/doc/wireshark.pod.template
+++ b/doc/wireshark.pod.template
@@ -2735,6 +2735,12 @@ per-file memory is initialized to 0xBADDCAFE when the memory is allocated
and is reset to 0xDEADBEEF when the memory is freed. This functionality is
useful mainly to developers looking for bugs in the way memory is handled.
+=item WIRESHARK_DEBUG_USE_SLICES
+
+Exporting this environment variable causes slab allocations to be done using
+glib's g_slice routines. This, combined with glib's G_SLICE=always-malloc
+setting, can help developers looking for bugs in the way memory is handled.
+
=item WIRESHARK_RUN_FROM_BUILD_DIRECTORY
This environment variable causes the plugins and other data files to be loaded