Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286189 - Firefox crashes if fontconfig is compiled with -O3
Summary: Firefox crashes if fontconfig is compiled with -O3
Status: RESOLVED DUPLICATE of bug 270120
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 286190 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-24 09:50 UTC by Frédéric COIFFIER
Modified: 2009-10-08 07:36 UTC (History)
2 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 Frédéric COIFFIER 2009-09-24 09:50:15 UTC
www-client/mozilla-firefox-3.5.3 crashes when we enter in Print dialog or Preference dialog.

The beginning of the backtrace is the following :
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7eef6e0 (LWP 6914)]         
FcFontSetMatchInternal (config=<value optimized out>, sets=0xbf9a504c, nsets=1, 
    p=0xaaae4820, result=0xbf9a5110) at fcmatch.c:448                           
448     fcmatch.c: No such file or directory.                                   
        in fcmatch.c                                                            
Current language:  auto; currently c                                            
(gdb) bt                                                                        
#0  FcFontSetMatchInternal (config=<value optimized out>, sets=0xbf9a504c,      
    nsets=1, p=0xaaae4820, result=0xbf9a5110) at fcmatch.c:448                  
#1  0xb7d5044e in IA__FcFontMatch (config=0xb79b13d0, p=0xaaae4820,             
    result=0xbf9a5110) at fcmatch.c:551                                         
#2  0xb7ad5c2d in pango_fc_fontset_load_next_font (fontset=0xaaae27c0)          
    at pangofc-fontmap.c:761                                                    
#3  0xb7ad612f in pango_fc_fontset_foreach (fontset=0xaaae27c0,                 
    func=0xb7a96d30 <get_shaper_and_font_foreach>, data=0xbf9a51d0)             
    at pangofc-fontmap.c:879                                                    
#4  0xb7a9a9c8 in pango_fontset_foreach (fontset=0xaaae27c0,                    
    func=0xb7a96d30 <get_shaper_and_font_foreach>, data=0xbf9a51d0)             
    at pango-fontset.c:101                                                      
#5  0xb7a97960 in get_shaper_and_font (state=0xbf9a52a4, wc=<value optimized out>, 
    shape_engine=0xbf9a5260, font=0xbf9a525c) at pango-context.c:1140              
#6  0xb7a98118 in itemize_state_process_run (state=0xbf9a52a4)                     
    at pango-context.c:1362                                                        
#7  0xb7a98527 in pango_itemize_with_base_dir (context=0xaaae2760,                 
    base_dir=PANGO_DIRECTION_LTR,                                                  
    text=0xaaadfd30 "Voix ambiguë d'un c�\223ur qui, au zéphyr, préfère les jattes de kiwis.", start_index=0, length=72, attrs=0xaaae4790, cached_iter=0xaaae47f0)      
    at pango-context.c:1467                                                         
#8  0xb7aa1e2c in pango_layout_check_lines (layout=<value optimized out>)           
    at pango-layout.c:3830                                                          
#9  0xb7aa3636 in pango_layout_get_extents_internal (layout=0xaaab0f90,             
    ink_rect=0x0, logical_rect=0xbf9a59f8, line_extents=0x0) at pango-layout.c:2444 
#10 0xb7ad14ce in pango_fc_font_create_metrics_for_context (fcfont=0xb7b4c060,      
    context=0xaaae2760) at pangofc-font.c:526                                       
#11 0xb7d120d4 in pango_cairo_fc_font_create_metrics_for_context (                  
    cfont=0xb7b4c060, context=0xaaae2760) at pangocairo-fcfont.c:72                 
#12 0xb7d0dcd7 in _pango_cairo_font_get_metrics (font=0xb7b4c060,                   

A similar crashes can occur www-plugins/adobe-flash-10.0.32.18

The problem is described on the RedHat bugzilla :
https://bugzilla.redhat.com/show_bug.cgi?id=489290

A workaround is to compile fontconfig with -O2 instead of -O3.

Reproducible: Always

Steps to Reproduce:
1. Compile fontconfig with -O3
2. Launch Firefox
3. Open a dialog box like Print
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-24 09:58:06 UTC
*** Bug 286190 has been marked as a duplicate of this bug. ***
Comment 2 Frédéric COIFFIER 2009-09-24 11:47:58 UTC
I'm sorry for the duplicate : I got an error with Bugzilla about sendmail. So, I've posted it again.
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2009-10-02 05:47:03 UTC
emerge --info please.  if you're on x86 this is a duplicate of bug #270120.
Comment 4 Frédéric COIFFIER 2009-10-02 07:14:41 UTC
Yes, x86 :

Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo i686)
=================================================================                                  
System uname: Linux-2.6.31-gentoo-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Wed, 30 Sep 2009 11:15:01 +0000                                                  
app-shells/bash:     4.0_p33                                                                        
dev-java/java-config: 2.1.9-r1                                                                      
dev-lang/python:     2.6.2-r2, 3.1.1-r1                                                             
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.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="-march=core2 -O3 -g2 -ggdb -pipe -fomit-frame-pointer"                                      
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/config /var/lib/hsqldb"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                                                                                                  
CXXFLAGS="-march=core2 -O3 -g2 -ggdb -pipe -fomit-frame-pointer"                                                                                                                    
DISTDIR="/usr/portage/distfiles"                                                                                                                                                    
FEATURES="distlocks fixpackages metadata-transfer nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch"                                 
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                               
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j5"
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/portage-overlay/layman/xwing /usr/portage-overlay/layman/secondlife /usr/portage-overlay/layman/kde-testing /usr/portage-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi addressbook alsa amr apache2 apm berkdb blender-game bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl dbus dga dirac djvu dri dts dvd dvdr eds emboss encode exif fam ffmpeg fftw firefox flac foomaticdb fortran ftp gd gdbm geoip geolocation gif gimp glib gphoto2 gpm graphviz gs gsm gtk hal iconv id3tag ipv6 isdnlog java java6 jingle jpeg jpeg2k kde kontact kpathsea libnotify libsamplerate libwww lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg msn mtp mudflap musicbrainz ncurses network nls nptl nptlonly nsplugin ogg openal openexr opengl openmp oss pam pcre pdf plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection ruby samba scanner sdl semantic-desktop session slang sms speex spell spl splitdebug sse sse2 ssl startup-notification subversion svg sysfs tcpd theora threads thunar tiff truetype unicode usb v4l v4l2 verse vorbis webpresence wifi win32codecs winpopup wmf x264 x86 xcb xcomposite xine xinerama xml xorg xscreensaver xulrunner xv xvid yahoo zlib zvbi" 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 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" USERLAND="GNU" VIDEO_CARDS="vesa fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


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