Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85153 - libXft dies when passing FT_Face objects directly to Xft
Summary: libXft dies when passing FT_Face objects directly to Xft
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: 84701
  Show dependency tree
 
Reported: 2005-03-13 16:22 UTC by Sebastian Klüft
Modified: 2005-05-23 20:03 UTC (History)
5 users (show)

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


Attachments
freetype.patch (but probably misnamed ;) (freetype.patch,376 bytes, patch)
2005-04-07 15:00 UTC, Marien Zwart (RETIRED)
Details | Diff
patch to xorg-x11-6.8.2-r1.ebuild to apply the previous patch (patch,455 bytes, patch)
2005-04-07 15:01 UTC, Marien Zwart (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Klüft 2005-03-13 16:22:52 UTC
When i try to run gnome-font-viewer i get this error:

$ gnome-font-viewer arial.ttf
Segmentation fault

I've tried emerging control-center without CFLAGS and CXXFLAGS but i still get a segmentation fault.

emerge info:
Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  8 2005, 10:33:00)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo/ ftp://mirror.pudas.net/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.tiscali.nl/pub/mirror/gentoo"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow X aalib alsa apm avi berkdb bitmap-fonts bonobo cdr crypt cups curl divx4linux dvd emboss encode esd fam flac font-server foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 guile hal imagemagick imlib ipv6 java jpeg junit ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline ruby samba sdl slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb wmf xine xml2 xmms xprint xv xvid zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL

Reproducible: Always
Steps to Reproduce:
1. gnome-font-viewer /usr/share/fonts/corefonts/arial.ttf
Comment 1 Giacomo Perale 2005-03-13 16:33:57 UTC
same problem here

Portage 2.0.51.19 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20050125-r0, 2.6.11-ck2 i686)
=================================================================
System uname: 2.6.11-ck2 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.10
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 16:19:21)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="it_IT"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 16bit 3dnow 3dnowex X a52 aac acpi acpi4linux alsa apache2 audiofile avi berkdb bmp cdparanoia cdr crypt cups curl divx4linux dlloader dts dvd dvdread eds emboss encode evo faac faad fam fbcon fbdev ffmpeg flac font-server foomaticdb fortran freetype gd gd-external gif glitz gnome gnomedb gpm graphviz gstreamer gtk gtk2 gtkhtml hal imagemagick imlib innodb ithreads java javascript jce jpeg kdeenablefinal lcms libg++ libsamplerate libwww live lzw-tiff mad matroska mikmod mmap mmx mmx2 mng motif mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozp3p mozsvg mp3 mpeg mysql ncurses network nls no-old-linux nptl objc oggvorbis opengl pam pcap pdflib perl png ppds python qt quicktime radeon readline real rtc samba sdl slang sndfile spell sse ssl svg svga tcpd tetex tga theora threads tiff truetype truetype-fonts type1 type1-fonts uptimed usb userlocales videos vidix wmf wxwindows xchatdccserver xface xml xml2 xmms xprint xrandr xv xvid xvmc yv12 zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL
Comment 2 Ivan Yosifov 2005-04-05 15:00:59 UTC
Me too.
Comment 3 Marien Zwart (RETIRED) gentoo-dev 2005-04-07 15:00:06 UTC
Created attachment 55606 [details, diff]
freetype.patch (but probably misnamed ;)
Comment 4 Marien Zwart (RETIRED) gentoo-dev 2005-04-07 15:01:16 UTC
Created attachment 55607 [details, diff]
patch to xorg-x11-6.8.2-r1.ebuild to apply the previous patch
Comment 5 Marien Zwart (RETIRED) gentoo-dev 2005-04-07 15:04:21 UTC
This bug seemed similar to http://bugzilla.gnome.org/show_bug.cgi?id=158551 (also a gnome-font-viewer crash although the way to trigger it seemed different), which was really https://bugs.freedesktop.org/show_bug.cgi?id=1951 (a bug in libXft). So I massaged that patch a bit to apply to xorg-x11's internal Xft lib, and this made the crash go away for me.

The patch itself is probably good, the way I'm making the ebuild apply it sucks. Tt would be nice to see if this fixes it for other people too.
Comment 6 Giacomo Perale 2005-04-07 15:43:54 UTC
I'm not sure this is the currect place but I think that now this bug will be cc'ed to xorg-x11 mantainer... libxft is now provided by xorg-x11, but there is a separated source tree (http://lists.freedesktop.org/archives/xorg/2005-March/007192.html) and, judging from what keith packard wrote in the bug Marien linked, it should be better than the xorg monolithic version. is there a reason for using the one in xorg?
Comment 7 Sebastian Klüft 2005-04-08 02:47:43 UTC
Thanks Marien Zwart, that patch worked for me to.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-04-15 14:07:33 UTC
This looks like purely an xorg bug, then. I'll add this patch to xorg-x11-6.8.2-r2.

Giacomo, if you're interested in splitting libXft out from xorg-x11, feel free to supply a new ebuild and patches to xorg-x11 to do so in a new bug. Modularization work similar to this is underway upstream and should be done in the next ~6 months, so my motivation for replicating it isn't very high.
Comment 9 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-23 20:03:59 UTC
Fixed in 6.8.2-r2 and 6.8.99.5. Thanks!