After a recent system upgrade (I am not sure what changed) all kde applications and most java applications will cause a segmentation fault in X server. According to gdb, the server was in libfreetype.so.6 when it crashed in ft_smooth_lcd_renderer_class (). However, the applications themselves do not crash, and some of their windows are visible in the Xnest window before it closes. Applications I have tested: k3b, amaroK, HP Device Manager, kde itself, limewire. I have attached strace and ltrace from a sample run. Reproducible: Always Steps to Reproduce: 1.start Xnest 2.run k3b app in xnest Actual Results: sigsev in Xnest Expected Results: k3b should run I run a ~amd64 system (will attach package.unmask, package.use, and the traces) emerge --info: Portage 2.1.2.9 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.17-gentoo-r8 x86_64) ================================================================= System uname: 2.6.17-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4800+ Gentoo Base System release 1.12.10 Timestamp of tree: Thu, 07 Jun 2007 03:01:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.6-r2, 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -pipe -O2" 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/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-march=athlon64 -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://mercury.hep.olemiss.edu/mirror/gentoo" LANG="en_US.utf8" MAKEOPTS="-j4" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise /usr/local/overlays/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X Xaw3d a52 aac aalib acpi aim alsa amd64 apache2 arts bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread eds emacs emboss emul-linux-x86 encode esd fam ffmpeg firefox flac fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 guile hal howl iconv ieee1394 ipv6 isdnlog jabber java jpeg kde ldap libg++ mad matroska midi mikmod mono mozilla mp3 mpeg mplayer msn mudflap ncurses new-login nls nptl nptlonly nsplugin offensive ogg openal opengl openmp oss pam pcre pdf perl plotutils png ppds pppd python qt qt3 qt4 quicktime rar readline reflection sdl session smp spell spl ssl subtitles svg tcltk tcpd threads timidity truetype truetype-fonts type1-fonts unicode usb vorbis xine xml xorg xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS System Specs: AMD Athlon64 X2 4800+ 2GB RAM ATi Radeon x1800 xt 512MB DFI LanParty Ultra nf4 MB
Created attachment 121539 [details] strace output of sample run
Created attachment 121541 [details] ltrace from sample run (compressed for size)
Attach some backtrace here, please. Also, emerge -pv freetype output. http://www.gentoo.org/proj/en/qa/backtraces.xml
emerge -pv freetype These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] media-libs/freetype-2.3.4-r2 USE="X zlib -bindist -debug -doc" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB
Created attachment 121596 [details] backtrace from sample run
Created attachment 121598 [details] core dump from Xnest This is a core dump from a crash Xnest session. It is probably helpful in the hands of a more skilled debugger than me.
Reopen.
can i get the output of fc-list? does this only happen in Xnest?
It happens in regular X as well, just its easier for me to debug in an Xnest window. I can backtrace it in regular X as well if you would like.
Created attachment 121624 [details] fc-list output
nope that's fine, just making sure it's not an Xnest bug. can you send or link me to Persnickety:style=HPLHS?
http://verdenet.gotdns.org/~frankj/PERSH___.TTF ^ this should be the font, unfortunately I can't make sure because my font viewer is a KDE app :/
hrm, that font appears fine. I still think this is a case of a corrupt or invalid font file causing the segfault. can you try removing everything but the basic stuff installed by xorg and seeing if you still have problems? media-fonts/corefonts-1-r2 media-fonts/dejavu-2.17 media-fonts/font-adobe-100dpi-1.0.0 media-fonts/font-adobe-75dpi-1.0.0 media-fonts/font-adobe-utopia-type1-1.0.1 media-fonts/font-bh-type1-1.0.0 media-fonts/font-cursor-misc-1.0.0 media-fonts/font-misc-misc-1.0.0 media-fonts/ttf-bitstream-vera-1.10-r3 is what i have.
Well, I uninstalled the font-set that Persnickity came with and the problem went away. Its not a gentoo font set so I will close the bug. The font set is Vintage Fonts from HPLHS (HP Lovecraft Historical Society). I dunno if it was all of them or one of them.
Well, I rebooted after 'fixing' the problem and it happened again, and I fixed the problem by unmerging media-fonts/font-bh-ttf-1.0.0 and the problem went away. I don't know if this is a kde bug or if those are bad fonts, but since these are part of Gentoo, I'll reopen the bug.
ok i'll look into this a bit further when i get some time.
i've added freetype-2.3.5 which has several crash fixes. can you give it a shot?
no response, no new reports. i think this bug was caused by incorrect permissions on font files and fixed by code added to fonts.eclass. please reopen if you still have this problem.