Subject: Re: bug#11541: 24.0.97; Crash when visiting file on OS X 10.7.3

From: YAMAMOTO Mitsuharu <[email-masked]>
Date: Fri, 01 Jun 2012 12:50:18 +0900

>>>>> On Thu, 31 May 2012 23:55:40 +0200, Florian Ebeling <[email-masked]> said:

> 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.

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.

				     YAMAMOTO Mitsuharu
				[email-masked]

#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];
}