Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 285287 - new versions of www-client/mozilla-firefox and gnome-base/librsvg still having crashing problems
Summary: new versions of www-client/mozilla-firefox and gnome-base/librsvg still havin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-17 10:24 UTC by Ashu Tiwary
Modified: 2012-04-09 20:03 UTC (History)
2 users (show)

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


Attachments
gdb bt/full from prism crash showing librsvg location (librsvg_bt.log,5.06 KB, text/plain)
2009-09-17 10:25 UTC, Ashu Tiwary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashu Tiwary 2009-09-17 10:24:03 UTC
www-client/mozilla-firefox-3.5.3
gnome-base/librsvg-2.26.0
gcc 4.4.1

Pretty much identical to bug 239992: when performing certain actions in firefox (e.g., a javascript local file access dialogue always triggers this), firefox crashes; running through gdb, I can see firefox is crashing in librsvg - I've rebuilt librsvg w/ symbols enabled and am attaching the gdb backtrace.

I've rebuilt librsvg at the current + prior level (2.22.3-r1) - same problem.

Same thing happens with the current Prism binary from Mozilla.

The problems started appearing after a "botched" update of libxcb - I found the Gentoo docs on updating xcb to 1.4 (http://www.gentoo.org/proj/en/desktop/x/x11/libxcb-1.4-upgrade-guide.xml) too late: I had to rebuild much of the X + GNOME libs after pretty much everything started failing after I updated libxcb.  xcb-rebuilder.sh now seems to say everything is fine on my system.


I'm trying out with rebuilding xulrunner (1.9.1.3) + firefox (3.5.3); will see if anything changes.


Reproducible: Always

Steps to Reproduce:
1.As outlined above; I've been able to narrow down the crash to most often occurring when a file selection dialogue is supposed to popup (of course, ff crashes before the popup can appear).
2.
3.

Actual Results:  
FF crashes

Expected Results:  
FF doesn't crash

~ $ emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, 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_Duo_CPU_T7700_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 17 Sep 2009 01:45:02 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 1.3.7-r1, 2.1.9-r1
dev-lang/python:     2.4.6, 2.5.4-r3, 2.6.2-r1, 3.1.1
dev-python/pycrypto: 2.0.1-r8
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.4_p6, 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="-O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/openjms/config /usr/lib/fax /usr/share/config /var/lib/hsqldb /var/spool/fax/etc /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /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="-O2 -pipe -march=native -mmmx -msse -msse2 -msse3 -mssse3 -mfpmath=sse -ggdb"
DISTDIR="/mnt/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://mirror.datapipe.net/gentoo ftp://mirror.mcs.anl.gov/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,--as-needed,-O1,--sort-common"
LINGUAS="en en_US en_GB en_IN hi hi_IN de de_DE es es_ES es_MX fr fr_FR it it_IT ja ja_JP ko ko_KR ru ru_RU zh zh_CN zh_HK zh_TW"
MAKEOPTS="-j3"
PKGDIR="/mnt/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=500"
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="/mnt/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/portage/local /usr/local/portage/layman/jokey /usr/local/portage/layman/java-overlay /usr/local/portage/layman/vmware /usr/local/portage/layman/sunrise"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cli cracklib crypt cups dbus doc dri examples fortran gdbm gpm hal iconv ipv6 isdnlog mmx mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection sample session source spl sse sse2 sse3 ssl ssse3 sysfs tcpd unicode x86 xorg 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 asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="adc65 agfa-cl20 aox barbie canon casio clicksmart310 digigr8 digita dimera directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak konica largan lg_gsm mars minolta mustek panasonic pccam300 pccam600 polaroid ptp2 ricoh samsung sierra sipix smal sonix sonydscf1 sonydscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba agfa_cl20 casio_qv dimagev dimera3500 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica_qm150 panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh_g3 sipix_blink sipix_blink2 sipix_web2 sony_dscf1 sony_dscf55 toshiba_pdrm11 jl2005a topfield" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse synaptics virtualbox vmmouse void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB en_IN hi hi_IN de de_DE es es_ES es_MX fr fr_FR it it_IT ja ja_JP ko ko_KR ru ru_RU zh zh_CN zh_HK zh_TW" LIRC_DEVICES="all" NETBEANS_MODULES="apisupport harness ide java nb cnd groovy gsf identity j2ee mobility php profiler soa visualweb webcommon websvccommon xml dlight enterprise ergonomics ruby" USERLAND="GNU" VIDEO_CARDS="nvidia nv vmware fbdev v4l vesa vga virtualbox"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Ashu Tiwary 2009-09-17 10:25:03 UTC
Created attachment 204400 [details]
gdb bt/full from prism crash showing librsvg location
Comment 2 Ashu Tiwary 2009-09-17 10:35:25 UTC
Rebuildig xulrunner + firefox has had no effect.
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-17 11:43:07 UTC
Please rebuild glib, librsvg, xulrunner and firefox with CFLAGS="-O2 -march=native -pipe". It is likely that the other options are either redundant with march=native (see man gdb for that) or might lead to generation of incorrect code by gcc (this would be a gcc bug of course and gcc-4.4 is known to have some problems with exotic CFLAGS currently).
Comment 4 Ashu Tiwary 2009-09-17 16:19:41 UTC
Rebuilt glib / gtk+ / librsvg / xulrunner / firefox w/ CFLAGS as suggested: all is working well (several easily reproducible crashes are no longer occurring).

I'm closing as "invalid" since the issue was my configuration.

Gilles: your fast response is very much appreciated!

  
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-17 16:58:27 UTC
CCing toolchain just in case they are interested in reviewing your cflags for filling up their gcc-4.4 blacklist (if any).
Comment 6 Mark Loeser (RETIRED) gentoo-dev 2009-09-17 18:32:38 UTC
This isn't fixed, the compiler produced bad code.  That has to be fixed.
Comment 7 Ashu Tiwary 2009-09-17 19:20:20 UTC
OK - since it is very easy for me to reproduce, please let me know whatever instructions you wish for instrumentation / tracing / debug data collection, and I'll recompile, reproduce, collect data, and submit.
Comment 8 Steffen Hau 2010-01-22 16:00:56 UTC
Hi,

I have this issue as well with firefox 3.6. firefox is not starting at all, even in safe-mode the segfault occurs without showing anything.

Program received signal SIGSEGV, Segmentation fault.
0xb19d69f3 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2
(gdb) bt full
#0  0xb19d69f3 in rsvg_parse_path_do_cmd () from /usr/lib/librsvg-2.so.2
No symbol table info available.
#1  0x00000000 in ?? ()
No symbol table info available.

Before I updated to 3.6 I had lots f crashes for example if I download a file, which already exists. Instead of asking to overwrite it, firefox crashed.

Here is my emerge info:
Portage 2.2_rc61 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.33-rc4-HAUIHAU i686)
=================================================================
System uname: Linux-2.6.33-rc4-HAUIHAU-i686-Intel-R-_Core-TM-2_CPU_T7200_@_2.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 22 Jan 2010 11:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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"
CXXFLAGS="-march=core2 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fakeroot fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s"
LINGUAS="de"
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="/var/lib/layman/gnome /var/lib/layman/x11 /var/lib/layman/hauihau"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi alsa apache2 bash-completion berkdb bidi bluetooth branding bzip2 cairo cdb cdda cddb cdparanoia cdr cli cracklib crypt ctype cups curl cxx dbus dedicated dga directfb doc dri dts dv dvd dvdr dvdread encode examples exif ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif glitz glut gmp gnome gnome-keyring gnutls gphoto2 gstreamer gtk gtk2 hal htmlhandbook iconv ieee1394 imagemagick imap imlib innodb ipod ipv6 java java5 java6 javascript jpeg jpeg2k kde lame lcms ldap libcaca libnotify libsamplerate lua mad mikmod mmap mmx mng modules mono mp3 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls noseamonkey nptl nptlonly nsplugin offensive ogg openal opengl openmp oscar pam pcmcia pcre pdf perl php plasma png policykit posix ppds pppd python qt4 quicktime readline reflection rss rtc ruby samba sasl sdl session sndfile snmp sockets spell spl sqlite sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb userlocales v4l2 vcd vim-syntax visualization vorbis win32codecs x264 x86 xattr xcb xcomposite xine xinerama xml xorg xosd xpm xscreensaver xulrunner xv xvid yahoo 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon casio_qv fuji kodak konica minolta mustek panasonic samsung sonydscf1 sonydscf55 toshiba" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon radeonhd" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 SpanKY gentoo-dev 2012-04-09 20:03:48 UTC
pretty sure gcc 4.5.x+ is correct now.  any remaining issues are bugs in the respective packages that misalign the stack.