From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: seg-fault in unexelf.c Date: Sat, 22 Jul 2006 12:33:34 +1200 Message-ID: <17601.29278.738547.379915@kahikatea.snap.net.nz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153528529 6744 80.91.229.2 (22 Jul 2006 00:35:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2006 00:35:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jul 22 02:35:24 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G45Se-000236-Ie for ged-emacs-devel@m.gmane.org; Sat, 22 Jul 2006 02:35:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G45Sd-00040E-Tn for ged-emacs-devel@m.gmane.org; Fri, 21 Jul 2006 20:35:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G45SP-0003z5-WA for emacs-devel@gnu.org; Fri, 21 Jul 2006 20:35:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G45SN-0003yP-DK for emacs-devel@gnu.org; Fri, 21 Jul 2006 20:35:01 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G45SN-0003yM-8s for emacs-devel@gnu.org; Fri, 21 Jul 2006 20:34:59 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G45St-0002e6-E3 for emacs-devel@gnu.org; Fri, 21 Jul 2006 20:35:31 -0400 Original-Received: from kahikatea.snap.net.nz (p495-tnt1.snap.net.nz [202.124.111.241]) by viper.snap.net.nz (Postfix) with ESMTP id 3C344776661; Sat, 22 Jul 2006 12:34:56 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 176571D3547; Sat, 22 Jul 2006 12:33:36 +1200 (NZST) Original-To: Chip Coldwell In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.0.50.41 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:57457 Archived-At: > I have been having a problem building emacs on GNU/Linux (in > particular, the Fedora Core 5 distribution). The build process runs > the following command in the src/ subdirectory: > > ./temacs -l loadup -batch dump > > to cause the temacs binary (essentially emacs without the Lisp code > loaded) to set up the Lisp environment in the process address space > and then create a new ELF file with a new .data section that contains > the .data and .bss sections from the temacs process. > > If I build the temacs binary with no compiler optimization (gcc (GCC) > 4.1.0 20060304 (Red Hat 4.1.0-3)), the command above seg-faults in the > unexec function (file unexelf.c) while executing this line: >... I regularly build on FC5 without optimization and don't have any problems (although I haven't done "make bootstrap for a while, the final build uses "./temacs -l loadup -batch dump"). gcc (GCC) 4.1.1 20060525 (Red Hat 4.1.1-1) Linux kahikatea.snap.net.nz 2.6.15-1.2054_FC5 #1 Tue Mar 14 15:48:33 EST 2006 i686 i686 i386 GNU/Linux n In GNU Emacs 22.0.50.41 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2006-07-21 on kahikatea.snap.net.nz X server distributor `The X.Org Foundation', version 11.0.70000000 configured using `configure 'CFLAGS=-g3'' -- Nick http://www.inet.net.nz/~nickrob