Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19770 - Xfree didn't do anti-aliasing=crashing GNOME2.2 and KDE, fc-cache to blame
Summary: Xfree didn't do anti-aliasing=crashing GNOME2.2 and KDE, fc-cache to blame
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-22 08:43 UTC by Jan Henrik Helmers
Modified: 2005-01-03 12:12 UTC (History)
2 users (show)

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


Attachments
The "nu" font, a cool bitmap font (nu.fon,7.22 KB, application/octet-stream)
2003-04-23 14:26 UTC, Jan Henrik Helmers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Henrik Helmers 2003-04-22 08:43:09 UTC
After upgrading to Xfree-4.3.0-r2, I couldn't start X.

I figured there was a problem with XFT, and did "export GDK_USE_XFT=0" before
running startx. This made GNOME work somewhat, even if nautilus was unusable and
the system had quirks, beside an ugly look.

The problem, I discovered, was that fc-cache suddenly didn't run. It segfaulted.
After compiling wihtout -fomit-frame-pointer, I traced it to some fonts of mine.
After moving them from the directory mentioned in the backtrace, I could run
fc-config again.

The font that caused the bork was "mints-mild.fon".
It hadn't worked before(i.e. I couldn't use it), but fc-config worked
flawlessly(as far as I could tell) until the upgrade.

Reproducible: Always
Steps to Reproduce:
1.Have the font "mints-mild.fon"(or any *.fon?) in a font directory found in
/XF86Config
2.fc-cache


Actual Results:  
segfault

Expected Results:  
Normal return, generation of font cache.

Running "unstable" Gentoo version.
Comment 1 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-22 14:45:35 UTC
I can confirm that this happened to me too. I just deleted the .fon files, but that's no real solution. Probably it's something upstream (freetype/fontconfig/both)
Comment 2 Seth Chandler 2003-04-22 14:48:26 UTC
what version of freetype/fontconfig 
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-22 14:59:34 UTC
With me the newest/masked ones (freetype-2.1.4 and fontconfig-2.1.94) as they work
best with the new bitstream vera fonts
Comment 4 Luca Barbato gentoo-dev 2003-04-22 15:19:35 UTC
emerge info please, CFLAGS in particular
Comment 5 Jan Henrik Helmers 2003-04-22 15:59:37 UTC
Just for the record, I tried compiling freetype, fontconfig and xfree with both my current CFLAGS, and also some a lot more aggressive, same result.

Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21_pre7-gss i686 AMD Athlon(tm) XP 1800+
GENTOO_MIRRORS="http://gentoo.linux.no http://gentoo.oregonstate.edu/ http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm crypt gif jpeg libg++ libwww mikmod ncurses pdflib png quicktime truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline bonobo svga tcltk java guile sdl gpm tcpd pam ssl perl python imlib oggvorbis motif mozilla ldap X gtk gnome qt kde gtk2 mmx sse 3dnow opengl cdr dvd spell freetype -arts -esd
avi encode pdf mpeg aalib cups moznoirc moznomail gphoto2 usb xft nls"
COMPILER="gcc3"
CHOST="i586-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe -ffast-math"
CXXFLAGS="-O2 -march=athlon-xp -pipe -ffast-math"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox"
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-22 16:15:32 UTC
Well, freetype was a bit buggy with .gz'd Type1 fonts ... dunno if if is
related.
Comment 7 foser (RETIRED) gentoo-dev 2003-04-22 17:37:26 UTC
hmm azarah, that font mentioned in the earlier bugreport still doesn't work for me so i suppose there are still fonts out there that won't work for or even crash fontconfig/freetype .

reporter , try without athlon-xp set and (unrelated) why do you have i586 CHOST for an athlon (?) 

And compiling with more agressive CFLAGS then your normal settings isn't going to get you anywhere ofcourse ;)
Comment 8 Jan Henrik Helmers 2003-04-23 00:19:13 UTC
As for the CHOST, I didn't change anything after my install of 1.4rc3, but what do I know.

Anyway, I changed the CHOST, and compiled freetype and fontconfig with these CFLAGS: "-O2 -march=i686 -pipe". Unfortunatuly, that didn't change anything, it still segfaulted when I inserted a .fon file in /home/helmers.fonts; while everything went just peachy without it.
Comment 9 foser (RETIRED) gentoo-dev 2003-04-23 06:46:37 UTC
can you attach one of those fonts ?
Comment 10 Jan Henrik Helmers 2003-04-23 14:26:02 UTC
Created attachment 11047 [details]
The "nu" font, a cool bitmap font

Also, I couldn't use this font before, it just didn't crash "fc-cache". If
someone know how to make it work, please mail me about it, as this font is one
of my favorites. ;)
Comment 11 Donnie Berkholz (RETIRED) gentoo-dev 2004-04-03 19:54:58 UTC
Is this still a valid bug on current versions?
Comment 12 Donnie Berkholz (RETIRED) gentoo-dev 2005-01-03 12:12:16 UTC
Please reopen and change the summary if this is still a problem with >=xorg-x11-6.8.0.