Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283487 - media-libs/fontconfig being compiled with gcc-4.4 and -O3 causes applications to crash
Summary: media-libs/fontconfig being compiled with gcc-4.4 and -O3 causes applications...
Status: RESOLVED DUPLICATE of bug 270120
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-02 08:19 UTC by Fabio Coatti
Modified: 2009-09-09 07:12 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Coatti 2009-09-02 08:19:32 UTC
After recent (01 Sep) updates, both firefox and ooffice crashes with SIGSEGV.
firefox crash strace:
29992 open("/usr/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
29992 open("/usr/share/pixmaps/default/cursors/xterm", O_RDONLY) = -1 ENOENT (No such file or directory)
29992 open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
29992 open("/etc/gtk-2.0/gtk.immodules", O_RDONLY|O_LARGEFILE) = 28
29992 fstat64(28, {st_mode=S_IFREG|0644, st_size=1724, ...}) = 0
29992 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fb6000
29992 read(28, "# GTK+ Input Method Modules file\n"..., 4096) = 1724
29992 read(28, ""..., 4096)             = 0
29992 read(28, ""..., 4096)             = 0
29992 close(28)                         = 0
29992 munmap(0xb7fb6000, 4096)          = 0
29992 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
29992 unlink("/root/.mozilla/firefox/f3e4ch9t.default/lock") = 0
29992 rt_sigaction(SIGSEGV, {SIG_DFL, [], 0}, NULL, 8) = 0
29992 rt_sigprocmask(SIG_UNBLOCK, [SEGV], NULL, 8) = 0
29992 tgkill(29992, 29992, SIGSEGV)     = 0
29992 --- SIGSEGV (Segmentation fault) @ 0 (0) ---


oowriter crash:
30245 open("/usr/lib/openoffice/basis3.1/share/fonts/truetype/fonts.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
30245 lstat64("/usr/lib/openoffice/program/../basis-link/share/fonts/type1/fonts.alias", 0xbff38e80) = -1 ENOENT (No such file or directory)
30245 open("/usr/lib/openoffice/program/../basis-link/share/fonts/type1/fonts.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
30245 lstat64("/home/cova/.ooo3/user/fonts/fonts.alias", 0xbff38e80) = -1 ENOENT (No such file or directory)
30245 open("/home/cova/.ooo3/user/fonts/fonts.alias", O_RDONLY) = -1 ENOENT (No such file or directory)
30245 open("/usr/lib/openoffice/program/../basis-link/share/fonts/type1", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
30245 mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb1704000
30245 mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb16f4000
30245 mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb16e4000
30245 mmap2(NULL, 65536, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb16d4000
30245 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
30245 futex(0xb79d2d3c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
30245 open("/tmp/crxmlEHj474", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 31
30245 open("/tmp/crstkuoIMyj", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 32
30245 open("/tmp/crchkRsdwZx", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 33


the latest updates on my system are (elogv):
dev-libs/glib-2.20.5 - 01/09/2009
net-fs/samba-client-3.3.7 - 01/09/2009
net-voip/ekiga-3.2.5-r2 - 01/09/2009
net-voip/ekiga-3.2.5-r1 - 01/09/2009
media-gfx/gimp-2.6.7 - 01/09/2009
media-gfx/gimp-2.6.6 - 01/09/2009
media-libs/gegl-0.1.0 - 01/09/2009
dev-util/meld-1.3.1 - 01/09/2009
dev-util/meld-1.3.0 - 01/09/2009
x11-themes/gtk-engines-2.18.2-r1 - 01/09/2009
x11-themes/gtk-engines-2.18.2 - 01/09/2009
media-sound/alsa-tools-1.0.21 - 01/09/2009
media-libs/libgphoto2-2.4.7 - 01/09/2009
media-sound/alsa-utils-1.0.21 - 01/09/2009
dev-python/gdata-2.0.2 - 01/09/2009
dev-python/gdata-2.0.1-r1 - 01/09/2009
media-libs/alsa-lib-1.0.21 - 01/09/2009
media-libs/babl-0.1.0 - 01/09/2009
perl-core/IO-Compress-2.021 - 01/09/2009
perl-core/Compress-Raw-Zlib-2.021 - 01/09/2009
perl-core/Compress-Raw-Bzip2-2.021 - 01/09/2009
media-libs/fontconfig-2.7.2 - 01/09/2009
sys-power/acpid-1.0.10_p4 - 01/09/2009
sys-process/htop-0.8.3 - 01/09/2009
media-sound/alsa-headers-1.0.21 - 01/09/2009

This happens on two different machines. I've launched firefox cleaning .mozilla dir, just to be sure to start with a clean configuration.


Reproducible: Always

Steps to Reproduce:
1. launch firefox


Actual Results:  
cova@hobbes ~ $ firefox
Segmentation fault
cova@hobbes ~ $



hobbes ~ # emerge --info
Portage 2.2_rc40 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30.5 i686)
=================================================================                             
System uname: Linux-2.6.30.5-i686-Intel-R-_Pentium-R-_D_CPU_3.00GHz-with-gentoo-2.0.1         
Timestamp of tree: Wed, 02 Sep 2009 07:00:01 +0000                                            
app-shells/bash:     4.0_p28                                                                  
dev-java/java-config: 2.1.9                                                                   
dev-lang/python:     2.6.2-r1, 3.1.1                                                          
dev-util/cmake:      2.6.4-r2                                                                 
sys-apps/baselayout: 2.0.1                                                                    
sys-apps/openrc:     0.4.3-r3                                                                 
sys-apps/sandbox:    2.1                                                                      
sys-devel/autoconf:  2.13, 2.63-r1                                                            
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11                          
sys-devel/binutils:  2.19.1-r1                                                                
sys-devel/gcc-config: 1.4.1                                                                   
sys-devel/libtool:   2.2.6a                                                                   
virtual/os-headers:  2.6.30-r1                                                                
ACCEPT_KEYWORDS="x86 ~x86"                                                                    
CBUILD="i686-pc-linux-gnu"                                                                    
CFLAGS="-O3 -march=native -mtune=native -msse2 -mfpmath=sse -fomit-frame-pointer -pipe"       
CHOST="i686-pc-linux-gnu"                                                                     
CONFIG_PROTECT="/etc /usr/share/config"                                                       
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"        
CXXFLAGS="-O3 -march=native -mtune=native -msse2 -mfpmath=sse -fomit-frame-pointer -pipe"              
DISTDIR="/usr/portage/distfiles"                                                                       
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                      
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"                                                                     
LANG="it_IT.utf8"                                                                                      
LC_ALL="it_IT.utf8"                                                                                    
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aim alsa amrnb amrwb apache2 araneida ass audiofile avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr cjk cli consolekit cracklib crypt cups curl dba dbus dirac dns dri dts dv dvb dvd dvdr dvdread dxr3 eds emboss enca encode esd evo exif fam fame fbcon ffmpeg fftw firefox flac fortran ftp gd gdbm gif gimp gmp gnome gpm gstreamer gtk h323 hal iconv icq ifp imagemagick imap innodb ipod ipv6 isdnlog ithreads jabber jack java javascript jpeg kde lcms ldap libcaca libnotify live lzo mad maildir mdnsresponder-compat mhash mikmod mime mjpeg mmap mmx mmxext mng mozdevelop mozilla mp3 mp4 mpeg msn mtp mudflap ncurses network njb nls nptl nptlonly nsplugin offensive ofx ogg openal opengl openmp oscar pam pcre pdf perl php pipechan plotutils png pnm ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection rtc sasl schroedinger sdl session sha512 sip slp sndfile snmp sox speex spell spl sse sse2 ssh ssl startup-notification svg sysfs tcpd theora threads thunar tiff truetype type1 unicode usb v4l v4l2 vcd vdpau videos vorbis wav win32codecs wmf wxwindows x264 x86 xface xft xine xinerama xml xorg xosd xpm xscreensaver xsl xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mars Liu 2009-09-02 19:37:05 UTC
I confirm this bug. Both mozilla 3.0.13 and 3.5.2-r2 suffer this problem. But I don't have openoffice installed

!!! CONFIG_PROTECT is emptyPortage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.4.1, glibc-2.10.1-r0, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-with-gentoo-2.0.1
Timestamp of tree: Wed, 02 Sep 2009 03:30:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.9
dev-lang/python:     2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r5
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT=""
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8-sse3 -O3 -pipe -fno-ipa-cp-clone"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="C"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN zh"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
USE="3dnow X accessibility acl alsa avahi berkdb bzip2 caps cdr cli consolekit cracklib crypt cups dbus doc dri dvd fortran fuse gdbm gif glade gnome gnome-keyring gpm gstreamer gtk hal iconv ipv6 isdnlog java jpeg libnotify mmx mudflap nautilus ncurses nls nptl nptlonly ntpl opengl openmp pam pcre perl png policykit pppd python readline reflection samba session smp sndfile spl sse sse2 ssl svg sysfs tcpd threads tiff truetype unicode x86 xinerama xml xorg xprint xrandr zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" USERLAND="GNU" VIDEO_CARDS="fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fabio Coatti 2009-09-02 21:48:44 UTC
Maybe is not relevant, but I've this bug on two out of three machines. the two affected are ~x86 arch while the working one is ~amd64 (all with portage-of-the-day packages installed and the same kernel)

the two not working machines uses different video cards, one with nvidia driver, one with radeon (free) ati driver, so I will exclude something related to video drivers.
Comment 3 Fabio Coatti 2009-09-03 20:33:03 UTC
I'm quite convinced that this behaviour is related to gcc 4.4.1 bug that prevents to build correctly some packages when -O3 optimization is active.
in gentoo bugzilla you can find several reports (notably, glib) of packages that crash when compiled with gcc 4.4.1 / -O3
Now I'm compiling all libs and packages used by firefox with -O2 and then will report back, hoping for the best :)
Comment 4 Fabio Coatti 2009-09-03 20:57:57 UTC
Confirmed. After recompiling fontconfig with -O2 optimization flag, firefox (and OO ) works just fine :)
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2009-09-05 09:05:46 UTC

*** This bug has been marked as a duplicate of bug 270120 ***