Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 181371 - media-libs/freetype-2.3.4-r2 - kde and some java applications crash X (SIGSEV) in
Summary: media-libs/freetype-2.3.4-r2 - kde and some java applications crash X (SIGSEV...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo Fonts Team
Depends on:
Reported: 2007-06-09 02:22 UTC by Frank Joseph Greer
Modified: 2008-02-22 01:23 UTC (History)
0 users

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

strace output of sample run (strace,548.34 KB, text/plain)
2007-06-09 02:24 UTC, Frank Joseph Greer
ltrace from sample run (compressed for size) (ltrace.bz2,142.14 KB, application/x-bzip2)
2007-06-09 02:28 UTC, Frank Joseph Greer
backtrace from sample run (xorg-backtrace,1.23 KB, text/plain)
2007-06-09 16:28 UTC, Frank Joseph Greer
core dump from Xnest (core.bz2,273.92 KB, application/x-bzip2)
2007-06-09 16:35 UTC, Frank Joseph Greer
fc-list output (fc-list.out,16.18 KB, text/plain)
2007-06-09 19:55 UTC, Frank Joseph Greer

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Joseph Greer 2007-06-09 02:22:30 UTC
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 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 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 (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-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"
CFLAGS="-march=athlon64 -pipe -O2"
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"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
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-*"
PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl /usr/portage/local/layman/sunrise /usr/local/overlays/xgl-coffee"
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"

System Specs:
AMD Athlon64 X2 4800+
ATi Radeon x1800 xt 512MB
DFI LanParty Ultra nf4 MB
Comment 1 Frank Joseph Greer 2007-06-09 02:24:33 UTC
Created attachment 121539 [details]
strace output of sample run
Comment 2 Frank Joseph Greer 2007-06-09 02:28:55 UTC
Created attachment 121541 [details]
ltrace from sample run (compressed for size)
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 07:10:24 UTC
Attach some backtrace here, please. Also, emerge -pv freetype output.
Comment 4 Frank Joseph Greer 2007-06-09 16:10:23 UTC
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
Comment 5 Frank Joseph Greer 2007-06-09 16:28:49 UTC
Created attachment 121596 [details]
backtrace from sample run
Comment 6 Frank Joseph Greer 2007-06-09 16:35:08 UTC
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.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-06-09 16:38:50 UTC
Comment 8 Ryan Hill (RETIRED) gentoo-dev 2007-06-09 19:42:29 UTC
can i get the output of fc-list?
does this only happen in Xnest?
Comment 9 Frank Joseph Greer 2007-06-09 19:55:06 UTC
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.
Comment 10 Frank Joseph Greer 2007-06-09 19:55:42 UTC
Created attachment 121624 [details]
fc-list output
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2007-06-09 20:21:15 UTC
nope that's fine, just making sure it's not an Xnest bug.  can you send or link me to Persnickety:style=HPLHS?
Comment 12 Frank Joseph Greer 2007-06-09 21:32:50 UTC
^ this should be the font, unfortunately I can't make sure because my font viewer is a KDE app :/
Comment 13 Ryan Hill (RETIRED) gentoo-dev 2007-06-10 17:08:14 UTC
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?


is what i have.
Comment 14 Frank Joseph Greer 2007-06-10 22:02:18 UTC
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.
Comment 15 Frank Joseph Greer 2007-06-16 06:45:43 UTC
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.
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2007-06-24 03:35:06 UTC
ok i'll look into this a bit further when i get some time.
Comment 17 Ryan Hill (RETIRED) gentoo-dev 2007-07-04 02:46:03 UTC
i've added freetype-2.3.5 which has several crash fixes.  can you give it a shot?
Comment 18 Ryan Hill (RETIRED) gentoo-dev 2008-02-22 01:23:03 UTC
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.