From ae1cc0d932c8bb939fa2037e6183c1ce8f550942 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 27 Nov 2012 22:30:22 +0100 Subject: open_issues/code_analysis: MALLOC_CHECK_, MALLOC_PERTURB_. --- open_issues/code_analysis.mdwn | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'open_issues/code_analysis.mdwn') diff --git a/open_issues/code_analysis.mdwn b/open_issues/code_analysis.mdwn index fd8a36de..b3908243 100644 --- a/open_issues/code_analysis.mdwn +++ b/open_issues/code_analysis.mdwn @@ -103,18 +103,25 @@ There is a [[!FF_project 276]][[!tag bounty]] on some of these tasks. * - * IRC, freenode, #glibc, 2011-09-28 - - two things you can do -- there is an environment variable - (DEBUG_MALLOC_ iirc?) that can be set to 2 to make ptmalloc (glibc's - allocator) more forceful and verbose wrt error checking - another is to grab a copy of Tor's source tree and copy out - OpenBSD's allocator (its a clearly-identifyable file in the tree); - LD_PRELOAD it or link it into your app, it is even more aggressive - about detecting memory misuse. - third, Red hat has a gdb python plugin that can instrument - glibc's heap structure. its kinda handy, might help? - MALLOC_CHECK_ was the envvar you want, sorry. + * `MALLOC_CHECK_`/`MALLOC_PERTURB_` + + * IRC, freenode, #glibc, 2011-09-28 + + two things you can do -- there is an environment + variable (DEBUG_MALLOC_ iirc?) that can be set to 2 to make + ptmalloc (glibc's allocator) more forceful and verbose wrt error + checking + another is to grab a copy of Tor's source tree and copy + out OpenBSD's allocator (its a clearly-identifyable file in the + tree); LD_PRELOAD it or link it into your app, it is even more + aggressive about detecting memory misuse. + third, Red hat has a gdb python plugin that can + instrument glibc's heap structure. its kinda handy, might help? + MALLOC_CHECK_ was the envvar you want, sorry. + + * [`MALLOC_PERTURB_`](http://udrepper.livejournal.com/11429.html) + + * * In context of [[!message-id "1341350006-2499-1-git-send-email-rbraun@sceen.net"]]/the `alloca` issue -- cgit v1.2.3