Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41197 - firefox crashes when compiled with -fstack-protector
Summary: firefox crashes when compiled with -fstack-protector
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 20:47 UTC by Dan Elder
Modified: 2004-02-10 23:01 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 Dan Elder 2004-02-10 20:47:37 UTC
I recently emerged firefox (0.8) and everytime I click on the "File" menu it crashes with the following error message on the console:
firefox-bin: stack smashing attack in function void NS_ScriptErrorReporter(JSContext*, const char*, JSErrorReport*)()
/usr/lib/MozillaFirefox/run-mozilla.sh: line 451: 29583 Segmentation fault "$prog" ${1+"$@"}
firefox exited with non-zero status (139)

I'm assuming this is a result of my building everything with -fstack-protector.  See my CFLAGS and such below for more information.  Please let me know if I can provide any additional information.

Reproducible: Always
Steps to Reproduce:
1. Launch firefox
2. Click on File Menu
3. Profit

Actual Results:  
Crash

Expected Results:  
See what's in the File Menu

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0, 2.6.2)
=================================================================
System uname: 2.6.2 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 1.70GHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-fstack-protector -fpic -O3 -mcpu=pentium4 -ffast-math -funroll-loops
-fomit-frame-pointer -fforce-addr -falign-functions=4 -pipe -mmmx -msse -msse2
-mfpmath=sse"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb
/usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config
/usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-fstack-protector -fpic -O3 -mcpu=pentium4 -ffast-math -funroll-loops
-fomit-frame-pointer -fforce-addr -falign-functions=4 -pipe -mmmx -msse -msse2
-mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache prelink sandbox"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo/
ftp://mirror.iawnet.sandia.gov/pub/gentoo//
ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo// http://gentoo.mirrors.pair.com//
http://gentoo.ccccom.com/ http://mirror.clarkson.edu/pub/distributions/gentoo//
http://lug.mtu.edu/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="S3TC X X509 aalib acl acpi acpi4linux alsa apache2 apm avi berkdb bluetooth
bonobo cdr crypt cups curl dga directfb dv dvd encode esd ethereal evms2 evo
faad fam fbcon ffmpeg flac flash foomaticdb freetds gb gd gdbm geoip gif glut
gnome gnomedb gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hbci imagemagick
imap imlib innodb ipv6 irda irmc java javascript jpeg lcms ldap libgda libwww
mad maildir mbox mcal md5sum mdb memlimit mmx motif mozilla mozinterfaceinfo
mozp3p mozsvg mozxmlterm mpeg mpeg4 msn music mysql nas ncurses nls nocd nptl
nvidia oci8 offensive ofx oggvorbis openal opengl opie oss pam pcap pcmcia
pdflib perl php pic plotutils png pnp postgres ppds prelude python qt quicktime
readline samba sasl scanner sdl slang snmp spell sqlite sse ssl svga tcltk tcpd
tiff transcode transparent-proxy truetype unicode usb videos vim-with-x wmf
wxwin wxwindows x86 xine xinerama xml xml2 xmms xosd xv xvid zlib"
Comment 1 Dan Elder 2004-02-10 21:48:11 UTC
Somewhere in between re-merging firefox and cleaning out and creating new profiles things started working again.  I'm not sure exactly where it was but I imagine there was probably and old extension that hadn't been deleted in there.  I can sucessfully re-create the problem with my old profile though.  Sorry for the confusion.