Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45671 - Mozilla 1.6-r1 compiled with -fstack-protector crashes on keyboard input
Summary: Mozilla 1.6-r1 compiled with -fstack-protector crashes on keyboard input
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 22:00 UTC by Alex
Modified: 2004-09-15 00:13 UTC (History)
1 user (show)

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 Alex 2004-03-24 22:00:35 UTC
When I tried to emerge mozilla-1.6-r1 with -fstack-protector in my CFLAGS, it emerged just fine and launches just fine, but freezes on keyboard input, such as using the arrow keys to scroll. I could scroll through webpages using the scrollbar, click links etc. but keyboard input froze it.

I unfortunately didn't think to strace it, but I did re-emerge it with -fstack-protector still enabled and it exhibited the same problem but after emerge without -fstack-protector it works fine. If need be, I can re-emerge with -fstack-protector enabled.



Reproducible: Always
Steps to Reproduce:
1.Emerge mozilla with -fstack-protector
2.run mozilla
3.use keyboard

Actual Results:  
The window froze, turned into a white rectangle, had to force quit it.


my cflags:
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer -fforce-addr
-falign-functions=4 -msse2"

and I'm using a 2.6.4-wolk2.2 kernel
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-04-25 18:27:17 UTC
Does somebody on the toolchain team mind commenting on this?  I don't know anything about -fstack-protector or the wolk kernels.

Alex, please provide output of emerge --info, thanks
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-04-25 19:34:04 UTC
According to solar, this is a problem that afflicts large packages (moz and oo, for example) with -fstack-protector.  I will filter-flags for now; solar can find packages that are filtering -fstack-protector in the future when the bug is fixed.
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-04-25 21:40:27 UTC
committed mozilla-1.6-r1, mozilla-1.7_rc1, and mozilla-firefox-0.8-r3 to portage with this change
Comment 4 Andreas Simon 2004-04-26 00:24:12 UTC
Works fine with
-march=athlon-xp -O2 -ftracer -fstack-protector
and
gcc (GCC) 3.3.3 20040217 (Gentoo Linux 3.3.3, propolice-3.3-7)
Comment 5 solar (RETIRED) gentoo-dev 2004-09-15 00:13:04 UTC
update. This may depend on the gcc revision that the user is using. 
g++ code with sort() and -O3 -fstack-protector{,-all}

You also had/have a very aggressive set of CFLAGS there.

Aron we may want to reconsider this filtering of -fstack on this very
important package.