New 21 and Fontconfig.

Body

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/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 ?? ()

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.