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

Previous Next

Packages: emacs, ns;

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


View this message in rfc822 format

From: Florian Ebeling <florian.ebeling <at> gmail.com>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: 11541 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, cyd <at> gnu.org
Subject: bug#11541: 24.0.97; Crash when visiting file on OS X 10.7.3
Date: Fri, 1 Jun 2012 07:43:57 +0200
>> 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.
>
> My guess is that the earlier attempts were made on an optimized build.

Heh, good guess. That's the case, indeed. I changed optimization when
gdb said some variable was optimized away. What I did was

rm nsfont.o
make CFLAGS='-O0 -ggdb'
make install

> Does the following simple test program crash for you (compile it with
> the option "-framework Cocoa") ?  If so, I'd suspect font cache
> corruption or other system-wide problems.

This program does not crash but outputs a lot of font description objects.

>
>                                     YAMAMOTO Mitsuharu
>                                mituharu <at> math.s.chiba-u.ac.jp
>
> #import <Cocoa/Cocoa.h>
>
> main ()
> {
>  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
>  NSDictionary *attributes = [NSDictionary dictionary];
>  NSFontDescriptor *descriptor = [NSFontDescriptor fontDescriptorWithFontAttributes:attributes];
>  NSSet *keys = [NSSet set];
>  NSArray *descs = [descriptor matchingFontDescriptorsWithMandatoryKeys:keys];
>
>  CFShow (descs);
>  [pool release];
> }




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.