use MALLOC_PERTURB_ ... or lose

Michal Schmidt mschmidt at redhat.com
Wed May 5 16:24:36 UTC 2010


On Wed, 05 May 2010 17:30:29 +0200 Jim Meyering wrote:
> I propose (seriously, now) to add this to /etc/profile,
> or to some always-sourced file like /etc/profile.d/glibc.sh:
> 
>     # Enable glibc's malloc perturbing feature in Rawhide.
>     # http://udrepper.livejournal.com/11429.html
>     read _f _r _n _code_name < /etc/redhat-release &&
>     case $_code_name in
>         *Rawhide*) export MALLOC_PERTURB_=$((RANDOM % 255 + 1)) ;;
>     esac

Would export MALLOC_CHECK_=3 be a useful addition too?


More information about the devel mailing list