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: 22.0.99 emacs dumper (?) problem Date: 20 May 2007 23:26:46 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179718020 30493 80.91.229.12 (21 May 2007 03:27:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 May 2007 03:27:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chip Coldwell Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 05:26:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HpyXx-0001DK-FS for ged-emacs-devel@m.gmane.org; Mon, 21 May 2007 05:26:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpyXw-000125-Kj for ged-emacs-devel@m.gmane.org; Sun, 20 May 2007 23:26:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpyXr-0000zE-Pb for emacs-devel@gnu.org; Sun, 20 May 2007 23:26:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpyXr-0000yp-Dh for emacs-devel@gnu.org; Sun, 20 May 2007 23:26:51 -0400 Original-Received: from biscayne-one-station.mit.edu ([18.7.7.80]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HpyXr-0000FT-3h for emacs-devel@gnu.org; Sun, 20 May 2007 23:26:51 -0400 Original-Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.13.6/8.9.2) with ESMTP id l4L3Qleh025696; Sun, 20 May 2007 23:26:48 -0400 (EDT) Original-Received: from all-night-tool.mit.edu (ALL-NIGHT-TOOL.MIT.EDU [18.7.18.66]) (authenticated bits=56) (User authenticated as cyd@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id l4L3QkR3015037 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 20 May 2007 23:26:47 -0400 (EDT) Original-Received: (from cyd@localhost) by all-night-tool.mit.edu (8.12.9.20060308) id l4L3Qkdm008155; Sun, 20 May 2007 23:26:46 -0400 (EDT) In-Reply-To: Original-Lines: 43 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0.00 X-detected-kernel: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71461 Archived-At: > an emacs binary built using the Fedora 7 build system will seg-fault > immediately when run on a Fedora 7 install. The stack trace shows > an assert failing in the glibc malloc code (usually it's setlocale > invoking malloc); it appears that something about the way the dumper > preserves the malloc state between the dumping emacs and the dumped > emacs isn't quite working. >>From reading the bugzilla entry, it appears that the problem is a set of bugs in glibc that are exposed by the way Emacs uses malloc_set_state. Changing Emacs to avoid this, even if it's possible, will probably delay the Emacs 22.1 release by another year or so, which is undesirable. Therefore, I propose adding the following entry to the Emacs PROBLEMS file. ** Emacs crashes on startup on Fedora Core 7. This appears to be due to a change in the internal format of freed blocks introduced between glibc-2.5.90-21 and glibc-2.5.90-22. As a result, Emacs binaries built using older versions of glibc may crash when run using newer versions of glibc. For details, see https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=239344 Rebuilding Emacs with newer versions of glibc, with the following patch applied to the Emacs source tree, should remove the crashes. --- emacs-22.0.95/src/Makefile.in-save 2007-05-13 11:53:01.000000000 -0700 +++ emacs-22.0.95/src/Makefile.in 2007-05-13 11:53:55.000000000 -0700 @@ -960,7 +960,7 @@ ln temacs${EXEEXT} emacs${EXEEXT} #else #ifdef HAVE_SHM - LC_ALL=C $(RUN_TEMACS) -nl -batch -l loadup dump + MALLOC_MMAP_MAX_=0 LC_ALL=C $(RUN_TEMACS) -nl -batch -l loadup dump #else /* ! defined (HAVE_SHM) */ LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump #endif /* ! defined (HAVE_SHM) */ Are there any objections?