Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55146 - Mozilla Firefox 0.9 hangs sporadically
Summary: Mozilla Firefox 0.9 hangs sporadically
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-25 05:18 UTC by Loz Hygate
Modified: 2004-11-13 16:34 UTC (History)
1 user (show)

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


Attachments
Selected gdb messages and backtrace (a,3.41 KB, text/plain)
2004-06-25 05:20 UTC, Loz Hygate
Details
Backtrace from all threads during hang. (bt,4.28 KB, text/plain)
2004-07-04 14:41 UTC, Loz Hygate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Loz Hygate 2004-06-25 05:18:36 UTC
Mozilla Firefox infrequently hangs when opening a page. I can't figure out exactly what triggers it.

Reproducible: Sometimes
Steps to Reproduce:




$ emerge info

Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -mcpu=athlon -O3 -pipe -g"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config
/usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -mcpu=athlon -O3 -pipe -g"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache nostrip sandbox"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
ftp://darkstar.ist.utl.pt/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/packages/nessie"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib alsa apm arts avi berkdb cdr crypt cups doc dvd encode esd
foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml imlib java jpeg kde
libg++ libwww mad mikmod mmx motif mozilla mpeg ncurses nls nptl oggvorbis
opengl oss pam pdflib perl png ppd python qt quicktime readline ruby sdl slang
spell ssl svga tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
Comment 1 Loz Hygate 2004-06-25 05:20:44 UTC
Created attachment 34127 [details]
Selected gdb messages and backtrace

Is there a secondary bug: nostrip and -g should cause all of firefox to have
symbols?
Comment 2 Loz Hygate 2004-06-29 15:18:33 UTC
It happens most frequenly when I'm previewing a comment from livejournal, that includes a title, a custom picture and has the spell check preview option selected.
Comment 3 Brad Laue (RETIRED) gentoo-dev 2004-07-04 00:21:05 UTC
Just to make sure, try testing your memory with memtest86 or some similar tool
Comment 4 Loz Hygate 2004-07-04 10:55:04 UTC
memtest86+ passed ok
Comment 5 Loz Hygate 2004-07-04 14:41:04 UTC
Created attachment 34798 [details]
Backtrace from all threads during hang.

I wonder what is going on with the stack corruption error. It could be genuine
corruption; or it could be a problem with unwinding the stack in the debugger.
Comment 6 Loz Hygate 2004-07-05 03:28:16 UTC
This may have been raised against 0.9, it happens with 0.9.1 too.

I get the stack corruption in gdb when the application is running normally, so I'm more inclined to think that gdb is having problems unwinding the stack frames.
Comment 7 Richard Schreyer 2004-07-05 13:43:32 UTC
I can confirm this.  It sometimes hangs when deleting a character from the Google search bar in the Navigation toolbar.

I can get it to occur reliably by typing a character, deleting it, and repeating.  It usually doesn't take long before it hangs (a couple dozen characters at most).

Portage 2.0.50-r8 (gcc34-amd64-2004.1, gcc-3.4.0, glibc-2.3.4.20040605-r0, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 x86_64 4
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib alsa amd64 apm arts avi berkdb cdr crypt cscope doc dvd dvdr emacs encode esd foomaticdb gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde leim libg++ libwww lzw-tiff mad mikmod motif mozilla mpeg nas ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang spell ssl tcpd tetex theora threads tiff truetype unicode vim-with-x xml xml2 xmms xv xvid zlib"
Comment 8 Loz Hygate 2004-07-05 15:18:08 UTC
I noticed that linux-gate.so.1 is linked at 0xffffe000, this is some kind of magic kernel entry point (see http://ds9a.nl/klogbot/?year=2004&month=5&day=28&hour=8 for example).
This would explain most of the missing symbols, as I guess gdb hasn't had a chance (or cannot) catch up with this yet.
Still not sure about the stack corruption.
Comment 9 Loz Hygate 2004-07-06 11:29:43 UTC
Goto http://sources.redhat.com/cgi-bin/gnatsweb.pl and look at bug 1505. I guess gdb is more likely the problem than a genuine stack corruption.
Comment 10 Loz Hygate 2004-07-06 12:46:48 UTC
I think the gdb part of the problem is a dupe of bug 45756
Comment 11 Loz Hygate 2004-07-06 14:50:50 UTC
Hmm, in the hope of fixing my stack traces and the like I unmasked and emerged glibc-2.3.4.20040619. Now I can't reproduce the original problem. This suggests it may have been a glibc threading bug that is now fixed.

I couldn't originally reproduce the problem on demand, so I'll run with it for a week or so. If I don't get by it then I'll mark the bug closed.

If anyone else want to unmask it, add the following line to your /etc/portage/packages.unmask file (only tested on x86)
~sys-libs/glibc-2.3.4.20040619
Comment 12 Loz Hygate 2004-07-06 14:52:02 UTC
oops, you'll need to add

sys-kernel/linux-headers -*

to /etc/portage/package.keywords and emerge linux-headers before glibc will work.
Comment 13 Loz Hygate 2004-07-07 08:24:10 UTC
It is still broken. The stacktraces are still as confusing as ever. I think I'm out of ideas.
Comment 14 Moshe Kamensky 2004-08-04 12:47:41 UTC
I don't know if this is the same bug. I was having a problem that for certain 
locations the system completely hangs, with all graphical browsers I tried, 
including mozilla, konqueror and dillo. Text browsers like lynx and w3m do not 
show this problem (but display garbage). An example of such a location is

http://www.huji.ac.il/

I don't know how could I support any extra info, since the only thing I can do 
when it happens is press the reboot button.

Anyway, I discovered that it has something to do with the locale settings.  
When I set LC_ALL='POSIX', this no longer happens. Except for web browsing, I 
don't usually see such problems with my locale settings (which are mostly 
he_IL.utf8).

Hope this sheds some light. Here is my emerge info:

Gentoo Base System version 1.5.2
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.4, glibc-2.3.4.20040619-r0, 2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Duron(tm) Processor
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-tbird -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/genkernel/x86 /usr/share/zsh /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/serverconfig /etc/X11/starthere /etc/X11/sysconfig /etc/games /etc/gconf /etc/gnome-vfs-2.0 /etc/hotplug /etc/sound /etc/ssl /etc/svgalib /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-tbird -funroll-loops -fprefetch-loop-arrays -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache digest emergemail fixpackages sandbox"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://gentoo.inode.at/ http://ftp6.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/usr/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib aavm acl acpi alsa amd apache2 apm arts artswrappersuid avi berkdb bidi bonobo cdr crypt cups dga dillo directfb divx4linux doc dv dvb dvd dvdr editor encode erandom esd faac faad fbcon foomaticdb freetype gd gdbm ggi gif gnome gpm gtk gtk2 gtkhtml imap imlib imlib2 ipv6 java javascript jbig jikes jpeg kde ldap libg++ libwww linguas_he mad mailwrapper mbox mikmod mmx motif mozilla mpeg mpi multilib ncurses nls nocd nptl offensive oggvorbis opengl oss pam pcre pdflib perl plotutils png python qt quicktime readline ruby sdl server speex spell sse ssl svga t1lib tcltk tcpd tetex theora threads tiff tools truetype type1 unicode usb v4l2 vim-with-x wmf wxwin wxwindows x86 xatrix xface xml xml2 xmms xv xvid zlib"

Comment 15 John D 2004-08-23 09:49:17 UTC
After using ACCEPT_KEYWORDS="~x86" and an emerge -uD, it appears like it's resolved.
Comment 16 Aron Griffis (RETIRED) gentoo-dev 2004-11-13 16:34:09 UTC
I'm guessing (and hoping) that this bug is resolved in current versions (presently 1.0-r1).  Please re-open if it is still a problem for you.