[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
valgrind and dynamic modules
- To: OpenLDAP-devel@openldap.org
- Subject: valgrind and dynamic modules
- From: Howard Chu <hyc@symas.com>
- Date: Wed, 02 Mar 2011 13:48:38 -0800
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0b11pre) Gecko/20110130 Firefox/4.0b11pre SeaMonkey/2.1b2pre
Typically I compile slapd with the code for module_kill() commented out when
running under valgrind, because otherwise the symbol info for the modules is
lost when they're unloaded. FYI, this is no longer necessary; there is now a
patch available for valgrind that allows it to track symbols in unloaded modules.
https://bugs.kde.org/show_bug.cgi?id=79362
No idea if it will be accepted or merged as-is but it works for me. (One
potential improvement in this patch would be to tag the symbols that were
unloaded at the time of output.)
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/