[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: =========
    /lib64/libc.so.6[0x2aaaab123eed]
    /lib64/libc.so.6(__libc_free+0x6c)[0x2aaaab12550c]
    fc-cat[0x405427]
    /lib64/libc.so.6(__libc_start_main+0xf4)[0x2aaaab0d6fc4]
    fc-cat[0x402389]
    [...]
    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