Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144268 - compiling firefox 1.5.0.5 with gcc 4.1.1 and -Os causes javascript errors
Summary: compiling firefox 1.5.0.5 with gcc 4.1.1 and -Os causes javascript errors
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-17 18:26 UTC by Jacob Braun
Modified: 2006-08-18 00:14 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 Jacob Braun 2006-08-17 18:26:06 UTC
When compiling Firefox 1.5.0.5 with gcc 4.1.1 and the CFLAGS "-march=pentium4 -Os -pipe -fomit-frame-pointer" going to any site that uses javascript firefox will crash with a segmentation fault. When compiling with -O2 (as my flags have been set below), the problem disappears.

See http://forums.gentoo.org/viewtopic-p-3518659.html for more information.

emerge --info
Portage 2.1.1_pre5-r1 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-ck1-r2 i686)
=================================================================
System uname: 2.6.17-ck1-r2 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.4
Last Sync: Wed, 16 Aug 2006 19:50:01 +0000
ccache version 2.3 [disabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa apm audiofile avi bitmap-fonts bonobo bzip2 cairo cdr cli cpudetection crypt cups dbus dga dlloader dri dvd dvdread elibc_glibc emboss encode evo fam fbcon ffmpeg firefox flac foomaticdb fortran gb gd gdbm ggi gif glitz gnome gpm gstreamer gtk gtk2 gtkhtml guile hal imap imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k kdeenablefinal kdehiddenvisibility kerberos kernel_linux krb4 lcms libg++ libwww linguas_en mad maildir mbox mjpeg mmx mmx2 mmxext mng motif mozilla moznoirc moznomail mp3 mpeg msn musicbrainz nautilus ncurses nls nptl nptlonly nsplugin nvidia objc ogg oggvorbis opengl oss pam pcre pdf pdflib perl png ppds pppd python qt qt3 qt4 qtmt quicktime readline reflection samba sdk sdl session slang slp socks5 spell spl sse sse2 ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa videos vorbis win32codecs wmf x86 xml xml2 xorg xv xvid xvmc zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jacob Braun 2006-08-17 21:12:33 UTC
Looks like I spoke too soon. For some reason it has started crashing again when I go to gmail, slashdot and facebook. Any ideas on what would cause this or how to fix it?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-18 00:14:25 UTC
No, not really enough info here. Start with clean profile without any plugins.