From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Ebeling 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 23:55:40 +0200 Message-ID: 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> <83hauw1hcs.fsf@gnu.org> <16181D4F-4289-47B2-AF61-FCBD189AF4B0@gmail.com> <83fwag1biu.fsf@gnu.org> <4655FB78-D516-422B-979C-EC7131D2957C@gmail.com> <83aa0o157c.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1338501396 9058 80.91.229.3 (31 May 2012 21:56:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 31 May 2012 21:56:36 +0000 (UTC) Cc: 11541@debbugs.gnu.org, cyd@gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 31 23:56:34 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 1SaDM8-0003RD-1c for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2012 23:56:32 +0200 Original-Received: from localhost ([::1]:34142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaDM7-0002Kr-Jb for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2012 17:56:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaDM4-0002KD-Qd for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 17:56:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SaDM3-0005qB-0E for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 17:56:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SaDM2-0005nN-QQ for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 17:56:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SaDNZ-0004fn-Lr for bug-gnu-emacs@gnu.org; Thu, 31 May 2012 17:58:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Florian Ebeling Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 May 2012 21:58: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.133850146517941 (code B ref 11541); Thu, 31 May 2012 21:58:01 +0000 Original-Received: (at 11541) by debbugs.gnu.org; 31 May 2012 21:57:45 +0000 Original-Received: from localhost ([127.0.0.1]:52362 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SaDNJ-0004fK-1X for submit@debbugs.gnu.org; Thu, 31 May 2012 17:57:45 -0400 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:47925) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SaDNH-0004f7-1K for 11541@debbugs.gnu.org; Thu, 31 May 2012 17:57:43 -0400 Original-Received: by dacx6 with SMTP id x6so1711003dac.3 for <11541@debbugs.gnu.org>; Thu, 31 May 2012 14:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=JC5ZZSfydaNZI56mIuNStBXR3u+iEuKR7TspundaZHU=; b=yDyG4zCry6xT+hnuyQOqmN1o1IEQG6A2/bFelR+kwS5UzDG8BrpmiQrQ1hGcFSaovP 8rGySU4aa9rd+40QgIaGp2xjacrnEfv3AetRmSPXx6C9jFvt0/67BBE9x/rCry8bSQQc Q5Wp1//5cx9vb9AHLPd429jJ3XnYxY3LPIiJ2LSrqeWpnpA1vUopqnJCLbCu96H57dDG jlDaWoyZo6GeFDp8mDLzJLalVfg2rw5XhjSnK3T3kximpLietg7PWpPg5F70sY43KtH7 Ews+fzTW+evQ8GH1Bvce91shXRnDYffELGs5N1B6Vs/olxH8ic3/UqkOjy6DLgk3x0zK mKSQ== Original-Received: by 10.68.138.161 with SMTP id qr1mr1505046pbb.37.1338501360403; Thu, 31 May 2012 14:56:00 -0700 (PDT) Original-Received: by 10.143.99.5 with HTTP; Thu, 31 May 2012 14:55:40 -0700 (PDT) In-Reply-To: <83aa0o157c.fsf@gnu.org> 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:60584 Archived-At: > The code involved in this hardly ever touches Emacs internals. =C2=A0It's > simple ObjC code, at least to my naive eyes. I stepped through the whole thing, but I didn't notice anything, not that that would mean too much. > As the first goal, I suggest to try figuring out what happens with the > font_spec argument to ns_findfonts -- is it corrupted right at entry > to the function, or does it get corrupted later? =C2=A0You should display > it, using the same commands you used for scratch_font_spec in its > caller, right at the entry to the function. =C2=A0Assuming the value at > entry is OK (which would be my guess), then step through the code of > ns_findfonts, and see which line causes its corruption. The corruption of font_spec doesn't occur now, but the crash still occurs. Program received signal EXC_BAD_ACCESS, Could not access memory. Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000 0x00007fff8966d3c2 in CFStringGetLength () (gdb) f 18 #18 0x00000001001a1253 in ns_findfonts (font_spec=3D4338015181, isMatch=3D0 '\000') at nsfont.m:532 532 matchingDescs =3D [fdesc matchingFontDescriptorsWithMandatoryKeys: = fkeys]; ... (gdb) pp font_spec # (gdb) p font_spec $45 =3D 4338015181 (gdb) xtype Lisp_Vectorlike PVEC_FONT So right after the crash the font_spec still looks like a legit lisp object. Don't ask me why that was different before. The values here and in other mails were copy-pasted, so that did happen. --=20 Florian Ebeling florian.ebeling@gmail.com