From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: please set both MALLOC_PERTURB_ and MALLOC_CHECK_ envvars Date: Sat, 28 May 2011 16:19:45 -0400 Message-ID: <87tyceo9we.fsf@stupidchicken.com> References: <874o4fx17z.fsf@rho.meyering.net> <87y61rvmaz.fsf@rho.meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1306613996 26858 80.91.229.12 (28 May 2011 20:19:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 May 2011 20:19:56 +0000 (UTC) Cc: Emacs development discussions To: Jim Meyering Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 28 22:19:52 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QQPzE-0007fi-6l for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 22:19:52 +0200 Original-Received: from localhost ([::1]:47301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQPzD-0002qa-Or for ged-emacs-devel@m.gmane.org; Sat, 28 May 2011 16:19:51 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:35466) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQPzB-0002qV-OI for emacs-devel@gnu.org; Sat, 28 May 2011 16:19:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQPzA-0000wa-Ky for emacs-devel@gnu.org; Sat, 28 May 2011 16:19:49 -0400 Original-Received: from vm-emlprdomr-03.its.yale.edu ([130.132.50.144]:34627) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQPzA-0000wW-J9 for emacs-devel@gnu.org; Sat, 28 May 2011 16:19:48 -0400 Original-Received: from furball (c-71-192-165-84.hsd1.ct.comcast.net [71.192.165.84]) (authenticated bits=0) by vm-emlprdomr-03.its.yale.edu (8.14.4/8.14.4) with ESMTP id p4SKJjUG021382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 May 2011 16:19:46 -0400 Original-Received: by furball (Postfix, from userid 1000) id 4A44716031F; Sat, 28 May 2011 16:19:45 -0400 (EDT) In-Reply-To: <87y61rvmaz.fsf@rho.meyering.net> (Jim Meyering's message of "Fri, 27 May 2011 23:57:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Scanned-By: MIMEDefang 2.71 on 130.132.50.144 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 130.132.50.144 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:139852 Archived-At: Jim Meyering 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?