From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: please set both MALLOC_PERTURB_ and MALLOC_CHECK_ envvars Date: Sat, 28 May 2011 22:44:11 -0700 Organization: UCLA Computer Science Department Message-ID: <4DE1DD2B.5020902@cs.ucla.edu> References: <874o4fx17z.fsf@rho.meyering.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1306647863 4338 80.91.229.12 (29 May 2011 05:44:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 May 2011 05:44:23 +0000 (UTC) Cc: Emacs development discussions To: Jim Meyering Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 29 07:44:19 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 1QQYnS-0005hU-Es for ged-emacs-devel@m.gmane.org; Sun, 29 May 2011 07:44:18 +0200 Original-Received: from localhost ([::1]:36906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQYnS-0001ea-2J for ged-emacs-devel@m.gmane.org; Sun, 29 May 2011 01:44:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:57769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQYnP-0001eK-BV for emacs-devel@gnu.org; Sun, 29 May 2011 01:44:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QQYnO-00014B-Fv for emacs-devel@gnu.org; Sun, 29 May 2011 01:44:15 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:49634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QQYnO-00012m-8I for emacs-devel@gnu.org; Sun, 29 May 2011 01:44:14 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 8A99739E8106; Sat, 28 May 2011 22:44:12 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0wDkUJEcoRDW; Sat, 28 May 2011 22:44:11 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id CDFE739E80F0; Sat, 28 May 2011 22:44:11 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 In-Reply-To: <874o4fx17z.fsf@rho.meyering.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 131.179.128.62 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:139869 Archived-At: On 05/27/11 14:50, Jim Meyering wrote: > export MALLOC_PERTURB_=$((RANDOM % 255 + 1)) > export MALLOC_CHECK_=3 > I tried that, on Fedora 14 x86-64, and the Emacs trunk build failed as follows: Compiling language/thai-word.el In toplevel form: language/thai-word.el:10738:5:Error: Memory exhausted--use C-x s then exit and restart Emacs make[2]: *** [language/thai-word.elc] Error 1 make[2]: Leaving directory `/home/eggert/src/gnu/emacs/int-hash/lisp' As near as I can discover, Emacs was fine, but the malloc debugging caused it to use so much more memory that Emacs ran out of memory trying to compile thai-word.el. This is on a host with 8 GiB of RAM. Perhaps there is a real Emacs bug in there somewhere, but I spent a reasonable amount of time looking for it unsuccessfully.