Bug 42 - fc-cache pegged CPU
Summary: fc-cache pegged CPU
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: fc-cache (show other bugs)
Version: 2.1
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-03-04 17:27 UTC by Joe Shaw
Modified: 2003-03-04 13:13 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/gzip/ftgzip.c:376
#1  0x40066d54 in ft_gzip_file_io (zip=0x85e6090, pos=0, buffer=0x80ce9ba "", 
    count=6)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/gzip/ftgzip.c:468
#2  0x4004f026 in FT_Stream_EnterFrame (stream=0x89d1f94, count=8)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/base/ftstream.c:217
#3  0x4004f54d in FT_Stream_ReadFields (stream=0x89d1f94, fields=0x40087ae0, 
    structure=0x89d1fc8)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/base/ftstream.c:685
#4  0x400670df in pcf_read_TOC (stream=0x89d1f94, face=0x89d1f10)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/pcf/pcfread.c:148
#5  0x40067f52 in pcf_load_font (stream=0x89d1f94, face=0x89d1f10)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/pcf/pcfread.c:868
#6  0x40068730 in PCF_Face_Init (stream=0x8051308, face=0x89d1f10, 
    face_index=0, num_params=0, params=0x0)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/pc---Type
<return> to continue, or q <return> to quit---
f/pcfdriver.c:257
#7  0x40051bdf in open_face (driver=0x87b3658, stream=0x8051308, face_index=0, 
    num_params=0, params=0x0, aface=0xbffff744)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/base/ftobjs.c:754
#8  0x40051ee8 in FT_Open_Face (library=0x87b41c0, args=0xbffff770, 
    face_index=0, aface=0xbffff828)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/base/ftobjs.c:940
#9  0x40051c83 in FT_New_Face (library=0x87b41c0, 
    pathname=0xc <Address 0xc out of bounds>, face_index=0, aface=0xbffff828)
    at
/home/clahey/ximian-desktop/freetype/BUILD/freetype/freetype-2.1.3/src/base/ftobjs.c:821
#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
directories.
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.