bugThe FreeType Project - Bugs: bug #19910, fontconfig fc-cache hangs on misc...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #19910: fontconfig fc-cache hangs on misc fonts

Submitter:  David Halik <dhalik>
Submitted:  Sat 19 May 2007 10:57:22 PM UTC
   
 
Severity:  5 - Blocker Item Group:  Crash
Status:  Fixed Privacy:  Public
Assigned to:  freetype Open/Closed:  Closed
Planned Release:  2.3.5

Tue 22 May 2007 03:34:39 PM UTC, comment #4: 

Works perfect! Thank you very much for the speedy fix. I'm looking forward to the actual 2.3.5 release since we've had this bug for some time in a large number of machines, but the latest CVS allowed fc-cache to chomp right through the trouble fonts. ;)

David Halik <dhalik>
Tue 22 May 2007 01:29:30 PM UTC, comment #3: 

ok, a real fix is now commited to the CVS, please test appropriately with other .Z fonts on your system (I have a pretty limited collection to test against) so that we can close this bug.

the problem was really an edge case that was not properly handled by our code. I hate the .Z format, its designers were morons !!

David Turner <freetype>
Group administrator
Tue 22 May 2007 09:49:34 AM UTC, comment #2: 

I confirm that this is a FreeType problem. More specifically in our LZW decoder, which was rewritten in 2.2.1 (in order to save huge amounts of heap memory). At the moment, I'm still undecided wether this comes from a malformed file or an edge case that isn't handled well by our sources.

I'm commiting a "band-aid" right now that aborts the decompression when the problematic code is encountered. A real fix will happen later...

David Turner <freetype>
Group administrator
Mon 21 May 2007 08:23:42 PM UTC, comment #1: 

I can confirm this.  David, please have a look; this is
really a serious regression IMHO.

You can download one of the problematic fonts here:

http://stuff.mit.edu/afs/sipb/project/zhongwen/lib/fonts/hanglg16.pcf.Z

Werner LEMBERG <wl>
Group administrator
Sat 19 May 2007 10:57:22 PM UTC, original submission:  

Hello,

There has been some discussion about whether this is a Freetype or Fontconfig issue, so bug reports are getting put on each and linked. ;) The issue is when running fc-cache -v on Solaris 9 it parses the /usr/openwin/lib/X11/fonts/misc/ directory and gets hung on six asian font files. The program has difficulty reading the compressed files and eventually sucks up all available ram and swap in the process. This has been the case since 2.2.1 and is continues to happen now with 2.3.4 and Fontconfig 2.4.2 which are the latest releases.

The files are:
hanglg16.pcf.Z  
hanglm16.pcf.Z  
hanglm24.pcf.Z  
jiskan16.pcf.Z 
jiskan24.pcf.Z  
k14.pcf.Z

If they are uncompressed then it parses then properly, but once recompressed it fails immediately. So far I've been told to just uncompress them, but I find that an unacceptable and only temporary fix.

Please see https://bugs.freedesktop.org/show_bug.cgi?id=8633 for more indepth discussion.

Thanks,
-Dave

David Halik <dhalik>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by freetype (Posted a comment)
  • -email is unavailable- added by wl (Posted a comment)
  • -email is unavailable- added by dhalik (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-23 wl StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2007-05-22 freetype Planned ReleaseNone 2.3.5
    2007-05-21 wl Severity3 - Normal 5 - Blocker
        StatusNone Confirmed
        Assigned toNone freetype

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code