From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.emacs.bugs Subject: bug#6039: Building Emacs BZR with GCC 4.5.0 Date: Mon, 26 Apr 2010 23:33:29 +0900 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1272376749 1517 80.91.229.12 (27 Apr 2010 13:59:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Apr 2010 13:59:09 +0000 (UTC) To: 6039@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 27 15:59:08 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 1O6lIj-0002FX-QG for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 15:59:08 +0200 Original-Received: from localhost ([127.0.0.1]:46992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6lId-0004jP-O8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Apr 2010 09:58:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6Pim-0006Ox-Cw for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:55:40 -0400 Original-Received: from [140.186.70.92] (port=42150 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6Pik-0006Nr-O0 for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:55:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6Pih-00067k-Mr for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:55:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59093) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6Pih-00067g-Ip for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:55:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O6PhC-000073-A5; Mon, 26 Apr 2010 10:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vladimir Lomov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Apr 2010 14:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6039 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1272293598422 (code B ref -1); Mon, 26 Apr 2010 14:54:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Apr 2010 14:53:18 +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 1O6PgT-00006l-Ew for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:53:18 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PNr-0008Oc-4L for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:34:04 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:59019) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O6PNl-0008QZ-Sl for submit@debbugs.gnu.org; Mon, 26 Apr 2010 10:33:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6PNk-0000RP-SO for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:56 -0400 Original-Received: from [140.186.70.92] (port=36424 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6PNi-0000Pb-8C for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6PNf-0002iO-LF for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:54 -0400 Original-Received: from mail-wy0-f169.google.com ([74.125.82.169]:50688) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6PNf-0002iC-BZ for bug-gnu-emacs@gnu.org; Mon, 26 Apr 2010 10:33:51 -0400 Original-Received: by wyf19 with SMTP id 19so2028539wyf.0 for ; Mon, 26 Apr 2010 07:33:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=n4nGDnuH8ZfrsaIZ11iTIMzLKdJp0b6qiM6WhbuDJDw=; b=a61+tLX4kVuDkyoDg6Q1eUqDffiq676EIGSAz4lyM7YdRKBw89D+4DOlKvthhz+HR2 KG0Foxf43KdLTw3vDyZF9jo4EZA3kZOqrhU7QvkUx4QN5KYayLsno4Bsj2hk7q2t0Mpo In8RF+lDnfS31N/yXkV8p1s7+/gQcKNTVVU8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=CKRtmmbFwqurwTUtwhZr+9IVfPjsTkuh861hNojrHXaATIz0t4jh5QsxfYKSltWmj0 5cRVPHBGsjMBh20XivQOJnS374B4cutWYJqlOrS69kGI94Jm1lB9Vkc1NfJsQjuIggMk nxtrKfVwEjEJDrIfXnF65r+P7YzUI2SNuOF9Y= Original-Received: by 10.216.88.148 with SMTP id a20mr101549wef.124.1272292429588; Mon, 26 Apr 2010 07:33:49 -0700 (PDT) Original-Received: by 10.216.51.68 with HTTP; Mon, 26 Apr 2010 07:33:29 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 26 Apr 2010 10:53:17 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Apr 2010 10:54:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Tue, 27 Apr 2010 09:56:59 -0400 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:36560 Archived-At: Hi. (Some response to #6031, http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6031) I'm trying to compile Emacs from BZR using gcc 4.5.0 $ bzr revno 100035 Compilation went ok but when I try to run Emacs it segfault'ed. Here what I see running compiled Emacs in gdb: ========================================================================================= $ gdb ./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-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/USER/tmp/src/emacs-bzr/src/emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x4e7510: file emacs.c, line 430. Temporary breakpoint 2 at 0x504090: file sysdep.c, line 1118. (gdb) run -Q -D Starting program: /home/USER/tmp/src/emacs-bzr/src/emacs -Q -D [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:20842 20842 s->font = s->face->font; (gdb) bt #0 fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:20842 #1 0x0000000000445d44 in draw_glyphs (w=0xfb98e0, x=10, row=, area=TEXT_AREA, start=0, end=1, hl=DRAW_CURSOR, overlaps=0) at xdisp.c:21384 #2 0x000000000044b330 in draw_phys_cursor_glyph (w=0xfb98e0, row=0x128f550, hl=DRAW_CURSOR) at xdisp.c:23566 #3 0x00000000004a51a0 in x_draw_window_cursor (w=0xfb98e0, glyph_row=0x128f550, x=0, y=60, cursor_type=, cursor_width=, on_p=1, active_p=1) at xterm.c:7514 #4 0x000000000044ba63 in display_and_set_cursor (w=0xfb98e0, on=1, hpos=, vpos=, x=0, y=60) at xdisp.c:23790 #5 0x00000000004a6d04 in x_update_window_end (w=0xfb98e0, cursor_on_p=, mouse_face_overwritten_p=0) at xterm.c:650 #6 0x0000000000416992 in update_window (w=, force_p=) at dispnew.c:3984 #7 0x0000000000417d43 in update_window_tree (w=0xfb98e0, force_p=0) at dispnew.c:3613 #8 0x000000000041b573 in update_frame (f=0xfb8c80, force_p=0, inhibit_hairy_id_p=0) at dispnew.c:3540 #9 0x000000000043f51c in redisplay_internal (preserve_echo_area=) at xdisp.c:12243 #10 0x00000000004f5382 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd430, prev_event=12421458, used_mouse_menu=0x7fffffffd53c, end_time=0x0) at keyboard.c:2576 #11 0x00000000004f790c in read_key_sequence (keybuf=, prompt=12421458, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at keyboard.c:9402 #12 0x00000000004f9759 in command_loop_1 () at keyboard.c:1636 #13 0x000000000055d00f in internal_condition_case (bfun=0x4f9590 , handlers=12473314, hfun=0x4ecc70 ) at eval.c:1512 #14 0x00000000004ec2fe in command_loop_2 () at keyboard.c:1356 #15 0x000000000055ceea in internal_catch (tag=12469394, func=0x4ec2e0 , arg=12421458) at eval.c:1248 #16 0x00000000004ece71 in command_loop () at keyboard.c:1335 #17 0x00000000004ecf0a in recursive_edit_1 () at keyboard.c:950 #18 0x00000000004ed047 in Frecursive_edit () at keyboard.c:1012 #19 0x00000000004e8da7 in main (argc=, argv=) at emacs.c:1784 (gdb) quit ========================================================================================= The same happens with emacs-23.1.96 (taken from ftp://alpha.gnu.org/gnu/emacs/pretest/): ========================================================================================= $ gdb ./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-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/USER/tmp/emacs-23.1.96/src/emacs...done. SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x4e1480: file emacs.c, line 430. Temporary breakpoint 2 at 0x4fe790: file sysdep.c, line 1129. (gdb) run -Q -D Starting program: /home/USER/tmp/emacs-23.1.96/src/emacs -Q -D [Thread debugging using libthread_db enabled] Program received signal SIGSEGV, Segmentation fault. fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:19755 19755 s->font = s->face->font; (gdb) bt #0 fill_stretch_glyph_string (s=, start=, end=, s=, start=, end=) at xdisp.c:19755 #1 0x0000000000443f84 in draw_glyphs (w=0x1165820, x=10, row=, area=TEXT_AREA, start=0, end=1, hl=DRAW_CURSOR, overlaps=0) at xdisp.c:20297 #2 0x000000000044952c in draw_phys_cursor_glyph (w=0x1165820, row=0x11fd1b0, hl=DRAW_CURSOR) at xdisp.c:22406 #3 0x000000000049ff10 in x_draw_window_cursor (w=0x1165820, glyph_row=0x11fd1b0, x=0, y=60, cursor_type=, cursor_width=, on_p=1, active_p=1) at xterm.c:7510 #4 0x0000000000449c6b in display_and_set_cursor (w=0x1165820, on=1, hpos=, vpos=, x=0, y=60) at xdisp.c:22628 #5 0x00000000004a1a54 in x_update_window_end (w=0x1165820, cursor_on_p=, mouse_face_overwritten_p=0) at xterm.c:652 #6 0x000000000041680d in update_window (w=, force_p=) at dispnew.c:4375 #7 0x0000000000417bb3 in update_window_tree (w=0x1165820, force_p=0) at dispnew.c:4004 #8 0x000000000041c068 in update_frame (f=0x11655d0, force_p=0, inhibit_hairy_id_p=0) at dispnew.c:3931 #9 0x000000000043d8dc in redisplay_internal (preserve_echo_area=) at xdisp.c:11826 #10 0x00000000004ef892 in read_char (commandflag=1, nmaps=2, maps=0x7fffffffd450, prev_event=11659666, used_mouse_menu=0x7fffffffd55c, end_time=0x0) at keyboard.c:2727 #11 0x00000000004f1e1c in read_key_sequence (keybuf=, prompt=11659666, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1, bufsize=30) at keyboard.c:9512 #12 0x00000000004f3c71 in command_loop_1 () at keyboard.c:1643 #13 0x000000000055717f in internal_condition_case (bfun=0x4f3aa0 , handlers=11726930, hfun=0x4e7450 ) at eval.c:1490 #14 0x00000000004e629e in command_loop_2 () at keyboard.c:1360 #15 0x000000000055705a in internal_catch (tag=11719746, func=0x4e6280 , arg=11659666) at eval.c:1226 #16 0x00000000004e7651 in command_loop () at keyboard.c:1339 #17 0x00000000004e76ea in recursive_edit_1 () at keyboard.c:954 #18 0x00000000004e7827 in Frecursive_edit () at keyboard.c:1016 #19 0x00000000004e2d27 in main (argc=, argv=) at emacs.c:1833 (gdb) quit ========================================================================================= In both cases configure script was run with options: ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --mandir=$HOME/tmp/emacs --libexecdir=/usr/lib --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-x-toolkit=gtk --with-xft --with-libotf --with-dbus --without-sound --enable-maintainer-mode OS: Archlinux x86_64 GCC: 4.5.0 I also tried to compile Emacs (BZR) with gcc 4.4.3 ( the same distro but a bit outdated). After compilation I managed to run Emacs (terminal session). Seems that with gcc 4.4 (http://bugs.gentoo.org/show_bug.cgi?id=317187) Emacs could be compiled and run without errors. --- WBR, Vladimir Lomov