From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.bugs Subject: bug#6031: gcc 4.5 breaks optimized builds of emacs Date: Sat, 24 Apr 2010 23:07:03 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272165960 23337 80.91.229.12 (25 Apr 2010 03:26:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2010 03:26:00 +0000 (UTC) Cc: 6031@debbugs.gnu.org To: Elias Pipping Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 25 05:25:49 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O5sTc-0003T9-BQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 05:25:48 +0200 Original-Received: from localhost ([127.0.0.1]:35964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5sTb-0003pT-K9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Apr 2010 23:25:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5sTM-0003ku-O4 for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 23:25:32 -0400 Original-Received: from [140.186.70.92] (port=54866 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5sTL-0003ke-7V for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 23:25:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5sTJ-0007KE-FX for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 23:25:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57637) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5sTJ-0007KA-Df for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2010 23:25:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O5sCP-0006f8-K2; Sat, 24 Apr 2010 23:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan Nicolaescu Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Apr 2010 03:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6031 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6031-submit@debbugs.gnu.org id=B6031.127216482825594 (code B ref 6031); Sun, 25 Apr 2010 03:08:01 +0000 Original-Received: (at 6031) by debbugs.gnu.org; 25 Apr 2010 03:07:08 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5sBW-0006el-Q4 for submit@debbugs.gnu.org; Sat, 24 Apr 2010 23:07:07 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5sBU-0006eN-Np for 6031@debbugs.gnu.org; Sat, 24 Apr 2010 23:07:05 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1O5sBT-0007Jf-UM; Sat, 24 Apr 2010 23:07:03 -0400 In-Reply-To: (Elias Pipping's message of "Sun\, 25 Apr 2010 01\:44\:14 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 24 Apr 2010 23:08:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36485 Archived-At: Elias Pipping writes: > Hi, > > I'm on the current HEAD of the repo.or.cz mirror of emacs which is > > http://repo.or.cz/w/emacs.git/commit/910daaa95ca0708ad7022667e214bba4b8eb3d6b > > When I compile a minimal version of emacs like this: > > $ ./configure CFLAGS="-O1 -foptimize-sibling-calls" --without-x > --without-alsa --without-dbus; [..] > > with gcc 4.5 and run it via > > $ ./src/emacs -Q -nw > > I get a segfault. Dropping the -foptimize-sibling-calls (which is > implied by -O2) makes it work again. So does using an older version of > gcc (e.g. 4.4.3) or running emacs outside a terminal. Can you please uncomment this line in emacs/src/s/intel386.h /* #define NO_ARG_ARRAY */ recompile everything and see if you get the problem after that. > > > $ gdb ./src/emacs > GNU gdb (GDB) 7.1 > Copyright (C) 2010 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "x86_64-pc-linux-gnu". > For bug reporting instructions, please see: > ... > Reading symbols from /home/pipping/emacs/src/emacs...done. > (gdb) run -Q -nw > > < clears terminal > > > > Program received signal SIGSEGV, Segmentation fault. > 0x0000000000406015 in fill_up_glyph_row_area_with_spaces > (row=0x111e320, area=2) at dispnew.c:2910 > 2910 *text++ = space_glyph; > (gdb) bt > #0 0x0000000000406015 in fill_up_glyph_row_area_with_spaces > (row=0x111e320, area=2) at dispnew.c:2910 > #1 0x000000000040a6a8 in fill_up_glyph_row_with_spaces > (matrix=0xde7290, w=0xb4a630) at dispnew.c:2892 > #2 build_frame_matrix_from_leaf_window (matrix=0xde7290, w=0xb4a630) > at dispnew.c:2790 > #3 build_frame_matrix_from_window_tree (matrix=0xde7290, w=0xb4a630) > at dispnew.c:2718 > #4 0x000000000040c51c in build_frame_matrix (f=0xb4a3b0, force_p=1, > inhibit_hairy_id_p=1) at dispnew.c:2698 > #5 update_frame (f=0xb4a3b0, force_p=1, inhibit_hairy_id_p=1) at dispnew.c:3560 > #6 0x0000000000426340 in echo_area_display (update_frame_p=1) at xdisp.c:9624 > #7 0x0000000000426601 in message3_nolog (m=16043489, nbytes=65, > multibyte=0) at xdisp.c:8479 > #8 0x00000000004267d0 in message3 (m=16043489, nbytes=65, > multibyte=0) at xdisp.c:8414 > #9 0x00000000004d3bf7 in Fmessage (nargs=, > args=) at editfns.c:3408 > #10 0x00000000004d976c in Ffuncall (nargs=, > args=0x7fffffffd510) at eval.c:3054 > #11 0x000000000050bde9 in Fbyte_code (bytestr=, > vector=, maxdepth=) at > bytecode.c:680 > #12 0x00000000004dbca2 in funcall_lambda (fun=8298757, nargs=0, > arg_vector=0x7fffffffd6d8) at eval.c:3260 > #13 0x00000000004d9949 in Ffuncall (nargs=, > args=0x7fffffffd6d0) at eval.c:3119 > #14 0x000000000050bde9 in Fbyte_code (bytestr=, > vector=, maxdepth=) at > bytecode.c:680 > #15 0x00000000004dbca2 in funcall_lambda (fun=8300205, nargs=1, > arg_vector=0x7fffffffd8c8) at eval.c:3260 > #16 0x00000000004d9949 in Ffuncall (nargs=, > args=0x7fffffffd8c0) at eval.c:3119 > #17 0x000000000050bde9 in Fbyte_code (bytestr=, > vector=, maxdepth=) at > bytecode.c:680 > #18 0x00000000004dbca2 in funcall_lambda (fun=8273333, nargs=0, > arg_vector=0x7fffffffdaa8) at eval.c:3260 > #19 0x00000000004d9949 in Ffuncall (nargs=, > args=0x7fffffffdaa0) at eval.c:3119 > #20 0x000000000050bde9 in Fbyte_code (bytestr=, > vector=, maxdepth=) at > bytecode.c:680 > #21 0x00000000004dbca2 in funcall_lambda (fun=8268357, nargs=0, > arg_vector=0x7fffffffdbe0) at eval.c:3260 > #22 0x00000000004dbd87 in apply_lambda (fun=8268357, args= optimized out>, eval_flag=1) at eval.c:3184 > #23 0x00000000004db750 in Feval (form=) at eval.c:2410 > #24 0x00000000004d8dc4 in internal_condition_case (bfun=0x474709 > , handlers=11756482, hfun=0x474faf ) at > eval.c:1512 > #25 0x0000000000474bdb in top_level_1 () at keyboard.c:1373 > #26 0x00000000004d8c94 in internal_catch (tag=11752306, func=0x474bb1 > , arg=11704658) at eval.c:1248 > #27 0x000000000047513a in command_loop () at keyboard.c:1328 > #28 0x00000000004751ee in recursive_edit_1 () at keyboard.c:950 > #29 0x0000000000475338 in Frecursive_edit () at keyboard.c:1012 > #30 0x0000000000472747 in main (argc=, > argv=0x7fffffffe418) at emacs.c:1784 > (gdb) > > > Kind Regards, > > Elias Pipping