summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2003-08-23 01:28:18 +0200
committerJarkko Hietaniemi <jhi@iki.fi>2003-08-23 06:54:58 +0000
commitd44161bfbb2e964e9675634d6bf5e566d1d1d4f7 (patch)
tree590de0973aeaccd95d91cbd314ce60376a1f5538 /pod/perlhack.pod
parente1920a95a06e34fabf978d00a54622a2574daca7 (diff)
downloadperl-d44161bfbb2e964e9675634d6bf5e566d1d1d4f7.tar.gz
Re: valgrind as a leak hound?
From: "Marcus Holland-Moritz" <mhx-perl@gmx.net> Message-ID: <002201c368f4$4e5a5e40$0c2f1fac@R2D2> Add the leak detection to valgrind testing. p4raw-id: //depot/perl@20850
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 3214b330d3..08a9906f45 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -2075,13 +2075,13 @@ simply kill away that testing process.
The excellent valgrind tool can be used to find out both memory leaks
and illegal memory accesses. As of August 2003 it unfortunately works
only on x86 (ELF) Linux. The special "test.valgrind" target can be used
-to run the tests under valgrind. Note that in the test script (t/TEST)
-currently (as of Perl 5.8.1) only naughty memory accesses are logged,
-not memory leaks. Found errors are logged in files named F<test.valgrind>.
-Also note that with Perl built with ithreads, the glibc (at least 2.2.5)
-seems to have a bug of its own, where a non-locked POSIX mutex is
-unlocked, and valgrind catches this, for every test-- therefore the
-test script ignores that error.
+to run the tests under valgrind. Found errors and memory leaks are
+logged in files named F<test.valgrind>.
+
+As system libraries (most notably glibc) are also triggering errors,
+valgrind allows to suppress such errors using suppression files. The
+default suppression file that comes with valgrind already catches a lot
+of them. Some additional suppressions are defined in F<t/perl.supp>.
To get valgrind and for more information see