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

From: Eli Zaretskii <[email-masked]>
Date: Fri, 01 Jun 2012 11:53:13 +0300

> From: Florian Ebeling <[email-masked]>
> Date: Fri, 1 Jun 2012 08:44:25 +0200
> Cc: Eli Zaretskii <[email-masked]>, [email-masked], [email-masked]
> 
> >> #18 0x00000001001a1253 in ns_findfonts (font_spec=4338015181,
> >> isMatch=0 '\000') at nsfont.m:532
> >>       desc = (NSFontDescriptor *) 0x6
> >>       fkeys = (NSMutableSet *) 0x10254d0c0
> >>       cFamilies = (NSSet *) 0x10274dc20
> >>       fdesc = (NSFontDescriptor *) 0x10250be70
> >>       dEnum = (NSEnumerator *) 0x8afbb3c8
> >>       family = (NSString *) 0x5
> >>       foundItal = 0 '\000'
> >>       tem = 140734799760864
> >>       list = 4345311290
> >>       matchingDescs = (NSArray *) 0x103395716
> >
> > Please use `po' to print the `fdesc' and `fkeys' objects.
> 
> Same reading as earlier:
> 
> (gdb) f 18
> #18 0x00000001001a1253 in ns_findfonts (font_spec=4338015181,
> isMatch=0 '\000') at nsfont.m:532
> 532	    matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
> (gdb) po fkeys
> {(
> )}
> (gdb) po fdesc
> NSCTFontDescriptor <0x10250be70> = {
> }

So I think you should step into ns_get_req_script,
ns_get_covering_families, and ns_spec_to_descriptor, and try to
understand why they come up with empty objects.