From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#6031: gcc 4.5 breaks optimized builds of emacs Date: Sun, 25 Apr 2010 19:15:05 +0300 Message-ID: <83r5m3zeye.fsf@gnu.org> References: <83zl0rzmg9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1272212819 17897 80.91.229.12 (25 Apr 2010 16:26:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2010 16:26:59 +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 18:26:57 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 1O64fZ-0003iy-3z for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 18:26:57 +0200 Original-Received: from localhost ([127.0.0.1]:38715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O64fY-0000ZL-G6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Apr 2010 12:26:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O64eE-0008R4-3F for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 12:25:34 -0400 Original-Received: from [140.186.70.92] (port=51885 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O64eC-0008QS-MJ for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 12:25:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O64eB-0006gd-0p for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 12:25:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41362) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O64eA-0006gY-VW for bug-gnu-emacs@gnu.org; Sun, 25 Apr 2010 12:25:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O64V0-0005Wg-5P; Sun, 25 Apr 2010 12:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii 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 16:16:02 +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.127221214921231 (code B ref 6031); Sun, 25 Apr 2010 16:16:02 +0000 Original-Received: (at 6031) by debbugs.gnu.org; 25 Apr 2010 16:15:49 +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 1O64Ul-0005WO-MR for submit@debbugs.gnu.org; Sun, 25 Apr 2010 12:15:47 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O64Ui-0005WG-O2 for 6031@debbugs.gnu.org; Sun, 25 Apr 2010 12:15:46 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L1F00600WU6BP00@a-mtaout20.012.net.il> for 6031@debbugs.gnu.org; Sun, 25 Apr 2010 19:15:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.124.71.78]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1F00HGVX4ZDPV0@a-mtaout20.012.net.il>; Sun, 25 Apr 2010 19:15:00 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 25 Apr 2010 12:16:02 -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:36494 Archived-At: > From: Elias Pipping > Date: Sun, 25 Apr 2010 16:56:20 +0200 > Cc: 6031@debbugs.gnu.org > > (gdb) p text > $1 = (struct glyph *) 0x1163000 > (gdb) p end > $2 = (struct glyph *) 0x7ffff73525fa Hmm... `end' looks entirely bogus to me... It should have been much smalle. Can you set a watchpoint at the address of row->glyphs[3], and see who puts there a non-null value? Here's how to do that: In the crashed session: (gdb) p &row->glyphs[3] $1 = (struct glyph **) 0x12345678 Start a new session: gdb ./emacs (gdb) start -Q -nw (gdb) watch *(struct glyph **) 0x12345678 (gdb) continue 0x12345678 is of course just an example, you will actually see some other value. You should see one change of the value here (line 673 in dispnew.c): matrix->rows = (struct glyph_row *) xrealloc (matrix->rows, size); bzero (matrix->rows + matrix->rows_allocated, new_rows * sizeof *matrix->rows); The value should change to a NULL pointer. You should then see another change in the loop which starts on line 697 in dispnew.c: for (i = 0; i < dim.height; ++i) The value should change from a NULL pointer to something non-null. There should be some more similar changes. Please see which one of them puts the bogus value 0x7ffff73525fa or some such there. Thanks.