Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox crashes when using any javascript
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Thu Aug 17, 2006 11:14 pm    Post subject: Firefox crashes when using any javascript Reply with quote

I recently upgraded to gcc 4.1.1 and rebuild everything on my box (emerge -e system & emerge -e world) and now whenever I visit any page that deals with javascript (slashdot, gmail, etc.) firefox will quit with a segfault. I've tried rebuilding firefox and its dependencies with sane CFLAGS (-march=pentium4 -Os -pipe -fomit-frame-pointer) and it still happens. I'm having the same problem with mozilla-firefox-bin as well. I've even deleted the .mozilla directory from my home directory to no avail.

Any ideas?
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Thu Aug 17, 2006 11:31 pm    Post subject: Reply with quote

Try -O2. There's lots of stuff that crashes with -Os.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Fri Aug 18, 2006 12:26 am    Post subject: Reply with quote

Cut back to a "standard" CFLAGS of -march=* -pipe -02
If that fails, then you could try removing firefox (the config files will remain, so no real need to reconfigure it I don't think), clear out the source files, and re-emerge. That probably won't work itself, but it follows the normal "if all else fails..." rule.
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Fri Aug 18, 2006 12:41 am    Post subject: Reply with quote

Recompiling with -O2 fixed it. Thanks! :)
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Aug 18, 2006 12:54 am    Post subject: Reply with quote

Then file a bug please, so the maintainer replaces the flag in the ebuild.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Fri Aug 18, 2006 1:15 am    Post subject: Reply with quote

Carlo wrote:
Then file a bug please, so the maintainer replaces the flag in the ebuild.


Is that why alot of the ebuilds have static CFLAGS?

It makes sense to me, but I'm just curious if, if that is the case, they test all the other -O? flags to see if it may just be that one, or if its all of the others.
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Fri Aug 18, 2006 1:26 am    Post subject: Reply with quote

Bug #144268 has been filed.
Back to top
View user's profile Send private message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Fri Aug 18, 2006 4:08 am    Post subject: Reply with quote

Looks like I spoke too soon. For some reason it has started crashing again when I go to gmail, slashdot and facebook. Any more ideas?
Back to top
View user's profile Send private message
Dralnu
Veteran
Veteran


Joined: 24 May 2006
Posts: 1919

PostPosted: Fri Aug 18, 2006 4:49 am    Post subject: Reply with quote

Make sure java support it enabled

Try Opera
Try another browser entirely

I know there was an issue with Firefox and Konq dying on some sites, and Opera worked with them well.
Don't think we ever figured out why

Try adding in the debug USE flag, and maybe run it under gdb to get some debug output.
_________________
The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
Back to top
View user's profile Send private message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Fri Aug 18, 2006 12:40 pm    Post subject: Reply with quote

I have seamonkey installed (a dependency for swt) and it works just fine. If I can't figure out what is causing this I may just switch to using that as my main browser for the time being. Epiphany (built from firefox) also works as well.

I'm rebuilding firefox's dependencies (gathered from the ebuild) using -O2 now to see if that will help at all. I will report back after work. If not I will rebuild with debug and see what I can find.
Back to top
View user's profile Send private message
Carlo
Developer
Developer


Joined: 12 Aug 2002
Posts: 3356

PostPosted: Fri Aug 18, 2006 9:53 pm    Post subject: Reply with quote

Dralnu wrote:
Is that why alot of the ebuilds have static CFLAGS?

Define alot. :) If we get reports about applications not building with sane and supported flags, we filter, replace (see flag-o-matic.eclass) or set them explicitly in the ebuilds. But there are a lot of dirt ugly build scripts with hardcoded flags, paths,etc. and it's a matter of (not) having enough helping hands to fix all of the issues properly and making sure the relevant patches reach upstream. When you notice an ebuild not building with your C[XX]FLAGS and there're neither relevant lines in the ebuild nor in the inherited eclasses to filter (some of) your flags out, it's perfectly fine to file a bug (patches are appreciated).

lenrek02 wrote:
Looks like I spoke too soon. For some reason it has started crashing again when I go to gmail, slashdot and facebook. Any more ideas?

Remove Firefox extensions; Especially less widely used/tested ones can be buggys and cause stability problems. Moving ~/.mozilla/ may be worth a try, too.
_________________
Please make sure that you have searched for an answer to a question after reading all the relevant docs.
Back to top
View user's profile Send private message
lenrek02
n00b
n00b


Joined: 17 Aug 2006
Posts: 24

PostPosted: Fri Aug 25, 2006 12:49 am    Post subject: Reply with quote

After trying many many different ways of "fixing" this problem I finally came upon a solution. It seems that for some reason, the totem plugins for firefox were causing it to crash. After removing "*totem*" from /usr/lib/nsbrowser/plugins everything works.

I'm not sure how/why javascript and totem caused things to fail but either way it works now. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum