Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13061 - updating to freetype-2.1.3-r2 (unstable) crashes all gnome2 apps ?
Summary: updating to freetype-2.1.3-r2 (unstable) crashes all gnome2 apps ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 All
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-01 20:18 UTC by Ilian Zarov
Modified: 2003-09-28 05:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
The famous font (bodt.ttf.bz2,26.72 KB, application/octet-stream)
2003-01-11 11:32 UTC, Ilian Zarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilian Zarov 2003-01-01 20:18:40 UTC
Hello, 
I haven't seen this bug anywhere else so if this is my fault please excuse me for wasting 
your time. I have looked all over google, bugs.gentoo.org, freetype-2.1.3 realease notes 
and gentoo forums. When I updated my system from freetype-2.1.2 (not sure which -rxx 
exactly) my gnome2 apps started crashing. Here is a trace using gdb of a simple program 
(gtk-theme-switch2): 
 
$ gdb switch2 
GNU gdb 5.3 
(snip) 
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)... 
(gdb) run 
Starting program: /usr/bin/switch2 
(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)...(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)...(no debugging symbols 
found)... 
(switch2:26579): Gtk-WARNING **: Unable to locate theme engine in module_path: 
"cleanice", 
(no debugging symbols found)... 
Program received signal SIGSEGV, Segmentation fault. 
0x406e0b42 in TT_Load_Simple_Glyph () from /usr/lib/libfreetype.so.6 
 
I tried reemerging it several times, going back to older version, reemerging the app, even 
updated my gnome-2.0.2 system to gnome-2.0.3. Happily it's time for a change so I'm 
now using KDE 3.1rc5. I tracked down that when I set GDK_USE_XFT=0 switch2 runs ok, 
but more complex (?) programs like xchat-1.9.7 pops up a server editor and when trying to 
connect it crashes with the same error message. Maybe xchat's overriding gdk_use_xft, not 
sure ... Eclipse doesn't run. Mozilla (1.2.1 compiled without gtk2 support) runs when 
gdk_use_xft is set to 0. And the strangest of all here is that KDE runs without any 
problems, perfect antialiasing with and without the bytecode interpreter (using the new 
autohinting code) and the smooth patches. 
 
Some make.conf info: 
CHOST="i686-pc-linux-gnu" 
CFLAGS="-O3 -march=athlon -pipe -O3 " 
ACCEPT_KEYWORDS="~x86" 
USE="dga evo gd ggz gtk2 gtkhtml libgda maildir mule mysql odbc pda ruby samba sasl 
sse xml -apm -cups -berkdb -slang -tetex -guile -gpm -scanner" 
 
Other programs related to fonts (giving this info as I updated xft and emerged fontconfig 
for the first time the same day I updated freetype). 
xfree-4.2.1-r2 
xft-2.0.1-r1 
fontconfig-2.1-r1
Comment 1 Ilian Zarov 2003-01-01 20:24:04 UTC
Oh, running a gcc-3.2.1 and glibc-2.3.1-r2 system btw :) 
Comment 2 foser (RETIRED) gentoo-dev 2003-01-04 08:12:43 UTC
Are you using the latest ~ gtk/pango/glib ? You might want and try to disable
the slighthint patch in pango-1.2.0 just to make sure.

oh and it works just fine for me btw
Comment 3 Ilian Zarov 2003-01-04 08:50:05 UTC
Yup, I'm running a pretty standard ~x86 system here. GTK+-2.2.0, Glib-2.2.0, pango-1.2.0. I disabled the slighthint patch in pango and then in freetype, no change. Thinking of it, maybe I should recompile xfree ? It seg faults in /usr/lib/libfreetype and not /usr/X11R6/lib, but I have no other ideas. 
Comment 4 Ilian Zarov 2003-01-06 11:48:28 UTC
OK, found it. I just remembered last night at about 2:00 am looking at emerge -ep xfree that 
emerge fontconfig has crashed in the end running fc-cache. Then I remembered I had a 
RedHat 8.0 system where I copied all my windows truetype fonts and it couldn't even start X. 
Conclusion: low quality truetype (or should I say crappy) fonts can crash gnome and other 
freetype using apps. Fontconfig doesn't ignore them and somehow the new freetype decided 
it had to go through all the fonts ... I'll recheck exactly which ones cause the problem and 
submit a bug report upstream. 
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-08 16:18:06 UTC
I think 2.1.3 adds gzip compression support or such.  Prob picked out a few of
those, and hit a bug.
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-08 16:19:59 UTC
Actually, can you try to merge freetype:

  # RESTRICT="nostrip" BUILDDEBUG="yes" CFLAGS="-ggdb" CXXFLAGS="-ggdb" \
    emerge freetype

and try and track where it crashes ?  Or at least what font is causing this,
and pass it this way so I can try to fix it ?
Comment 7 Ilian Zarov 2003-01-10 17:00:59 UTC
I just ran strace fc-cache and tracked it. It's a font called bodt.ttf, 43kb. Probably made in Bulgaria :) I can send it to your e-mail, is that ok ? 
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-11 09:55:40 UTC
bzip it, and attach to this bug if possible, thanks.
Comment 9 Ilian Zarov 2003-01-11 11:32:45 UTC
Created attachment 7202 [details]
The famous font
Comment 10 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-19 08:32:18 UTC
I tried to backtrace it, but I cannot seem to see the problem currently :/

Robert, if you are bored at some stage, and want to debug this, I will appreciate.
Comment 11 J Robert Ray 2003-01-19 13:42:56 UTC
Program received signal SIGSEGV, Segmentation fault.
0x401bb7ff in TT_Load_Simple_Glyph (load=0xbffff0d0) at
/var/tmp/portage/freetype-2.1.3-r2/work/freetype-2.1.3/src/truetype/ttgload.c:370
370             *flag++ = c = FT_GET_BYTE();

flag is NULL, from the assigment above,

      FT_Byte*  flag  = (FT_Byte*)outline->tags;

(gdb) p outline->tags
$2 = 0x0

Checking flag for NULL and returning an error just makes it crash again
somewhere else.  This should be forwarded upstream.
Comment 12 foser (RETIRED) gentoo-dev 2003-05-05 20:39:40 UTC
whats the status here reporter , have things improved with current freetype/fontconfig ?
Comment 13 foser (RETIRED) gentoo-dev 2003-05-13 20:05:41 UTC
needinfo
Comment 14 Ilian Zarov 2003-05-18 19:00:31 UTC
works for me, sorry for the delay, i was away from town
Comment 15 foser (RETIRED) gentoo-dev 2003-09-28 05:30:45 UTC
close