Bug 42

Summary: fc-cache pegged CPU
Product: fontconfig Reporter: Joe Shaw <joe>
Component: fc-cacheAssignee: Keith Packard <keithp>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: 2.1   
Hardware: x86 (IA32)   
OS: Linux (All)   
i915 platform: i915 features:

Description Joe Shaw 2003-03-04 17:27:29 UTC
I was doing an RPM installation of an updated fontconfig RPM and during that
installation, in the postinst script, fc-cache pegged itself at 100% CPU and
blocked the installation until it was killed.  Also in that transaction I was
updating freetype... I'm not totally sure what I had before the install, but
afterward I have 2.1.3.

The only interesting thing about my font setup is that I have the microsoft ttf
fonts installed.

Attached is a stack trace I got by attaching gdb to be process before I killed
it... I'm not sure if it's useful.

#0  ft_gzip_file_fill_output (zip=0x85e6090)
#1  0x40066d54 in ft_gzip_file_io (zip=0x85e6090, pos=0, buffer=0x80ce9ba "", 
#2  0x4004f026 in FT_Stream_EnterFrame (stream=0x89d1f94, count=8)
#3  0x4004f54d in FT_Stream_ReadFields (stream=0x89d1f94, fields=0x40087ae0, 
#4  0x400670df in pcf_read_TOC (stream=0x89d1f94, face=0x89d1f10)
#5  0x40067f52 in pcf_load_font (stream=0x89d1f94, face=0x89d1f10)
#6  0x40068730 in PCF_Face_Init (stream=0x8051308, face=0x89d1f10, 
    face_index=0, num_params=0, params=0x0)
<return> to continue, or q <return> to quit---
#7  0x40051bdf in open_face (driver=0x87b3658, stream=0x8051308, face_index=0, 
    num_params=0, params=0x0, aface=0xbffff744)
#8  0x40051ee8 in FT_Open_Face (library=0x87b41c0, args=0xbffff770, 
    face_index=0, aface=0xbffff828)
#9  0x40051c83 in FT_New_Face (library=0x87b41c0, 
    pathname=0xc <Address 0xc out of bounds>, face_index=0, aface=0xbffff828)
#10 0x40031e08 in FcFreeTypeQuery () from /usr/lib/libfontconfig.so.1
#11 0x4003185f in FcFileScan () from /usr/lib/libfontconfig.so.1
#12 0x40031c13 in FcDirScan () from /usr/lib/libfontconfig.so.1
#13 0x08048c2a in FcFontSetDestroy ()
#14 0x08048eff in FcFontSetDestroy ()
#15 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
Comment 1 Keith Packard 2003-03-04 22:16:39 UTC
The default configuration now skips the (nearly worthless) X bitmap font
Comment 2 Joe Shaw 2003-03-05 08:11:57 UTC
Thanks for the info.  What version is this fixed in?  (Or did you just fix it
now in CVS?)
Comment 3 Keith Packard 2003-03-05 08:13:34 UTC
The work around to avoid bitmap fonts is in CVS and will be in 2.1.92

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.