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#11541: 24.0.97; Crash when visiting file on OS X 10.7.3 Date: Thu, 31 May 2012 18:48:51 +0300 Message-ID: <83hauw1hcs.fsf@gnu.org> References: <4fbb6a82.d491cc0a.42d6.3965@mx.google.com> <878vgbozcz.fsf@gnu.org> <877gvu9wun.fsf@gnu.org> <874nqyyn83.fsf@gnu.org> <87d35lyen5.fsf@gnu.org> <87d35kj10j.fsf@gnu.org> <87txywofx7.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1338479386 21800 80.91.229.3 (31 May 2012 15:49:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 May 2012 15:49:46 +0000 (UTC) Cc: 11541@debbugs.gnu.org To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 31 17:49:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sa7d1-0007Bp-PC for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2012 17:49:35 +0200 Original-Received: from localhost ([::1]:39695 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sa7d1-0004gv-K1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2012 11:49:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sa7cy-0004gp-PI for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 11:49:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sa7ct-0000zz-QA for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 11:49:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sa7ct-0000zi-Md for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 11:49:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sa7eP-0004gV-To for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 11:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 May 2012 15:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11541 X-GNU-PR-Package: emacs,ns X-GNU-PR-Keywords: Original-Received: via spool by 11541-submit@debbugs.gnu.org id=B11541.133847943717975 (code B ref 11541); Thu, 31 May 2012 15:51:01 +0000 Original-Received: (at 11541) by debbugs.gnu.org; 31 May 2012 15:50:37 +0000 Original-Received: from localhost ([127.0.0.1]:52030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sa7e0-0004fs-RV for submit@debbugs.gnu.org; Thu, 31 May 2012 11:50:37 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:56796) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sa7dx-0004fe-L1 for 11541@debbugs.gnu.org; Thu, 31 May 2012 11:50:35 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0M4W00B0098RF600@a-mtaout20.012.net.il> for 11541@debbugs.gnu.org; Thu, 31 May 2012 18:48:39 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M4W00A02993ZAA0@a-mtaout20.012.net.il>; Thu, 31 May 2012 18:48:39 +0300 (IDT) In-reply-to: <87txywofx7.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60565 Archived-At: > From: Chong Yidong > Date: Thu, 31 May 2012 17:31:16 +0800 > Cc: 11541@debbugs.gnu.org > > Florian Ebeling writes: > > > No, still the same crash location. > > Hmm, then I'm pretty much stumped. Perhaps it will help to step through the suspect code with GDB. According to the original backtrace: #18 0x00000001001a1c7a in ns_findfonts (font_spec=4366993920, isMatch=0 '\0') at nsfont.m:521 #19 0x000000010012ff32 in font_list_entities (frame=140734799761440, spec=140734799761440) at font.c:2728 #20 0x0000000100131d5e in font_find_for_lface (f=0x7fff5fbf5130, attrs=0x7fff5fbf5130, spec=626, c=1606373680) at font.c:3197 #21 0x000000010017863f in fontset_find_font (fontset=4327724757, c=1606373856, face=0x7fff5fbf51e0, id=1606373856, fallback=1606373856) at fontset.c:620 #22 0x00000001001788da in fontset_font (fontset=4355892213, c=8594, face=0x7fff5fbf5230, id=1606373936) at fontset.c:736 The crash happens when fontset_font is called with its second argument 8694, which is consistent with the character being displayed, u+2199, RIGHTWARDS ARROW. So doing something like this: (gdb) break fontset_font if c == 8594 (gdb) r -Q then visiting the offending file should trigger the breakpoint. Then you can step into the functions all the way down to ns_findfonts, and step through ns_findfonts one line at a time, including the functions it calls. This will allow you to see (a) whether the font_spec argument arrives into ns_findfonts with the correct value , and if so (b) where and why does it get clobbered. This might be a slower way to find the culprit, but I think it is a lot more sure to give good results.