From 25783842772749400dda1f5574f658cc9ce9773a Mon Sep 17 00:00:00 2001 From: imaginos Date: Tue, 18 Mar 2008 03:00:03 +0000 Subject: [PATCH] documented how to debug with valgrind git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@988 726aef4b-f618-498e-8847-2d620e286838 --- modules/modperl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/modperl.cpp b/modules/modperl.cpp index 94aec0bb..165e47a0 100644 --- a/modules/modperl.cpp +++ b/modules/modperl.cpp @@ -4,6 +4,15 @@ * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 as published * by the Free Software Foundation. + * + * @author imaginos@imaginos.net + * + * NOTE, the proper way to valgrind this module is to compile znc with debug, and do the following ... + * + * PERL_DESTRUCT_LEVEL=2 GLIBCPP_FORCE_NEW=1 valgrind --leak-check=full /path/to/znc + * + * GLIBCPP_FORCE_NEW is an STL env flag to turn of mem pooling, and stops false alarms within stl + * PERL_DESTRUCT_LEVEL is a perl env flag to force the VM to cleanup, this also stops false alarms, but within perl */ #ifdef HAVE_PERL