diff options
author | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-01-16 03:34:29 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss.ws@gmail.com> | 2013-01-16 03:34:29 +0000 |
commit | 99ce4232cbd440daf89aed3fd98f7f93645c500e (patch) | |
tree | 531a48e6a22ede9fe022e07a87899e21cf898040 /doc | |
parent | 09a476117947936c0a63063c0b838dee5f1efc9b (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')
-rw-r--r-- | doc/rawshark.pod | 6 | ||||
-rw-r--r-- | doc/tshark.pod | 6 | ||||
-rw-r--r-- | doc/wireshark.pod.template | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/doc/rawshark.pod b/doc/rawshark.pod index 69be6aba0d..dcc4dd7902 100644 --- a/doc/rawshark.pod +++ b/doc/rawshark.pod @@ -432,6 +432,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 diff --git a/doc/tshark.pod b/doc/tshark.pod index 961ef0102f..d47d43417c 100644 --- a/doc/tshark.pod +++ b/doc/tshark.pod @@ -1547,6 +1547,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 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 |