From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: unexec problem Date: Tue, 05 Feb 2008 22:06:06 +0200 Message-ID: References: <878x20v2ki.fsf@stupidchicken.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1202242088 16963 80.91.229.12 (5 Feb 2008 20:08:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Feb 2008 20:08:08 +0000 (UTC) Cc: cyd@stupidchicken.com, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 05 21:08:30 2008 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 1JMU4O-0007l8-EP for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 21:07:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMU3w-0006k9-8Q for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2008 15:06:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMU3t-0006ji-3w for emacs-devel@gnu.org; Tue, 05 Feb 2008 15:06:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMU3r-0006jE-CP for emacs-devel@gnu.org; Tue, 05 Feb 2008 15:06:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMU3r-0006j5-7M for emacs-devel@gnu.org; Tue, 05 Feb 2008 15:06:31 -0500 Original-Received: from nitzan.inter.net.il ([213.8.233.22]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JMU3n-0007ad-KK; Tue, 05 Feb 2008 15:06:27 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-250-173.inter.net.il [83.130.250.173]) by nitzan.inter.net.il (MOS 3.7.3a-GA) with ESMTP id JBQ34784 (AUTH halo1); Tue, 5 Feb 2008 22:03:31 +0200 (IST) In-reply-to: (message from Richard Stallman on Tue, 05 Feb 2008 03:04:25 -0500) X-detected-kernel: by monty-python.gnu.org: FreeBSD 4.7-5.2 (or MacOS X 10.2-10.4) (2) 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:88298 Archived-At: > From: Richard Stallman > Date: Tue, 05 Feb 2008 03:04:25 -0500 > Cc: emacs-devel@gnu.org > > > When I try to bootstrap, bootstrap-emacs crashes > > in the first call to malloc. Experience shows this is > > usually due to a bug in the unexec mechanism. > > However, unexelf.c is unchanged from Emacs 22. > > > > Since this sort of thing is a big pain to debug, > > does anyone have any clues? > > Is this on the trunk? > > Yes. And it worked a week ago. > I think the unicode merge broke it. Probably. How about running the bootstrap temacs (the one that is dumped to produce bootstrap-emacs) under GDB with a breakpoint in malloc, and recording all calls to malloc with their callers? Then you could compare that with a similar run for a pre-merge CVS, and look for some callers that could potentially lead to corruption of the malloc chain the the dumped executable.