New 21 and Fontconfig.


It all started in mansheiet naser when we were installing the lab.
The LAN server was installed by alaa, Alaa did an update, and installed windows fonts.
Then we did a reboot because we installed an updated kernel.
And here comes the bad part...

X starts then exits, Nothing wrong in the logs, Yet kdm doesn't start, Oh come on!
Maybe it's the DRI ? disable dri ? switch the driver to vesa ? No way, The piece of iron won't let X start.
X starts fine, So it's not an X problem.
Maybe a memory corruption ? memtest86 didn't find anything.
I was away trying configuring mplayer to work fine with arts, When I came back Alaa noticed that only Gtk and Qt apps are affected, He thought it might be a font problem, Running fc-cache -f -v as I suggested caused a segfault when trying to parse the windows fonts directory.
Nice, Now how to know the font causing the problem ? Ezabi noted the core file, I said run gdb, Alaa said run strings and it was it, the New_21.ttf file.
The segfault ir reproducable on both Mandrake 10.1 Official and Debian sarge.
running fc-cache under gdb, I obtained the following backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x4188300a in gray_raster_render () from /usr/lib/
(gdb) where
#0  0x4188300a in gray_raster_render () from /usr/lib/
#1  0x41883a5a in gray_raster_render () from /usr/lib/
#2  0x4188473e in gray_raster_render () from /usr/lib/
#3  0x4184f37e in FT_Load_Glyph () from /usr/lib/
#4  0xb7fdb600 in FcFreeTypeCharIndex () from /usr/lib/
#5  0xb7fdb8a4 in FcFreeTypeCharSetAndSpacing () from
#6  0xb7fdaa2e in FcFreeTypeQuery () from /usr/lib/
#7  0xb7fd9d1f in FcFileScan () from /usr/lib/
#8  0xb7fda115 in FcDirScan () from /usr/lib/
#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/
#25 0x00000000 in ?? ()

here is the bug report.
I'm not that experienced with fontconfig otherwise i'd have tried to fix it.
Anyway, This is a proof that I have all the rights to hate Xft/fontconfig ;-)

Add new comment

The content of this field is kept private and will not be shown publicly.