Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137388 - media-libs/freetype-2.1.10-r1 crashes xorg
Summary: media-libs/freetype-2.1.10-r1 crashes xorg
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: foser (RETIRED)
URL:
Whiteboard:
Keywords:
: 134923 137432 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-20 09:42 UTC by Jaak Ristioja
Modified: 2008-06-05 19:56 UTC (History)
7 users (show)

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


Attachments
updated patchset (freetype-2.1.10-security_batch-r1.patch,60.49 KB, patch)
2006-06-20 11:38 UTC, foser (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaak Ristioja 2006-06-20 09:42:30 UTC
No running windows found

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Backtrace:
0: X(xf86SigHandler+0x90) [0x4742f0]
1: /lib/tls/libc.so.6 [0x2b5cd0d97700]
2: /usr/lib/libfreetype.so.6 [0x2b5cd06b470c]
3: /usr/lib/libfreetype.so.6(FT_Render_Glyph_Internal+0x9c) [0x2b5cd06865dc]
4: /usr/lib/libXfont.so.1 [0x2b5cd050ccb5]
5: /usr/lib/libXfont.so.1 [0x2b5cd050dc87]
6: /usr/lib/libXfont.so.1 [0x2b5cd05127a9]
7: /usr/lib/libXfont.so.1 [0x2b5cd05130fb]
8: /usr/lib/libXfont.so.1(FontFileListNextFontWithInfo+0x657) [0x2b5cd0508f77]
9: X(doListFontsWithInfo+0x2a2) [0x448932]
10: X(StartListFontsWithInfo+0x16e) [0x448fce]
11: X(Dispatch+0x1b9) [0x447289]
12: X(main+0x44d) [0x43007d]
13: /lib/tls/libc.so.6(__libc_start_main+0xdc) [0x2b5cd0d8563c]
14: X(FontFileCompleteXLFD+0xa2) [0x42f37a]

Fatal server error:
Caught signal 8.  Server aborting

kwin: Fatal IO error: client killed
kicker: Fatal IO error: client killed

etc...

Steps to reproduce: startx, run amsn

2.1.10 and 2.2.1 are not affected.

emerge --info:
Gentoo Base System version 1.12.1
Portage 2.1.1_pre1-r1 (default-linux/amd64/2005.0, gcc-4.1.1/amd64-hardened, glibc-2.3.6-r3, 2.6.17-gentoo x86_64)
=================================================================
System uname: 2.6.17-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="et_EE.UTF-8"
LDFLAGS="-Wl,-O2"
LINGUAS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 apm avi bash-completion bitmap-fonts bzip2 cairo cjk cli crypt cups dbus directfb divx4linux dri eds emboss encode fam fbcon ffmpeg flac foomaticdb fuse gif gimpprint gpm gstreamer gtk gtk2 gtkhtml hal hardened ieee1394 imagemagick imlib ipv6 isdnlog ithreads jpeg kde lzw lzw-tiff mjpeg mmap mng mozilla mp3 mpeg ncurses nogcj nomotif nptl ogg oggvorbis opengl pam pcre pdflib perl pic png ppds pppd python qt quicktime readline reflection samba sdl session spl ssl subversion svg sysfs tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb vhosts vorbis wmf xinerama xml xml2 xmms xorg xpm xprint xscreensaver xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux lirc_devices_irdeo userland_GNU video_cards_ati video_cards_radeon video_cards_nv video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michal Jakubowski 2006-06-20 11:09:47 UTC
Me too
Comment 2 Patrick 2006-06-20 11:15:55 UTC
I can confirm that.
Comment 3 foser (RETIRED) gentoo-dev 2006-06-20 11:38:35 UTC
Created attachment 89651 [details, diff]
updated patchset
Comment 4 foser (RETIRED) gentoo-dev 2006-06-20 11:39:27 UTC
can you guys replace the security_batch patch with the attached one and try again ?
Comment 5 Jaak Ristioja 2006-06-20 12:31:59 UTC
It seems to work just fine (at least it didn't crash this time). media-libs/fontconfig had to be recompiled thou, otherwise KDE wouldn't start:

kdeinit: symbol lookup error: /usr/lib64/libfontconfig.so.1: undefined symbol: FT_Free
Comment 6 spiralvoice 2006-06-20 13:32:23 UTC
Had the same problem but I could start icewm, only qt apps were affected (KDE, QT designer). When starting QT apps on icewm the whole X server crashes, Firefox and other GTK stuff work without problems. Downgrading freetype to 2.1.10 fixes this problem without recompiling anything. I am using x11-base/xorg-x11-7.1.

Portage 2.1.1_pre1-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo i686)
=================================================================
System uname: 2.6.17-gentoo i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon-xp -Os -fforce-addr -fomit-frame-pointer -ftracer -pipe -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo http://gentoo.inode.at http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://gentoo.osuosl.org/ http://ftp.easynet.nl/mirror/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/ecatmur"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa arts automount avi berkdb bitmap-fonts bzip2 cairo cddb cdparanoia cdr cli cups dbus dri dvd dvdr dvdread eds emboss encode ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz gmp gnokii gpm graphviz gs gtk gtk2 hal howl idn ieee1394 imagemagick imap imlib isdnlog jbig joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility lame lcms libg++ libwww lzo mad matroska mbox mhash mikmod mmx mng mozilla mozsvg mp3 mpeg mplayer ncurses nls nptl nsplugin nvidia ogg openexr opengl oss pam pcre pdflib perl pic png ppds pppd qt quicktime readline real reflection samba session slp sndfile spell spl sse ssl svg tcpd theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb v4l vcd vorbis win32codecs wmf xine xinerama xml xmms xorg xprint xv xvid zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse input_devices_joystick kernel_linux linguas_de userland_GNU video_cards_nv video_cards_vesa video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 spiralvoice 2006-06-20 13:45:23 UTC
(In reply to comment #3)
> Created an attachment (id=89651) [edit]
> updated patchset

I can confirm that this patch fixes the problem with freetype-2.1.10-r1,
I, too, had to re-compile fontconfig-2.3.2-r1 because of this error:
undefined symbol: FT_Free

Shouldn
Comment 8 spiralvoice 2006-06-20 13:45:23 UTC
(In reply to comment #3)
> Created an attachment (id=89651) [edit]
> updated patchset

I can confirm that this patch fixes the problem with freetype-2.1.10-r1,
I, too, had to re-compile fontconfig-2.3.2-r1 because of this error:
undefined symbol: FT_Free

Shouldn´t revdep-rebuild find this problem? Here it did not.
Comment 9 foser (RETIRED) gentoo-dev 2006-06-20 14:18:56 UTC
No, it's just fontconfig being silly, the symbol isn't used.

What if you have this problem and compile freetype-2.1.10-r1 with CFLAGS="${CFLAGS} -DFT_CONFIG_OPTION_OLD_INTERNALS" set ?
Comment 10 spiralvoice 2006-06-20 14:20:40 UTC
(In reply to comment #8)
> What if you have this problem and compile freetype-2.1.10-r1 with
> CFLAGS="${CFLAGS} -DFT_CONFIG_OPTION_OLD_INTERNALS" set ?

With or without the new patch?
Comment 11 foser (RETIRED) gentoo-dev 2006-06-20 14:30:28 UTC
with the new patch, but in your case you need to recompile fontconfig against a stable freetype to recreate the problem I think. So first make sure you reproduce the problem, then recompile freetype with the suggested CFLAGS line.
Comment 12 Avuton Olrich 2006-06-20 22:34:26 UTC
When things like this happen, why is the policy not to mask first, ask questions later. I've got the same problem here, but it crashes my X when I go to play enemy-territory.
Comment 13 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-06-21 02:57:32 UTC
package.mask ASAP please...
Comment 14 foser (RETIRED) gentoo-dev 2006-06-21 03:15:04 UTC
Please keep the comments constructive, do as I asked to do in earlier comments and report back the results and we will solve this much quicker.

This is not a vote.
Comment 15 Matthias Schwarzott gentoo-dev 2006-06-21 05:25:27 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > What if you have this problem and compile freetype-2.1.10-r1 with
> > CFLAGS="${CFLAGS} -DFT_CONFIG_OPTION_OLD_INTERNALS" set ?
> 
> With or without the new patch?
> 

Comment 16 Alexis Ballier gentoo-dev 2006-06-21 14:47:13 UTC
This patch fixed the issue for me (~amd64)
Comment 17 Tuan Van (RETIRED) gentoo-dev 2006-06-21 15:17:35 UTC
 (In reply to comment #8)
> 
> What if you have this problem and compile freetype-2.1.10-r1 with
> CFLAGS="${CFLAGS} -DFT_CONFIG_OPTION_OLD_INTERNALS" set ?
> 
WFM
1. Change the patch.
2. emerge freetype with above modified CFLAGS 
3. emerge fontconfig.
Comment 18 Tuan Van (RETIRED) gentoo-dev 2006-06-21 15:48:44 UTC
(In reply to comment #16)

> WFM
> 1. Change the patch.
> 2. emerge freetype with above modified CFLAGS 
> 3. emerge fontconfig.
> 

sorry, #3 is not necessary as foser pointed it out to me.
Comment 19 Justin Findlay 2006-06-21 20:40:19 UTC
I can confirm along with Tuan in c16-17.

1. KDE apps/KDE itself crash X server
2. download patch to /usr/portage/media-libs/freetype/files and rename it
3. swap out security_batch patch with newly downloaded patch in freetype-2.1.10-r1.ebuild
4. `ebuild $(equery which freetype) digest`
5. `CFLAGS="${CFLAGS} -DFT_CONFIG_OPTION_OLD_INTERNALS" emerge --oneshot freetype`
6. restart X (or crash it again in my case because the old freetype libs are still loaded)
7. start some KDE app with confidence and success
8. ?????
9. Profit!@!!
Comment 20 Jaak Ristioja 2006-06-22 00:54:06 UTC
Yes, with the updated patchset AND CFLAGS applied, it works! :)
Comment 21 Fritz Heinrichmeyer 2006-06-22 07:09:57 UTC
(In reply to comment #3)
> Created an attachment (id=89651) [edit]
> updated patchset
> 

i thought casts of lvalues are no more accepted in gcc-4.x (or was it gcc-4.2)?
Comment 22 foser (RETIRED) gentoo-dev 2006-06-22 07:45:19 UTC
it works for 4.0 at least.

Anyway, I've added 2.1.10-r2 which should deal with these issues.
Comment 23 foser (RETIRED) gentoo-dev 2006-06-29 15:52:27 UTC
Given there have been no more comments/reports, I'm assuming this got fixed.
Comment 24 Avuton Olrich 2006-06-30 00:22:27 UTC
-r1 & -r2 still crash my xorg when I launch enemy territory. Reverting enemy territory works fine.
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 14:11:02 UTC
*** Bug 137432 has been marked as a duplicate of this bug. ***
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2006-11-10 15:42:42 UTC
*** Bug 134923 has been marked as a duplicate of this bug. ***