Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Firefox is segfaulting during seemingly random activities
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
izomiac
n00b
n00b


Joined: 22 Jul 2009
Posts: 5

PostPosted: Wed Jul 22, 2009 6:41 pm    Post subject: Firefox is segfaulting during seemingly random activities Reply with quote

I've been having a very annoying problem with Firefox on Gentoo. It basically segfaults at seemingly random events. It'll happen on webpages occasionally, when I click to allow certain things in No Script, and especially when I "delete" things (related in name only). The most reproducable are when I attempt to "Delete all spam messages" in GMail, delete a gadget in iGoogle, delete a file using Download Statusbar, or delete a profile using the profile manager. This happens with a new profile, and in trying to fix the problem I've upgraded from 3.0.11 (which required me deleting session files after each crash), to 3.5-bin, to the hardmasked 3.5. Other that segfaulting upon certain, unpredictable actions, they all worked perfectly. I'm fairly stumped, does anyone have any suggestions?

Code:
izomiac@Kanchii ~ $ cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-O2 -march=native -msse3 -mfpmath=sse -fomit-frame-pointer -pipe"
CXXFLAGS="-O2 -march=native -msse3 -mfpmath=sse -fomit-frame-pointer -pipe"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="i686-pc-linux-gnu"
MAKEOPTS="-j3"

GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ "

SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"

USE="mmx sse sse2 threads"
USE="${USE} branding offensive"                  # Copyright/political
USE="${USE} X xorg xfce -gnome -kde -qt3 -qt4"            # Desktop
USE="${USE} cups firefox mplayer samba"               # Applications
USE="${USE} spell startup-notification xscreensaver"         # Application Features
USE="${USE} dbus hal"                     # Hotplug support
USE="${USE} apm acpi battery cpufreq"               # Power Management
USE="${USE} alsa aoss dvd cdr dvdr opengl dri fbcon xvmc"      # Media Hardware
USE="${USE} bluetooth ieee1394 usb wifi"            # Connectivity Hardware
USE="${USE} ffmpeg lame taglib id3tag cdda cddb gstreamer css"      # Media Processing
USE="${USE} win32codecs matroska mpeg quicktime real theora xvid x264"   # Video Codecs and Containers
USE="${USE} aac a52 flac mp3 ogg vorbis"            # Audio Codecs and Containers
USE="${USE} exif gif jpeg png tiff svg pdf"            # Image Formats
USE="${USE} bzip2"                     # Compression Formats
USE="${USE} fontconfig truetype"               # Fonts
USE="${USE} aim msn oscar yahoo"               # IM Protocols
USE="${USE} -ipv6"                     # Networking

VIDEO_CARDS="intel"
INPUT_DEVICES="evdev keyboard mouse synaptics"
FEATURES="ccache"
#ACCEPT_KEYWORDS="~x86"
AUTOCLEAN="yes"
izomiac@Kanchii ~ $ 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-r3  USE="dbus startup-notification -bindist -custom-optimization -gnome -iceweasel -java -mozdevelop -restrict-javascript" LINGUAS="-af -ar -as -be -bg -bn -bn_BD -bn_IN -ca -cs -cy -da -de -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 -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
izomiac@Kanchii ~ $
Back to top
View user's profile Send private message
bjlockie
Veteran
Veteran


Joined: 18 Oct 2002
Posts: 1186
Location: Canada

PostPosted: Wed Jul 22, 2009 7:15 pm    Post subject: Reply with quote

I had a similar problem but I never found a solution.
I went for a few months with no firefox.

Have you run firefox from a terminal and is anything printed when it crashes?
_________________
AMD FX6100 CPU, 16 GiB RAM, OCZ Vertex 3 SSD
ASRock 970 Extreme3 motherboard with S/PDIF audio
Galaxy-NVidia GeForce 8800GT video card, Cyber Power CP550HG USB UPS
Back to top
View user's profile Send private message
izomiac
n00b
n00b


Joined: 22 Jul 2009
Posts: 5

PostPosted: Wed Jul 22, 2009 8:11 pm    Post subject: Reply with quote

I did, that's why I know it's segfaulting (GUI-wise it just disappears). Basically the only terminal output I see is some complaining about firebug not being there and "Segmentation Fault" when it crashes.
Back to top
View user's profile Send private message
izomiac
n00b
n00b


Joined: 22 Jul 2009
Posts: 5

PostPosted: Tue Aug 11, 2009 10:40 pm    Post subject: Reply with quote

Sorry to bump, but I've narrowed down the cause a bit. Basically, javascript alert boxes work, but confirm or prompt dialogs will cause a segfault. This is testable on any webpage using a simple javascript:confirm('Test'); or javascript:prompt('Test',''); . I've upgraded Firefox a couple more times, recompiled everything else on the system, and ran revdep-rebuild. What else can I possibly try???

(Segfaults are after going to javascript:confirm('Test');)
Code:
izomiac@Kanchii ~ $ firefox -console
Segmentation fault
izomiac@Kanchii ~ $ mv ~/.mozilla ~/.mozilla-backup
izomiac@Kanchii ~ $ firefox -console
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)
Registering '@mozilla.org/module-loader/python;1' (libpyloader.so)
Registering '@mozilla.org/network/protocol/about;1?what=python' (pyabout.py)
Segmentation fault


Edit:
After an "emerge --newuse --deep --update world" and "emerge --depclean" the problem disappeared! But it came back after a reboot. =/ Xfce lost the ability to change "Appearance" after that update, hence why I rebooted.

The packages that were updated were:
dev-libs/apr-1.3.5 -> dev-libs/apr-1.3.8
dev-libs/apr-util-1.3.7 -> dev-libs/apr-util-1.3.9
net-libs/xulrunner-1.9.1.2 -> net-libs/xulrunner-1.9.1.2-r1
www-client/mozilla-firefox-3.5.2 -> www-client/mozilla-firefox-3.5.2-r1
xfce-extra/xfce4-power-manager-0.8.3 -> xfce-extra/xfce4-power-manager-0.8.3.1
xfce-base/xfce4-4.6.1 -> xfce-base/xfce4-4.6.1

The packages removed were:
xfce-base/xfce4-settings-4.6.1
x11-libs/qt-3.3.8b-r1
media-libs/libmng-1.0.10
app-dicts/aspell-en-6.0.0
app-text/aspell-0.60.6
Back to top
View user's profile Send private message
Lowspirit
Apprentice
Apprentice


Joined: 31 Jul 2002
Posts: 258
Location: Northern Sweden

PostPosted: Sat Aug 15, 2009 9:40 pm    Post subject: Reply with quote

I have the exact same issue, not sure when it started but I was running a Firefox 3.6 nightly build for quite some time and then I downgraded when 3.5 became stable and officially released and since then it's crashing on these javascript pages randomly.

Luckily Chromium fills the gap for now but it'd be neat if it Firefox could stop crashing.
_________________
Gentoo | AMD X2 3800+ 2GB RAM | Kernel 2.6.30 . ReiserFS . CFQ . GCC4.3.3 | Firefox 3.5 | Gnome 2.26 w/ Compiz-Fusion
"Penguins are the only fish that can fly"
Back to top
View user's profile Send private message
The Mountain Man
l33t
l33t


Joined: 03 Sep 2003
Posts: 643

PostPosted: Sun Aug 16, 2009 2:56 am    Post subject: Reply with quote

I was having a heck of a time with random segfaulting in Firefox until I started using the binary build. I haven't had a problem since.
_________________
I suck at signatures.
Back to top
View user's profile Send private message
Zhaozhou
Tux's lil' helper
Tux's lil' helper


Joined: 25 Oct 2007
Posts: 121
Location: Sweden

PostPosted: Sun Aug 16, 2009 6:45 am    Post subject: Reply with quote

Although I can't interpret them, you should get a crash dump pastebin'ed - someone ought to sort out the confusion.
Back to top
View user's profile Send private message
izomiac
n00b
n00b


Joined: 22 Jul 2009
Posts: 5

PostPosted: Sun Aug 30, 2009 4:48 am    Post subject: Reply with quote

I found a work around! It appears that it's somehow linked to the default theme. When using a different theme (Whitehart to be specific) I am able to get confirm and prompt boxes without Firefox segfaulting. It's still a pretty bad bug though, so I suppose I'll try to get a crash dump and report it when I have a free day or something. If anyone else wants to report it go ahead, but I'm cautious to figure out the core problem since I was very close to reporting this as an AutoPager bug, which would have been a wild-goose chase for that developer.
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sun Aug 30, 2009 5:06 am    Post subject: Reply with quote

Using mozilla-firefox-3.5.2-r1, it segfaults on me every time at launch.

I may have to mask it and go back to a previous version, which means taking sqlite back down as well, I suppose (and maybe xulrunner -- I can't remember what got updated when).
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
ripper1340
n00b
n00b


Joined: 07 Feb 2006
Posts: 19
Location: Brazil

PostPosted: Fri Oct 09, 2009 8:25 pm    Post subject: Reply with quote

I can always reproduce this problem by attempting to empty Gmail's trash... Afterwards, firefox will not start until I remove the file ~/.mozilla/firefox/<profile>/sessionstore.js
Back to top
View user's profile Send private message
izomiac
n00b
n00b


Joined: 22 Jul 2009
Posts: 5

PostPosted: Fri Oct 09, 2009 11:33 pm    Post subject: Reply with quote

That sounds identical to my problem. See if going to the url: "javascript:confirm('Test');" (no quotes, don't open in a blank tab) crashes your browser rather than open a confirm dialog. If so, I'm still stumped as to the cause, but changing Firefox's theme seems to be a workaround. GMail opens a confirm dialog when you try to delete all the messages in your Trash or Spam folders.
Back to top
View user's profile Send private message
Rüpel
Guru
Guru


Joined: 06 Nov 2002
Posts: 316
Location: Berlin/Germany

PostPosted: Sat Oct 31, 2009 3:53 pm    Post subject: Reply with quote

my firefox also started crashing a few weeks ago. very annoying. :(

the "javascript:confirm('Test');" test works ok here. I can see an click the button without a crash. still, random crashes here and there while surfing.

as far as I tried up to now, disabling javascript does help. but have you tried to use the web without javascript these days? :roll:
_________________
:wq
Back to top
View user's profile Send private message
Rüpel
Guru
Guru


Joined: 06 Nov 2002
Posts: 316
Location: Berlin/Germany

PostPosted: Sat Oct 31, 2009 6:28 pm    Post subject: Reply with quote

I've played around a bit with my firefox. running it through strace completely freezes my X-server before anything interesting happens.

running it through gdb produces:
Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7d316d0 (LWP 25760)]
0xb6a9c2a0 in ?? () from /usr/lib/libjpeg.so.7


Hmm. Interesting. Looking at "cat /proc/$(pidof firefox)/maps | grep jpeg" gives
Code:
b6a6e000-b6ad4000 r-xp 00000000 03:07 659355     /usr/lib/libjpeg.so.7.0.0
b6ad4000-b6ad5000 r--p 00065000 03:07 659355     /usr/lib/libjpeg.so.7.0.0
b6ad5000-b6ad6000 rw-p 00066000 03:07 659355     /usr/lib/libjpeg.so.7.0.0


So, maybe it's completely unrelated to libjpeg and theres memory overwritten on a completely different position, but that:
Code:
# ls -l /var/log/portage/ | grep media-libs:jpeg
-rw-rw---- 1 portage portage     1950  7. Okt 01:30 media-libs:jpeg-6b-r8:20091006-233026.log
-rw-rw---- 1 portage portage    27062  7. Okt 01:30 media-libs:jpeg-7:20091006-232548.log


seems to correlate with my feeling (!!!) when the problems with firefox began... a few weeks ago in the beginning of october.

Does anyone know about problems with libjpeg? It's just a rough guess. And downgrading to the old version doesn't seem to be an easy option, because there are packages on my system, that require >=media-libs/jpeg-7. :(

Moreover: since the firefox-bin package seems to run fine for other people having the same issue (I haven't tried yet), I guess it's some strange library-thing that causes the crashes...
_________________
:wq
Back to top
View user's profile Send private message
dufeu
l33t
l33t


Joined: 30 Aug 2002
Posts: 924
Location: US-FL-EST

PostPosted: Wed Nov 11, 2009 6:44 am    Post subject: Reply with quote

Which version of binutils do you have installed?
_________________
People whom think M$ is mediocre, don't know the half of it.
Back to top
View user's profile Send private message
spindle
Apprentice
Apprentice


Joined: 01 Dec 2003
Posts: 245

PostPosted: Fri Nov 13, 2009 8:32 pm    Post subject: Reply with quote

I was having problems with this too. For me it was crashing when trying to view a photo on flikr. I added these to /etc/portage/package.use
Code:
www-client/mozilla-firefox java javascript
net-libs/xulrunner java

I'm not sure if that helped it or not. I'm more likely to think that just this here fixed it,
Code:
# emerge -av1 sys-devel/binutils net-libs/xulrunner www-client/mozilla-firefox


It seems to run fine for me without crashes after that, at least for now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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