Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 364551 - >=www-client/firefox-4.0 crashes instantly on startup
Summary: >=www-client/firefox-4.0 crashes instantly on startup
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-23 07:04 UTC by Nikolay S. Rybaloff
Modified: 2013-08-14 10:42 UTC (History)
0 users

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


Attachments
Backtrace (with clean profile) (ff_backtrace.txt,33.72 KB, text/plain)
2011-04-23 07:04 UTC, Nikolay S. Rybaloff
Details
emerge --info (ff_emerge.txt,6.04 KB, text/plain)
2011-04-23 07:04 UTC, Nikolay S. Rybaloff
Details
backtrace (firefox_bt,86.88 KB, text/plain)
2011-04-27 22:16 UTC, Yiannis Marangos
Details
emerge --info (emerge_info,4.40 KB, text/plain)
2011-04-27 22:16 UTC, Yiannis Marangos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay S. Rybaloff 2011-04-23 07:04:05 UTC
Since the first bump to firefox-4 (and xulrunner-2) firefox refuses to start even with clean profile. It crashes with segmentation fault. I'm running firefox-3 atm, it does not have this issue.

Reproducible: Always
Comment 1 Nikolay S. Rybaloff 2011-04-23 07:04:37 UTC
Created attachment 270935 [details]
Backtrace (with clean profile)
Comment 2 Nikolay S. Rybaloff 2011-04-23 07:04:51 UTC
Created attachment 270937 [details]
emerge --info
Comment 3 Yiannis Marangos 2011-04-27 22:15:11 UTC
i have the same problem and i found that it crashed if i have enabled a specific addon.. this one https://addons.mozilla.org/en-US/firefox/addon/mozilla-archive-format/
Comment 4 Yiannis Marangos 2011-04-27 22:16:13 UTC
Created attachment 271391 [details]
backtrace
Comment 5 Yiannis Marangos 2011-04-27 22:16:32 UTC
Created attachment 271393 [details]
emerge --info
Comment 6 nE0sIghT 2011-05-08 20:26:51 UTC
Firefox-4.0 (since beta8 to release) worked fine on my old amd64 with athlon x2

After upgrading cpu to new core i5 and rebuilding world (with update to firefox 4.0.1) it now crashes with sigsegv. Same with clean profile

emerge --info
Portage 2.2.0_alpha31 (default/linux/amd64/10.0, gcc-4.6.0, glibc-2.12.2-r0, 2.6.38-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r4-x86_64-Intel-R-_Core-TM-_i5-2400_CPU_@_3.10GHz-with-gentoo-2.0.2
Timestamp of tree: Sun, 08 May 2011 17:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.2
sys-apps/openrc:          0.8.2-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.5.2, 4.6.0
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.81-r2
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo vortex php pcsx2 dustin gnome qutim mozilla desktop-effects sunrise arcon oss-overlay
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -ftree-loop-distribution"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://ftp.san.ru/unix/linux/gentoo/gentoo-distfiles http://mirrors.sgu.ru/gentoo/distfiles http://oss.mexmat.sgu.ru/soft/unix/gentoo/distfiles"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
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="/home/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/php /var/lib/layman/pcsx2 /var/lib/layman/dustin /var/lib/layman/gnome /usr/local/portage/layman/qutim /var/lib/layman/mozilla /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/sunrise /usr/local/portage/layman/arcon /usr/local/portage/layman/oss-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac aalib acl acpi alisp alsa amd64 applet archive artworkextra audiofile automount avx bazaar berkdb bittorrent bittorrent-external branding bzip2 cairo caps cdr cdrtools chardet chdir cjk cli consolekit cover cracklib crypt css cuda cue cups cupsddk curl custom-optimization cvs cxx darcs dbus device-mapper dga dht dirac directfb disk-partition divx djvu dri dv dvd dvdr enca encode exif extensions extras facedetect fat ffmpeg fileinfo firefox flac fluidsynth fontconfig fortran frei0r fts3 fuse gd gdbm gdu gif glade glib glitz gnome gnome-keyring gpm graphite grub gstreamer gtk gtkstyle gzip hddtemp iconsets iconv icq icu id3tag idle idn inifile intl jabber java java6 javascript jingle joystick jpeg jpeg2k kate kvm ladspa lame lcms libass libcaca libnotify libsamplerate libtiger lights lirc lm_sensors loop-aes lucene lyrics lzma lzo mad matroska melt mercurial mikmod mmx mmxext mng modules mp2 mp3 mp4 mp4live mpeg mpeg2 mpg123 mpi mplayer mpu401 mtp mudflap multilib musepack mysql mysqli nautilus ncurses netplay network nls nptl nptlonly nsplugin nss ntfs nvidia offensive ofx ogg ogm oodict openal opencore-amr opengl openmp openssl opensslcrypt optimization optimized-qmake pam parse-clocks pcf pch pcre pdo perl php plugins png policykit ppds pppd projectm psf python qt3support qt4 quicktime rar readline realmedia romio rtsp ru-dv ru-g ru-i ru-k sasl scale0tilt screenshot sdl secure-delete session skins slp smp sndfile sound sounds speex spell sqlite sqlite3 sse sse2 sse3 sse4 ssl ssse3 stream strong-optimization subtitles svg sysfs t1lib taglib tcpd textures theora threads thunderbird tiff timidity tls toolbar trayicon truetype tta twolame udev unicode unzip usb v4l2 vamp vdpau vorbis vorbis-psy vpx wav wavpack webkit whiteboarding wma wmp x264 xanim xattr xcb xcomposite xhtml xinetd xml xmlreader xmlrpc xmlwriter xorg xosd xpm xulrunner xv xvid zip 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 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 cgi cgid 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="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" LIRC_DEVICES="devinput" NETBEANS_MODULES="apisupport harness ide java nb websvccommon php" PHP_TARGETS="php5-3 php5-2" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Nikolay S. Rybaloff 2011-05-09 07:27:56 UTC
(In reply to comment #6)
> Firefox-4.0 (since beta8 to release) worked fine on my old amd64 with athlon x2
> 
> After upgrading cpu to new core i5 and rebuilding world (with update to firefox
> 4.0.1) it now crashes with sigsegv. Same with clean profile

nE0sIghT, you have a point

I've tried FF4 with "old" C2D Intel CPU, and it works fine.
Looks like GCC is the culprit, as emerging xulrunner-2 and firefox-4 with these CFLAGS:
   "-march=native -pipe -O2 -mnoavx"
produces fully functional ff4
Comment 8 nE0sIghT 2011-05-09 08:20:57 UTC
Nikolay, thanks for solution
I'm added -mno-avx flag to /etc/portage/env for xulrunner and thunderbird (version 3.3 alpha from mozilla overlay, based on xulrunner2, also affected) and they now compiled and running fine.
Comment 9 Jory A. Pratt gentoo-dev 2011-05-09 23:01:16 UTC
http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commitdiff;h=216b50b3890544506ba2fb97decc960a1d49418e

This will be merged with the tree in the next few hours, I suggest everyone that is experiencing failure to sync up in roughly 5 hours and rebuild xulrunner/firefox and if your using tb-3.3 it as well.
Comment 10 Jory A. Pratt gentoo-dev 2011-05-10 01:44:36 UTC
Tree and overlay are both in sync thanks for reporting.
Comment 11 Toralf Förster gentoo-dev 2013-02-24 18:04:12 UTC
/me wonders whether after 2 years of developent the flag no-avx is still necessary
Comment 12 Nikolay S. Rybaloff 2013-02-25 03:27:03 UTC
(In reply to comment #11)
> /me wonders whether after 2 years of developent the flag no-avx is still
> necessary

Looks so. At install stage:

..snip..
resource://gre/modules/DownloadLastDir.jsm
resource://gre/modules/devtools/CmdTilt.jsm
resource://gre/modules/SettingsQueue.jsm
resource://gre/modules/LightweightThemeManager.jsm
resource://gre/modules/devtools/dbg-server.jsm
/bin/sh: line 1: 11279 Segmentation fault      /var/tmp/portage/www-client/firefox-19.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/run-mozilla.sh /var/tmp/portage/www-client/firefox-19.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/dist/bin/xpcshell -g "$PWD" -a "$PWD" -f /var/tmp/portage/www-client/firefox-19.0/work/mozilla-release/toolkit/mozapps/installer/precompile_cache.js -e "populate_startupcache('startupCache.zip');"
make[1]: *** [prepare-package] Error 139
make[1]: Leaving directory `/var/tmp/portage/www-client/firefox-19.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu/browser/installer'
make: *** [install] Error 2
emake failed
 * ERROR: www-client/firefox-19.0 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  93:  Called src_install
 *   environment, line 4951:  Called die
 * The specific snippet of code:
 *       MOZ_MAKE_FLAGS="${MAKEOPTS}" emake DESTDIR="${D}" install || die "emake install failed";
 * 
 * If you need support, post the output of `emerge --info '=www-client/firefox-19.0'`,
 * the complete build log and the output of `emerge -pqv '=www-client/firefox-19.0'`.
 * The complete build log is located at '/var/tmp/portage/www-client/firefox-19.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-client/firefox-19.0/temp/environment'.
 * Working directory: '/var/tmp/portage/www-client/firefox-19.0/work/mozilla-release/obj-x86_64-unknown-linux-gnu'
 * S: '/var/tmp/portage/www-client/firefox-19.0/work/mozilla-release'
Comment 13 Christian Birchinger (RETIRED) gentoo-dev 2013-08-14 10:42:47 UTC
Just a small information update, no action required.

The issue still exists. I've tried to build FF 23 yesterday and the build fails when there is AVX enabled in the CFLAGS (in my case march=corei7-avx fails while march=corei7 works)