From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Reitter Newsgroups: gmane.emacs.bugs Subject: bug#5973: Crash in get_next_display_element Date: Mon, 19 Apr 2010 13:40:18 -0400 Message-ID: <4085AF16-E1CB-4A6D-A39C-82E520790237@gmail.com> References: <35658001-BB7B-4741-9C95-76E6CB17AB0B@gmail.com> <83aaszbbl7.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271701186 21220 80.91.229.12 (19 Apr 2010 18:19:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Apr 2010 18:19:46 +0000 (UTC) Cc: 5973@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 19 20:19:44 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 1O3vZQ-0005Of-0C for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 20:19:44 +0200 Original-Received: from localhost ([127.0.0.1]:41348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3vZP-0007uL-AG for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Apr 2010 14:19:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3vFf-0002DP-O2 for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:59:19 -0400 Original-Received: from [140.186.70.92] (port=43108 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3vFc-0002B3-9F for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:59:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3vFZ-0002bT-TE for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:59:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33084) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3vFZ-0002bB-Of for bug-gnu-emacs@gnu.org; Mon, 19 Apr 2010 13:59:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O3uxx-0001bl-Rq; Mon, 19 Apr 2010 13:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Reitter 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:41:01 +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.12716988286173 (code B ref 5973); Mon, 19 Apr 2010 17:41:01 +0000 Original-Received: (at 5973) by debbugs.gnu.org; 19 Apr 2010 17:40:28 +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 1O3uxP-0001bW-Oy for submit@debbugs.gnu.org; Mon, 19 Apr 2010 13:40:28 -0400 Original-Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3uxN-0001bR-VD for 5973@debbugs.gnu.org; Mon, 19 Apr 2010 13:40:26 -0400 Original-Received: by vws11 with SMTP id 11so2599507vws.3 for <5973@debbugs.gnu.org>; Mon, 19 Apr 2010 10:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=IOQ7ZWniADsXhDbEbtzsrHCj7RXIlCvuiQpiLuAjVRY=; b=vkX/1i3ihxfEn5pfTSFsqfInYTpfbkrAIrdAYr0rWOWlp5i2EO3YBlYDITwY+wGB/b IWUmUTgHXsUJMPMWV5f86B5h/xfTxS36nKKpjEay4Lhi6gA/BEvUkUqmMDlwE+0ivpC1 4UW3BkF1LNtHPvV3TvjBteLixuc6myjFw5JZY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=gfFCswqPjy/rZJwKxJGGdlplm4dmyQWn4cxOUESO9Tm/NdaA0afAT5SJK3aWeOqDNT yI7m+srPnYZXPPL6X/z9mTLIb2Q68Zndz3oQhbp1S1HzQ70YZ36IzfHxsV1Y9Htheo6k x/b48NkW4snwzwV+0QQYYkZjPu45GDHXWE+fw= Original-Received: by 10.220.127.34 with SMTP id e34mr3781893vcs.149.1271698820990; Mon, 19 Apr 2010 10:40:20 -0700 (PDT) Original-Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) by mx.google.com with ESMTPS id z22sm19659102vco.10.2010.04.19.10.40.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 10:40:20 -0700 (PDT) In-Reply-To: <83aaszbbl7.fsf@gnu.org> X-Mailer: Apple Mail (2.1078) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Apr 2010 13:41: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:36320 Archived-At: On Apr 19, 2010, at 1:23 PM, Eli Zaretskii wrote: >=20 > 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. How do I do that? It didn't run in gdb, and I don't know how to reproduce the crash. I just did a search on a year worth of crash logs (47 crashes) and = didn't find this specific crash again. > 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.) Yes: Exception Type: EXC_BAD_ACCESS (SIGABRT) Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000110 >=20 > Thanks, but I don't think we should fix problems until we understand > them. In general, it->face_id should index a face that is already > realized at this point. Is it possible that this code runs, somehow, after a face got deleted? = That, per se, might be the real cause of the bug - but I can only = speculate. As said, the macro is documented to return NULL in some cases, and the = code in the same function (below) checks for that case (of course I = don't know when such a case can happen). So independently of this = particular crash it would be good style to "if (face)" there. Let me know if I can help in any way.=