Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292651 - www-client/mozilla-firefox-3.5.[45]: segmentation fault (in Valgrind: unhandled instruction bytes)
Summary: www-client/mozilla-firefox-3.5.[45]: segmentation fault (in Valgrind: unhandl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL: http://www.squarefree.com/2009/06/23/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-10 09:11 UTC by Erik
Modified: 2010-06-23 08:32 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of 5 testruns in Valgrind (each time restoring the crashed webpage) (valgrind_output,25.32 KB, text/plain)
2009-11-10 09:12 UTC, Erik
Details
emerge --info (emerge.info,4.54 KB, text/plain)
2009-11-11 01:21 UTC, Erik
Details
find ~/.mozilla (mozilla-directory,18.72 KB, text/plain)
2009-11-11 01:29 UTC, Erik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik 2009-11-10 09:11:12 UTC
When going to Dell site and configure a laptop offer, it crashes, when showing something like "verifying system build", right after finishing the configuration. Result: Segmentation fault. Tried in Valgrind 5 times (too long for comment, see attachment). URL found when searching for js_MonitorLoopEdge (which Valgrind found in tests 2 and 5).

Reproducible: Always

Steps to Reproduce:
Comment 1 Erik 2009-11-10 09:12:21 UTC
Created attachment 209819 [details]
Output of 5 testruns in Valgrind (each time restoring the crashed webpage)
Comment 2 Erik 2009-11-11 00:52:05 UTC
Version 3.5.5 crashes in the same way.
Comment 3 Jory A. Pratt gentoo-dev 2009-11-11 00:59:06 UTC
Please provide emerge --info and a list of all plugins installed, I have tested multiple times and have had no success with creating a crash.
Comment 4 Erik 2009-11-11 01:21:47 UTC
Created attachment 209877 [details]
emerge --info
Comment 5 Erik 2009-11-11 01:29:11 UTC
Created attachment 209879 [details]
find ~/.mozilla

Is the list of plugins somewhere in here?
Comment 6 Jory A. Pratt gentoo-dev 2009-11-11 01:38:55 UTC
easiest way to identify plugins is open browser and type in about:plugins, please copy and paste it into a text file and attach. Also run firefox --safe-mode to disable all plugins and retest.
Comment 7 Erik 2009-11-11 01:46:29 UTC
The crash seems unrelated to anything in ~/.mozilla (tried as a user, where I moved that directory away first). about:plugins only shows DjVuLibre-3.5.21

Here are the USE-flags:
# emerge -pv mozilla-firefox

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] www-client/mozilla-firefox-3.5.5  USE="alsa -bindist -custom-optimization -dbus -gnome -iceweasel -java -mozdevelop -restrict-javascript -sqlite -startup-notification" LINGUAS="de sv -af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -el -en -en_GB -en_US -eo -es -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy -fy_NL -ga -ga_IE -gl -gu -gu_IN -he -hi -hi_IN -hr -hu -id -is -it -ja -ka -kk -kn -ko -ku -lt -lv -mk -ml -mn -mr -nb -nb_NO -nl -nn -nn_NO -oc -or -pa -pa_IN -pl -pt -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv_SE -ta -ta_LK -te -th -tr -uk -vi -zh_CN -zh_TW" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 8 Erik 2009-11-11 01:50:58 UTC
(In reply to comment #6)
> run firefox --safe-mode to disable all plugins

Still crashes, so it is unrelated to plugins, settings, themes and all that.

Comment 9 Enrique Domínguez 2009-11-20 12:40:04 UTC
> 
> Still crashes, so it is unrelated to plugins, settings, themes and all that.
> 
After upgrade, same problem here, firefox-3.0.14 works better but got segmentation fault going to 'preferences' dialog. I could init firefox-3.5.4 moving ~/.mozilla to another place and running in safe mode.
Comment 10 Enrique Domínguez 2009-11-23 15:10:06 UTC
Unussable here, crash a lot surfing internet.
Comment 11 Enrique Domínguez 2009-11-24 01:00:37 UTC
For me, problems disappear with this (supper) command:
# emerge -aveDN mozilla-firefox
(supposing wrong emerge order of packages in last build)
Comment 12 Mike Nelson 2009-11-30 18:01:17 UTC
(In reply to comment #11)
> For me, problems disappear with this (supper) command:
> # emerge -aveDN mozilla-firefox
> (supposing wrong emerge order of packages in last build)
> 

For me just re-emerging these two fixed it
# emerge -av1 net-libs/xulrunner www-client/mozilla-firefox

(with net-libs/xulrunner-1.9.1.4 & www-client/mozilla-firefox-3.5.4)
Comment 13 Howard B. Golden 2009-12-04 19:59:04 UTC
Possibly this is related to bug #291727. If you start firefox from a terminal do you see XID collision messages before the segfault?
Comment 14 Mike Nelson 2009-12-06 01:50:17 UTC
(In reply to comment #13)
> Possibly this is related to bug #291727. If you start firefox from a terminal
> do you see XID collision messages before the segfault?
> 

I know I've seen a lot of those lately. I can't test this now as it seems to work fine now since I rebuilt it.
Comment 15 glenn burns 2009-12-16 15:05:42 UTC
erik:

were you able to fix this?

i ran into the same issue.  i modified my CFLAGS to a more conservative -O2 and did and emerge -eva system.  fixed the crashes and segfaults and also fixed what i thought was an unrelated chromium and adobe-flash issue.

original
CFLAGS=-march=k8 -O3 -pipe
current
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"

check out this forum thread too.
http://forums.gentoo.org/viewtopic-t-801865-postdays-0-postorder-asc-start-0.html
Comment 16 Mike Nelson 2009-12-21 16:03:29 UTC
(In reply to comment #15)
> erik:
> 
> were you able to fix this?
> 
> i ran into the same issue.  i modified my CFLAGS to a more conservative -O2 and
> did and emerge -eva system.  fixed the crashes and segfaults and also fixed
> what i thought was an unrelated chromium and adobe-flash issue.
> 
> original
> CFLAGS=-march=k8 -O3 -pipe
> current
> CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
> 
> check out this forum thread too.
> http://forums.gentoo.org/viewtopic-t-801865-postdays-0-postorder-asc-start-0.html
> 
When I did this it totally broke firefox for me (segfault upon startup). My CFAGS where a somewhat different though. I'm not sure why this would have broke it so badly.

originally,
    CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
then I tried this which totally broke firefox,
    CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"

I ened up switching it back to the way it was to get firefox working again. Maybe I needed to rebuild world with the new flags...

(I was seeing firefox crashes when viewing a photo's page on flikr.com.)
Comment 17 Erik 2010-06-23 08:32:20 UTC
No longer reproducible with version 3.6.3.