[Fontconfig] Re: Bug in fc-cat with user cache

Mike FABIAN mfabian at suse.de
Mon Jan 9 08:27:09 PST 2006

Patrick Lam <plam at MIT.EDU> さんは書きました:

> Mike FABIAN wrote:
>>>Allthough the generated file is quite big, fc-cat lists only
>>>one line now.
> I think I've fixed this set of bugs now.  They were related.

Thank you, with todays CVS fccat starts printing the contents of
~/.fonts.cache correctly now, but it crashes before finishing:

    mfabian at magellan:~$ fc-cat ~/.fonts.cache-2
    fc-cat: printing global cache contents for dir /usr/X11R6/lib/X11/fonts/CID/Adobe-CNS1/CIDFont
    "MOEKai-Regular" 0 "MOE Kai:style=Regular:slant=0:weight=80:width=100:spacing=100:foundry=unknown:index=0:outline=True:scalable=True:charset=:lang=:fontversion=0:fontformat=CID Type 1"
    "MOESung-Regular" 0 "MOE Sung:style=Regular:slant=0:weight=80:width=100:spacing=100:foundry=unknown:index=0:outline=True:scalable=True:charset=:lang=:fontversion=0:fontformat=CID Type 1"
    fc-cat: printing global cache contents for dir /usr/X11R6/lib/X11/fonts/CID/Adobe-CNS1/CFM
    fc-cat: printing global cache contents for dir /usr/X11R6/lib/X11/fonts/CID/Adobe-CNS1/AFM
    fc-cat: printing global cache contents for dir /usr/X11R6/lib/X11/fonts/CID/Adobe-CNS1
    *** glibc detected *** fc-cat: free(): invalid next size (fast): 0x0000000000509180 ***
    ======= Backtrace: =========
    Aborted (core dumped)
    mfabian at magellan:~$ 

And "xfd -fa" still crashes for all fonts afterwards:

    mfabian at magellan:~$ xfd -fa "sans"
    Warning: Cannot convert string "sans" to type XftFont
    Segmentation fault (core dumped)
    mfabian at magellan:~$ 

(I deleted all global caches in /var/cache/fontconfig for testing,
then created ~/.fonts.cache-2 from scratch by deleting it and
then calling "fc-match sans".

Mike FABIAN   <mfabian at suse.de>   http://www.suse.de/~mfabian

More information about the Fontconfig mailing list