| View previous topic :: View next topic |
| Author |
Message |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Thu Aug 17, 2006 11:14 pm Post subject: Firefox crashes when using any javascript |
|
|
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 |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Thu Aug 17, 2006 11:31 pm Post subject: |
|
|
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 |
|
 |
Dralnu Veteran


Joined: 24 May 2006 Posts: 1919
|
Posted: Fri Aug 18, 2006 12:26 am Post subject: |
|
|
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 |
|
 |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Fri Aug 18, 2006 12:41 am Post subject: |
|
|
Recompiling with -O2 fixed it. Thanks!  |
|
| Back to top |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Aug 18, 2006 12:54 am Post subject: |
|
|
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 |
|
 |
Dralnu Veteran


Joined: 24 May 2006 Posts: 1919
|
Posted: Fri Aug 18, 2006 1:15 am Post subject: |
|
|
| 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 |
|
 |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Fri Aug 18, 2006 1:26 am Post subject: |
|
|
| Bug #144268 has been filed. |
|
| Back to top |
|
 |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Fri Aug 18, 2006 4:08 am Post subject: |
|
|
| 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 |
|
 |
Dralnu Veteran


Joined: 24 May 2006 Posts: 1919
|
Posted: Fri Aug 18, 2006 4:49 am Post subject: |
|
|
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 |
|
 |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Fri Aug 18, 2006 12:40 pm Post subject: |
|
|
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 |
|
 |
Carlo Developer


Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Aug 18, 2006 9:53 pm Post subject: |
|
|
| 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 |
|
 |
lenrek02 n00b

Joined: 17 Aug 2006 Posts: 24
|
Posted: Fri Aug 25, 2006 12:49 am Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
|