GNU bug report logs - #11541
24.0.97; Crash when visiting file on OS X 10.7.3

Previous Next

Packages: ns, emacs;

Reported by: Florian Ebeling <florian.ebeling <at> gmail.com>

Date: Tue, 22 May 2012 16:20:02 UTC

Severity: important

Merged with 11684, 11792, 11801

Found in versions 24.0.97, 24.1.50, 24.1

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


Message #56 received at 11541 <at> debbugs.gnu.org (full text, mbox):

From: "C. Florian Ebeling" <florian.ebeling <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 11541 <at> debbugs.gnu.org, Chong Yidong <cyd <at> gnu.org>
Subject: Re: bug#11541: 24.0.97; Crash when visiting file on OS X 10.7.3
Date: Thu, 31 May 2012 19:27:13 +0200
> This might be a slower way to find the culprit, but I think it is a
> lot more sure to give good results.

This is what a healthy and the crashing call produce with font_spec and fdesc being printed:

Breakpoint 2, ns_findfonts (font_spec=4338015181, isMatch=0 '\000') at nsfont.m:496
496	    Lisp_Object tem, list = Qnil;
#<font-spec ns nil Monaco nil iso10646-1 nil nil nil nil nil nil nil ((:script . symbol))>

Breakpoint 3, ns_findfonts (font_spec=4338015181, isMatch=0 '\000') at nsfont.m:529
529	    if (!FONT_SPEC_P (font_spec))
#<font-spec ns nil Monaco nil iso10646-1 nil nil nil nil nil nil nil ((:script . symbol))>

Breakpoint 2, ns_findfonts (font_spec=4338015181, isMatch=0 '\000') at nsfont.m:496
496	    Lisp_Object tem, list = Qnil;
#<font-spec ns apple nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . symbol))>

Breakpoint 3, ns_findfonts (font_spec=4338015181, isMatch=0 '\000') at nsfont.m:529
529	    if (!FONT_SPEC_P (font_spec))
#<font-spec ns apple nil nil iso10646-1 nil nil nil nil nil nil nil ((:script . symbol))>

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x00007fff8966d3c2 in CFStringGetLength ()

(gdb) i b
Num Type           Disp Enb Address            What
--- snip ---
2   breakpoint     keep y   0x00000001001a0fb5 in ns_findfonts at nsfont.m:496
	breakpoint already hit 7 times
        pp font_spec
        continue
3   breakpoint     keep y   0x00000001001a11ca in ns_findfonts at nsfont.m:529
	breakpoint already hit 7 times
        pp font_spec
        continue

I can't really tell which font_spec is acceptable, and which not, though.

The crashing one has a third element of nil, is that ok or not?






This bug report was last modified 12 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.