Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15230 - Mozilla crashes on some websites if compiled with -Os
Summary: Mozilla crashes on some websites if compiled with -Os
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-06 15:14 UTC by Louai Khanji
Modified: 2003-10-23 13:30 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 Louai Khanji 2003-02-06 15:14:00 UTC
If mozilla is compiled with Os it crashes on certain websites. It is stable for
the most part, but crashes on a few. It might be wise to filter this out and
substitute with O2.

Reproducible: Always
Steps to Reproduce:
1. Go to http://www.ctrlaltdel-online.com or http://www.emulation64.com


Actual Results:  
Mozilla segfaults

Expected Results:  
-

primary root # emerge info
Portage 2.0.46-r11 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 AMD Duron(tm) Processor
GENTOO_MIRRORS="ftp://gentoo.linux.no/pub/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm avi crypt cups encode gif jpeg libg++ libwww mikmod mpeg
ncurses nls pdflib png qtmt quicktime spell xml2 xmms xv zlib gdbm berkdb slang
readline arts svga tcltk java guile mysql sdl gpm tcpd pam ssl perl python esd
imlib oggvorbis motif opengl X cdr cdrw truetype gtk gnome kde qt alsa mozilla
3dnow mmx sse"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 1 Fernand Albarracin 2003-02-07 17:28:09 UTC
I wasn't able to reproduce the crash using Mozilla and Galeon on both Web site. Reading the Mozilla ebuild, I think CFLAGS and CXXFLAGS are filtered anyway. I'll be happy to provide testing result if someone just tell me how to disable those filters. Commenting the following lines is enough ?

strip-flags
export CFLAGS="${CFLAGS//-O?}"
export CXXFLAGS="${CFLAGS//-O?}"

Oh, http://bugs.gentoo.org/show_bug.cgi?id=13287 should probably be mentioned.

$ qpkg -I -i mozilla
net-www/mozilla-1.2.1-r5 *
        The Mozilla Web Browser [ http://www.mozilla.org ]

$ qpkg -I -i galeon
net-www/galeon-1.2.7-r1 *
        A GNOME Web browser based on gecko (mozilla's rendering engine) [http://galeon.sourceforge.net ]

# emerge info
Portage 2.0.46-r9 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.21-pre4 i686 AMD Athlon(tm) MP 1800+
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/mnt/shared/distfiles"
PKGDIR="/mnt/shared/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 apm crypt encode gif jpeg libg++ mikmod mpeg pdflib qtmt quicktime spel
l xml2 xmms gdbm berkdb readline tcltk guile X sdl tcpd pam libwww ssl perl pyth
on esd imlib mozilla 3dnow -aalib -acl -afs alsa -arts avi -canna -cups dvd -fbc
on -flash -freewnn gnome -gpm gtk -imap -java -ldap -kde -matrox -maildir mbox -
motif mmx -mysql -nas ncurses -nls -oci8 -odbc oggvorbis opengl oss -pcmcia -pda
 png -postgres -qt -samba -slang -snmp -socks5 sse -svga tetex tiff truetype xv 
-zeo zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-mp -Os -fomit-frame-pointer -pipe"
CXXFLAGS="-march=athlon-mp -Os -fomit-frame-pointer -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"
Comment 2 Marc Doughty 2003-07-11 13:15:52 UTC
I thought -Os was filtered as well, if so, the reporter may have disabled the filter, nullifying the validity of this bug. The only other thing I can think of is that Mozilla is LINKING to something (built with -Os) that trips it up.
Comment 3 Brian Jackson (RETIRED) gentoo-dev 2003-08-02 22:14:53 UTC
marking this as needinfo, if the original reporter wants to clarify that it still happens and that he was using an untampered ebuild then feel free to reopen it
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2003-10-23 13:30:03 UTC
re-reclosing