Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 46708 - mozilla-firefox crashes when compiled with -funroll-loops
Summary: mozilla-firefox crashes when compiled with -funroll-loops
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-03 12:23 UTC by Corey Downing
Modified: 2004-04-25 21:41 UTC (History)
0 users

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 Corey Downing 2004-04-03 12:23:21 UTC
After a recent recompiling of my system with new cflags, firefox and thunderbird would fail to open. They wouldn't output any error data to console. To fix this, I removed -funroll-loops from my cflags, and they both work as expected now.

What exactly happened: Tried to run firefox/thunderbird, window would show up briefly and then exit.

CFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -ftracer -fprefetch-loop-arrays -freduce-all-givs -fmove-all-movables -fforce-addr -funroll-loops -pipe -mmmx -msse -mfpmath=sse -fomit-frame-pointer"

Those are the exact CFLAGS used that produced this error (CXXFLAGS are the same).

Reproducible: Always
Steps to Reproduce:
1. 
CFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -ftracer -fprefetch-loop-arrays -freduce-all-givs -fmove-all-movables -fforce-addr -funroll-loops -pipe -mmmx -msse -mfpmath=sse -fomit-frame-pointer" emerge mozilla-firefox
2. Run firefox

Note that thunderbird may be substituted and same results will be achieved.
Actual Results:  
Window was created but crashed momentarily after; no output to the console from
firefox/thunderbird.


emerge --info:

Gentoo Base System version 1.4.3.13p1
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-rc3-love1)
=================================================================
System uname: 2.6.5-rc3-love1 i686 AMD Athlon(tm) XP 2500+
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -ftracer -fprefetch-loop-arrays
-freduce-all-givs -fmove-all-movables -fforce-addr -funroll-loops -pipe -mmmx
-msse -mfpmath=sse -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -mcpu=athlon-xp -ftracer -fprefetch-loop-arrays
-freduce-all-givs -fmove-all-movables -fforce-addr -funroll-loops -pipe -mmmx
-msse -mfpmath=sse -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi aim alsa apm arts avi berkdb cdr crypt cups directfb dvd encode esd
fbcon foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod
mmx motif mpeg ncurses nls oggvorbis opengl oscar oss pam pdflib perl png python
quicktime readline sdl slang spell sse ssl svga tcpd tiff truetype usb x86
xinerama xml2 xmms xv zlib"
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-04-25 21:41:07 UTC
I don't know what changed on your system between builds.  -funroll-loops is already stripped from the mozilla builds and has been for a long time.  I think it must have just been building it twice that solved the problem for some unknown reason... :-(