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#5973: Crash in get_next_display_element Date: Mon, 19 Apr 2010 20:23:32 +0300 Message-ID: <83aaszbbl7.fsf@gnu.org> References: <35658001-BB7B-4741-9C95-76E6CB17AB0B@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1271698183 8643 80.91.229.12 (19 Apr 2010 17:29:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 17:29:43 +0000 (UTC) Cc: 5973@debbugs.gnu.org To: David Reitter Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 19:29:41 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 1O3umw-0002xp-TG for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 19:29:39 +0200 Original-Received: from localhost ([127.0.0.1]:50070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3umt-0006Ka-41 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 13:29:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3umk-0006HQ-0t for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:29:26 -0400 Original-Received: from [140.186.70.92] (port=37408 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3uma-00065F-Fg for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:29:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3umX-0002Oe-KA for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:29:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45007) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3umX-0002ON-8L for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:29:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3uiU-0001TU-5c; Mon, 19 Apr 2010 13:25: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: Mon, 19 Apr 2010 17:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5973-submit@debbugs.gnu.org id=B5973.12716978565658 (code B ref 5973); Mon, 19 Apr 2010 17:25:02 +0000 Original-Received: (at 5973) by debbugs.gnu.org; 19 Apr 2010 17:24:16 +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 1O3uhk-0001TD-29 for submit@debbugs.gnu.org; Mon, 19 Apr 2010 13:24:16 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3uhi-0001T8-8g for 5973@debbugs.gnu.org; Mon, 19 Apr 2010 13:24:15 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0L1400J00W38KQ00@a-mtaout20.012.net.il> for 5973@debbugs.gnu.org; Mon, 19 Apr 2010 20:23:27 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.69.249]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L1400GLLWB2SQB0@a-mtaout20.012.net.il>; Mon, 19 Apr 2010 20:23:27 +0300 (IDT) In-reply-to: <35658001-BB7B-4741-9C95-76E6CB17AB0B@gmail.com> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Apr 2010 13:25: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:36315 Archived-At: > From: David Reitter > Date: Mon, 19 Apr 2010 12:08:18 -0400 > Cc: > > I just had a crash. I can't pinpoint what triggered it. > > Line xdisp.c:5946 is this in the build that I was running: > > it->face_id = FACE_FOR_CHAR (it->f, face, it->c, pos, it->string); > > > FWIW, the build was done with > CPP=cc -E -no-cpp-precomp > CFLAGS=-g -O0 -Wdeclaration-after-statement -Wno-pointer-sign > > So one may possibly infer from the trace below that face_for_char() was NOT called by FACE_FOR_CHAR, and that the invalid pointer was somewhere in (FACE)->ascii_face->id (see dispextern.h:1693). > > Maybe FACE_FROM_ID returned a null pointer as it is documented to do if the face doesn't exist (?? frame? face got just deleted with frame??) and this bit of code doesn't check face. > > But that's speculation - I don't know the display code very well. Let's start by finding the immediate reason for the crash. Please show the contents of `face', the last argument to FACE_FOR_CHAR in the line that crashed. Also, what kind of signal was it that crashed the program? (The backtrace is in some form that I'm not familiar with, so maybe the information is already present there.) Thanks.