Bug 1847 - the attached font crashes fc-cache
Summary: the attached font crashes fc-cache
Status: RESOLVED NOTOURBUG
Alias: None
Product: fontconfig
Classification: Unclassified
Component: fc-cache (show other bugs)
Version: 2.2
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Keith Packard
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-13 21:47 UTC by Mohammed Sameer
Modified: 2004-12-04 03:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
the new_21.ttf font (275.01 KB, application/octet-stream)
2004-11-13 21:52 UTC, Mohammed Sameer
Details

Description Mohammed Sameer 2004-11-13 21:47:25 UTC
Running fc-cache -f -v
fc-cache crashes when trying to parse the attached font.
reproducable on mandrake 10.1 official and debian sarge.
fontconfig: 2.2.3
Comment 1 Mohammed Sameer 2004-11-13 21:52:02 UTC
Created attachment 1302 [details]
the new_21.ttf font 

the font crashing fc-cache

 gdb fc-cache 
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...Using
host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) set args -v -f
(gdb) r
Starting program: /usr/bin/fc-cache -v -f
(no debugging symbols found)...(no debugging symbols found)...(no debugging
symbols found)...(no debugging symbols found)...(no debugging symbols
found)...(no debugging symbols found)...(no debugging symbols
found).../usr/bin/fc-cache: "/usr/share/fonts": caching, 0 fonts, 3 dirs
/usr/bin/fc-cache: "/usr/share/fonts/truetype": 
Program received signal SIGSEGV, Segmentation fault.
0x4188300a in gray_raster_render () from /usr/lib/libfreetype.so.6
(gdb) where
#0  0x4188300a in gray_raster_render () from /usr/lib/libfreetype.so.6
#1  0x41883a5a in gray_raster_render () from /usr/lib/libfreetype.so.6
#2  0x4188473e in gray_raster_render () from /usr/lib/libfreetype.so.6
#3  0x4184f37e in FT_Load_Glyph () from /usr/lib/libfreetype.so.6
#4  0xb7fdb600 in FcFreeTypeCharIndex () from /usr/lib/libfontconfig.so.1
#5  0xb7fdb8a4 in FcFreeTypeCharSetAndSpacing () from
/usr/lib/libfontconfig.so.1
#6  0xb7fdaa2e in FcFreeTypeQuery () from /usr/lib/libfontconfig.so.1
#7  0xb7fd9d1f in FcFileScan () from /usr/lib/libfontconfig.so.1
#8  0xb7fda115 in FcDirScan () from /usr/lib/libfontconfig.so.1
#9  0x08048dbf in ?? ()
#10 0x0804f140 in ?? ()
#11 0x080536d0 in ?? ()
#12 0x00000000 in ?? ()
#13 0x0804c738 in ?? ()
#14 0x0804f178 in ?? ()
#15 0x00000001 in ?? ()
#16 0x0c97e439 in ?? ()
#17 0xb7fff000 in ?? ()
#18 0x08048656 in ?? ()
#19 0x0000001f in ?? ()
#20 0x00000000 in ?? ()
#21 0x00000000 in ?? ()
#22 0x00000302 in ?? ()
#23 0x00000000 in ?? ()
#24 0x41080000 in putwchar () from /lib/tls/libc.so.6
#25 0x00000000 in ?? ()
(gdb)
Comment 2 Keith Packard 2004-12-04 22:14:17 UTC
The crash is inside FreeType.  For now, make sure you don't have this font on
your system, or that you black-list the filename with the new <selectfont>
mechanism.


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.