GNU bug report logs -
#11541
24.0.97; Crash when visiting file on OS X 10.7.3
Previous Next
Full log
View this message in rfc822 format
>> 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.