[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: please set both MALLOC_PERTURB_ and MALLOC_CHECK_ envvars
From: |
Chong Yidong |
Subject: |
Re: please set both MALLOC_PERTURB_ and MALLOC_CHECK_ envvars |
Date: |
Sat, 28 May 2011 16:19:45 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Jim Meyering <address@hidden> writes:
>> If you develop emacs, or even if you just build from sources regularly,
>> on a glibc-based system, do us all a favor and build with these envvar
>> settings:
>>
>> export MALLOC_PERTURB_=$((RANDOM % 255 + 1))
>> export MALLOC_CHECK_=3
>>
>> Why? Because that helps you expose malloc-related problems far earlier.
>> I've found numerous bugs that way.
>
> Most of that argument is valid, but I have to confess this time
> a compiler problem appears to be at fault.
> [...]
> gcc version 4.7.0 20110528 (experimental) (GCC)
>
> everything works fine, and yes!, even with these envvar settings:
>
> MALLOC_PERTURB_=117
> MALLOC_CHECK_=3
>
> So at least for a little while, I'll be using that.
Maybe we should add these environment variables to the Hydra build. But
what to use for MALLOC_PERTURB---117, or the value in your previous
message?
Re: please set both MALLOC_PERTURB_ and MALLOC_CHECK_ envvars, Paul Eggert, 2011/05/29