Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234110 - www-client/mozilla-firefox-3.0* USE=xulrunner - hangs on first start
Summary: www-client/mozilla-firefox-3.0* USE=xulrunner - hangs on first start
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:
Whiteboard:
Keywords:
Depends on:
Blocks: 234646
  Show dependency tree
 
Reported: 2008-08-06 17:40 UTC by gen.dareynol
Modified: 2008-11-26 05:06 UTC (History)
9 users (show)

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


Attachments
The output of qlist -IvC from my box (qlist.txt,30.59 KB, text/plain)
2008-08-28 23:15 UTC, Richard Cox
Details
qlist -IvC (qlist,18.31 KB, text/plain)
2008-10-26 15:37 UTC, Adam Van Ymeren
Details
qlist -IvC (djanderson_qlist,17.59 KB, text/plain)
2008-10-28 09:23 UTC, Douglas Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description gen.dareynol 2008-08-06 17:40:27 UTC
When Firefox is started for the first time after booting, it hangs without displaying the browser window or any errors. After killing the process, Firefox can be started.

Reproducible: Always

Steps to Reproduce:
1.Boot up computer and login
2.Start Firefox.
3.

Actual Results:  
Firefox does not display a browser window and there are no errors on the console.

Expected Results:  
Firefox should display a browser window.

david@desktop ~ $ emerge --info
Portage 2.1.4.4 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz
Timestamp of tree: Mon, 04 Aug 2008 00:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en_US en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa arts berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt css cups dbus dri dv dvb dvd dvdr dvdread eds emboss encode esd evo exif fam ffmpeg fortran gdbm gif gimp gphoto2 gpm gstreamer gtk hal iconv isdnlog java jpeg kde kerberos lcms ldap libnotify mad midi mikmod mmx mng mp3 mpeg mudflap ncurses nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba scanner sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb v4l v4l2 vcd vorbis win32codecs x86 xml xorg xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 gen.dareynol 2008-08-06 17:48:55 UTC
I have experienced this problem with mozilla-firefox-3.0-r1 and 3.0.1
mozilla-firefox-bin does not seem to have this problem.

I first posted a question about this in the forums.
http://forums.gentoo.org/viewtopic-t-702836.html

Additionally I have found that if i build firefox with USE="-xulrunner" the problem does not occur.
Comment 2 Paulo da Silva 2008-08-07 16:03:44 UTC
Same problem here with my amd64 and x86 laptops.
No problem with a amd64 desktop. Disks access time problem?

Comment 3 Paulo da Silva 2008-08-07 22:43:07 UTC
(In reply to comment #2)
> Same problem here with my amd64 and x86 laptops.
> No problem with a amd64 desktop. Disks access time problem?
> 
Well, after at least 2 weaks, the problem also occured on the desktop!

I also comfirm that compiling with -xulrunner the problem does not occur.
Comment 4 Paulo da Silva 2008-08-08 16:00:17 UTC
...
> 
> I also comfirm that compiling with -xulrunner the problem does not occur.
> 

Well ... not for the desktop. Emerging with -xulrunner prevents ffx from starting!
All my configurations for both amd64s (make.conf and /etc/portage) are exactly the same!
Who said computers are deterministic? :-)
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2008-08-08 16:31:24 UTC
Tried with a clean profile?
Comment 6 Paulo da Silva 2008-08-08 19:19:41 UTC
(In reply to comment #5)
> Tried with a clean profile?
> 

If you mean ffx profile ... no, but all my ffx profiles (~/.mozilla dirs) are equal. I synced them.

To summarize:
1. x86 laptop: The problem always occur. I didn't try any other way.
2. amd64 laptop: The problem always occur. emerging with "-xulrunner" fixed the problem. This is a new fresh gentoo.
3. amd64 desktop: Worked fine until yesterday. Then, and once only, the problem occured. I emerged ffx with "-xulrunner". ffx stoped working. I reemerged again with xulrunner and it is working fine so far.
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2008-08-08 20:00:27 UTC
Just move away the .mozilla dir and try again.
Comment 8 Paulo da Silva 2008-08-09 02:25:28 UTC
(In reply to comment #7)
> Just move away the .mozilla dir and try again.
> 

Ok, I did it. Did not result. The same symptoms.

In the meanwhile, I could clear up one of the situations.
Emerging ffx with "-xulrunner" on the amd64 desktop caused it to stop working. This is because I have a lib that uses LD_PRELOAD mechanism that somehow is interfering with firefox. Removing it (export LD_PRELOAD="") ffx works fine.

Updated summary:

1. Emerging with "-xulrunner" always work.
2. Emerging with "xulrunner" never works the 1st time I launch it on my laptops (x86 and amd64) but works fine on my amd64 desktop with rare exceptions (1 in two weeks) even with that LD_PRELOAD lib.
3. The situation remains unchanged when removing ~/.mozilla.

HTH
Comment 9 Raúl Porcel (RETIRED) gentoo-dev 2008-08-09 09:34:51 UTC
Can you try with 3.0.1?
Comment 10 Richard Cox 2008-08-09 14:53:17 UTC
I can confirm that emerging with use flag "-xulrunner" fixes the problem with 3.0.1.
Comment 11 Richard Cox 2008-08-09 14:54:20 UTC
I can confirm that emerging with use flag '-xulrunner' fixes the problem with 3.0.1 on x86.
Comment 12 Paulo da Silva 2008-08-09 17:15:00 UTC
(In reply to comment #9)
> Can you try with 3.0.1?
> 

I am using 3.0.1!
Comment 13 Raúl Porcel (RETIRED) gentoo-dev 2008-08-13 17:14:20 UTC
Okay, those who are having problems, paste me the output of:

'emerge -pv mozilla-firefox xulrunner'

And try reemerging xulrunner
Comment 14 Richard Cox 2008-08-13 22:07:07 UTC
(In reply to comment #13)
> Okay, those who are having problems, paste me the output of:
> 
> 'emerge -pv mozilla-firefox xulrunner'
> 
> And try reemerging xulrunner
> 
Here you go:

Please note, I added the -xulrunner to mozilla-firefox to work around the problem, since that worked.  I'll remove that and re-emerge firefox and xulrunner to test, as you requested.

Calculating dependencies... done!
[ebuild   R   ] www-client/mozilla-firefox-3.0.1  USE="dbus ipv6 java -bindist -custom-optimization -gnome -iceweasel -mozdevelop -restrict-javascript -startup-notification -xulrunner" LINGUAS="-af -ar -be -ca -cs -da -de -el -en -en_GB -en_US -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB
[ebuild   R   ] net-libs/xulrunner-1.9.0.1  USE="dbus ipv6 java -custom-optimization -gnome -startup-notification" 0 kB


Comment 15 Richard Cox 2008-08-15 23:15:22 UTC
(In reply to comment #13)
> Okay, those who are having problems, paste me the output of:
> 
> 'emerge -pv mozilla-firefox xulrunner'
> 
> And try reemerging xulrunner
> 
Ok, emerged xulrunner again, emerged firefox with the xulrunner use flag enabled and I get the hang still.  Turn off the xulrunner use flag, no hang.  Same as before.
Comment 16 Raúl Porcel (RETIRED) gentoo-dev 2008-08-28 17:35:55 UTC
May i have the output of 'qlist -IvC', please? Its in portage-utils
Comment 17 Richard Cox 2008-08-28 23:15:15 UTC
Created attachment 164038 [details]
The output of qlist -IvC from my box

Ok, here is the output from qlist -IvC as requested.  I put it in an attachment since it is too large to past into the comment.
Comment 18 Sérgio Luís 2008-09-05 22:55:19 UTC
Are you using NetworkManager?

Stopping it resolved this problem for me.
Comment 19 Sonymouna Wocrad 2008-09-07 22:07:03 UTC
I'm hit by this issue, too.
After reboot the first time I try to start firefox it always hangs.

[ebuild   R   ] www-client/mozilla-firefox-3.0.1  USE="ipv6 xulrunner -bindist -custom-optimization -dbus -gnome -iceweasel -java -mozdevelop -restrict-javascript -startup-notification" LINGUAS="-af -ar -be -ca -cs -da -de -el -en -en_GB -en_US -es -es_AR -es_ES -eu -fi -fr -fy -fy_NL -ga -ga_IE -gu -gu_IN -he -hu -id -it -ja -ka -ko -ku -lt -mk -mn -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sr -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB 


running strace on firefox it halts in a futex:
...
...
stat64("/usr/lib/xulrunner-1.9/components/necko.xpt", {st_mode=S_IFREG|0644, st_size=17129, ...}) = 0
open("/usr/lib/xulrunner-1.9/components/necko.xpt", O_RDONLY|O_LARGEFILE) = 18
read(18, "XPCOM\nTypeLib\r\n\32\1\2\0f\0\0B\351\0\0\0\"\0\0\vI"..., 17129) = 17129
close(18)                               = 0
stat64("/usr/lib/xulrunner-1.9/res/hiddenWindow.html", {st_mode=S_IFREG|0644, st_size=117, ...}) = 0
open("/usr/lib/xulrunner-1.9/res/hiddenWindow.html", O_RDONLY|O_LARGEFILE) = 18
umask(0777)                             = 022
umask(022)                              = 0777
sched_get_priority_min(SCHED_OTHER)     = 0
sched_get_priority_max(SCHED_OTHER)     = 0
clone(child_stack=0xb50884a4, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tidptr=0xb5088bd8, {entry_number:6, base_addr:0xb5088b90, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}, child_tidptr=0xb5088bd8) = 4759
sched_setscheduler(4759, SCHED_OTHER, { 0 }) = 0
futex(0xb5088d84, FUTEX_WAKE, 1)        = 1
futex(0x835e150, FUTEX_CMP_REQUEUE, 1, 2147483647, 0x835e18c, 6) = 1
futex(0x835e150, FUTEX_CMP_REQUEUE, 1, 2147483647, 0x835e18c, 6) = 1
open("/home/testuser/.cursors/default/cursors/08e8e1c95fe2fc01f976f1e063a24ccd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/testuser/.cursors/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/home/testuser/.icons/default/cursors/08e8e1c95fe2fc01f976f1e063a24ccd", O_RDONLY) = -1 ENOENT (No such file or directory)
[....snip....]
open("/usr/share/icons/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/cursors/08e8e1c95fe2fc01f976f1e063a24ccd", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/pixmaps/default/index.theme", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/xulrunner-1.9/components/libpipboot.so", O_RDONLY) = 19
read(19, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\31\0\0004\0\0\0"..., 512) = 512
fstat64(19, {st_mode=S_IFREG|0755, st_size=34232, ...}) = 0
mmap2(NULL, 33000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 19, 0) = 0xb4617000
mmap2(0xb461e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 19, 0x7) = 0xb461e000
close(19)                               = 0
mprotect(0xb461e000, 4096, PROT_READ)   = 0
futex(0xb5088bac, FUTEX_WAIT, 2, NULL)  = ? ERESTARTSYS (To be restarted)
--- SIGTERM (Terminated) @ 0 (0) ---
futex(0xb5088bac, FUTEX_WAIT, 2, NULL)  = ? ERESTARTSYS (To be restarted)
+++ killed by SIGKILL +++

....and needs to be killed with a kill - see last 3 lines

Comment 20 Raúl Porcel (RETIRED) gentoo-dev 2008-09-22 08:48:57 UTC
Richard and everyone else, are you using networkmanager?
Comment 21 Richard Cox 2008-09-22 22:39:56 UTC
(In reply to comment #20)
> Richard and everyone else, are you using networkmanager?
> 
No, I'm not using networkmanager.
Comment 22 Richard Cox 2008-09-22 22:44:06 UTC
(In reply to comment #19)
> I'm hit by this issue, too.
> After reboot the first time I try to start firefox it always hangs.
> 
Yes, I am seeing the exact same symptoms...strace reports a hang in the futex syscall. So far, I only have to kill it once though...could be a race condition of somekind.  Again, with -xulrunner in the use flags (which I think causes the ebuild to use an internal version of xulrunner), the problem goes away, though it seems performance is worse.  It's the only thing I have tried (and I have tried dozens of things suggested here and in the forums, and out in the wild) that makes the problem go away...but it is a poor bandaid...hope we can solve this one.

Comment 23 Raúl Porcel (RETIRED) gentoo-dev 2008-09-26 09:03:33 UTC
Tried with 3.0.2?
Comment 24 Richard Cox 2008-09-26 23:03:28 UTC
(In reply to comment #23)
> Tried with 3.0.2?
> 
Wow, I posted that entire paragraph above...and didn't mention the fact that it was after I upgraded both firefox and xulrunner to the latest versions.  So, yes, still happening with 3.0.2.
Comment 25 Paulo da Silva 2008-09-27 21:17:02 UTC
(In reply to comment #8)

...
> Updated summary:
> 
> 1. Emerging with "-xulrunner" always work.
> 2. Emerging with "xulrunner" never works the 1st time I launch it in all my computers

Somehow, the desktop amd64 also began to have the problem. I don't know when because I don't use it frequently and my family usually use "killall firefox" on the 1st session but didn't tell me!
Comment 26 Sonymouna Wocrad 2008-09-29 16:30:31 UTC
upgraded today 3.0.1 -> 3.0.3, problem still happens

problem does not occur on a different older setup
problem occurs on the almost brand new installed Gentoo (=FF3.x profile from day1), does not happen on old continually upgraded system (=upgraded from FF2.x profile)
both are 32bit x86

I get my network by dhcp at boot just fine, don't know what I would use a "network manager" for...
Comment 27 Peter Copeland 2008-10-16 12:29:51 UTC
Hi all,

I'd just like to say I have this bug too. If you need any info in addition to what others have provided please let me know.

I will add that I don't need to reboot for this to be a recurring problem. I can reproduce this by logging in to a console (without X running anywhere) as a normal user, startx, then try and run FF. It fails so I kill it then it works fine. Log out of X, log out of the console then log in again, as above, and the problem repeats itself.

Many thanks.
Comment 28 Raúl Porcel (RETIRED) gentoo-dev 2008-10-21 11:12:49 UTC
Guys can you please attach more qlist -IvC and emerge --info ?

There should be something you guys have in common, because i'm not able to reproduce

Thanks
Comment 29 Adam Van Ymeren 2008-10-26 15:37:01 UTC
Created attachment 169936 [details]
qlist -IvC

I'm also having the exact same problem.  Firefox 3.0.3 hangs forever on the first startup.  Here's my emerge --info and I attached the output of qlist -IvC.


Portage 2.1.4.5 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27.3 i686)
=================================================================
System uname: 2.6.27.3 i686 Genuine Intel(R) CPU T2500 @ 2.00GHz
Timestamp of tree: Tue, 14 Oct 2008 18:37:04 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/armagetron"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bzip2 cdr cli cracklib crypt cups dbus dri dvd dvdr fortran gdbm gif gnutls gpm hal iconv ipv6 isdnlog java jpeg midi mmx mudflap ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre perl png pppd python readline reflection samba sdl session spl sse sse2 sse3 ssl subversion sysfs tcpd tiff unicode vim-syntax vorbis x86 xinerama xml xorg xulrunner zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fglrx radeonhd radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 30 Douglas Anderson 2008-10-28 09:23:25 UTC
Created attachment 170075 [details]
qlist -IvC

Just to make things stranger, I am getting a similar bug, except with firefox-2.0.0.17 and xulrunner-1.8.1.17!

I'm posting this here just because I've noticed something extra strange. I carry my laptop between work and home. At work I have to use a proxy, at home I don't have to. When I get to work, firefox starts normally (proxy is not set since I last used it at home). When I get home, firefox doesn't start (proxy is set from work). If I then click the firefox icon again, it comes up, and then 2 ~ 3 minutes later, the original copy of firefox comes up.

So just looking for the common thread here (and because I want firefox-3 stabled!), are you other people who are having the same problem using a proxy?

Installed extensions:
Better Gmail, CS Lite, ABP, Download Statusbar, FireGPG, Google Gears

emerge --info
-------------
Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.25-gentoo-r8-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
Timestamp of tree: Tue, 28 Oct 2008 08:31:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/wschlich-testing /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X acl acpi anthy avahi bash-completion beagle berkdb bzip2 cairo cjk cli cracklib crypt cups dbus dri dvd dvdread encode flac gdbm git glitz gnome gnutls gpm gtk hal hardened hdaps iconv immqt-bc ipv6 isdnlog jpeg kdehiddenvisibility laptop libgcrypt mad midi mmx mono mudflap mysql ncurses njb nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd pulseaudio python qt4 readline reflection samba scanner session slang speex spell spl sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora threads truetype type1 unicode v4l vim-syntax vorbis x86 xcb xcomposite xinerama xorg xulrunner zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US ja" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 31 Richard Cox 2008-10-28 23:01:40 UTC
(In reply to comment #30)
> Created an attachment (id=170075) [edit]
> qlist -IvC
> 
> Just to make things stranger, I am getting a similar bug, except with
> firefox-2.0.0.17 and xulrunner-1.8.1.17!
> 
> I'm posting this here just because I've noticed something extra strange. I
> carry my laptop between work and home. At work I have to use a proxy, at home I
> don't have to. When I get to work, firefox starts normally (proxy is not set
> since I last used it at home). When I get home, firefox doesn't start (proxy is
> set from work). If I then click the firefox icon again, it comes up, and then 2
> ~ 3 minutes later, the original copy of firefox comes up.
> 
> So just looking for the common thread here (and because I want firefox-3
> stabled!), are you other people who are having the same problem using a proxy?
> 
> Installed extensions:
> Better Gmail, CS Lite, ABP, Download Statusbar, FireGPG, Google Gears
> 
> emerge --info
> -------------
> Portage 2.2_rc12 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0,
> 2.6.25-gentoo-r8 i686)
> =================================================================
> System uname:
> Linux-2.6.25-gentoo-r8-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-glibc2.0
> Timestamp of tree: Tue, 28 Oct 2008 08:31:01 +0000
> ccache version 2.4 [enabled]
> app-shells/bash:     3.2_p33
> dev-java/java-config: 1.3.7, 2.1.6
> dev-lang/python:     2.5.2-r7
> dev-util/ccache:     2.4-r7
> sys-apps/baselayout: 1.12.11.1
> sys-apps/sandbox:    1.2.18.1-r2
> sys-devel/autoconf:  2.13, 2.61-r2
> sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
> sys-devel/binutils:  2.18-r3
> sys-devel/gcc-config: 1.4.0-r4
> sys-devel/libtool:   1.5.26
> virtual/os-headers:  2.6.23-r3
> ACCEPT_KEYWORDS="x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-march=pentium-m -O2 -pipe -ggdb"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /var/lib/hsqldb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo
> /etc/udev/rules.d"
> CXXFLAGS="-march=pentium-m -O2 -pipe -ggdb"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs
> protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch
> userpriv usersandbox"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://www.ibiblio.org/pub/Linux/distributions/gentoo"
> LDFLAGS="-Wl,-O1"
> LINGUAS="en en_US ja"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/portage/local/layman/wschlich-testing /usr/local/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="7zip X acl acpi anthy avahi bash-completion beagle berkdb bzip2 cairo cjk
> cli cracklib crypt cups dbus dri dvd dvdread encode flac gdbm git glitz gnome
> gnutls gpm gtk hal hardened hdaps iconv immqt-bc ipv6 isdnlog jpeg
> kdehiddenvisibility laptop libgcrypt mad midi mmx mono mudflap mysql ncurses
> njb nls nptl nptlonly ogg opengl openmp pam pcre perl png pppd pulseaudio
> python qt4 readline reflection samba scanner session slang speex spell spl
> sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora threads truetype
> type1 unicode v4l vim-syntax vorbis x86 xcb xcomposite xinerama xorg xulrunner
> zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare
> dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter
> mmap_emul mulaw multi null plug rate route share shm softvol"
> APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm
> authn_default authn_file authz_dbm authz_default authz_groupfile authz_host
> authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir
> disk_cache env expires ext_filter file_cache filter headers include info
> log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
> status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
> INPUT_DEVICES="evdev mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad
> cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en
> en_US ja" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
> LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 

I think these are 2 different issues.  On the firefox hang I observe, it never, ever comes up.  I am not using and proxy settings.  I've let it hang for an hour before and nothing.  It stays stopped in a futex syscall.  Only killing it and restarting will allow start.  Also, I never had this happen with firefox 2.
Comment 32 Adam Van Ymeren 2008-11-06 15:41:25 UTC
I can also confirm that after emerge'ing with USE="-xulrunner" firefox no longer hangs.  Anyone have any idea what exactly firefox is waiting for?
Comment 33 Raúl Porcel (RETIRED) gentoo-dev 2008-11-15 15:14:11 UTC
I have no clue why this happens, and i can't reproduce...

Let's see...you guys seem to have the ipv6 flag enabled...do you have support for this on the kernel? Can you try building it without that use-flag?
Comment 34 Raúl Porcel (RETIRED) gentoo-dev 2008-11-15 16:32:03 UTC
The ubuntu maintainer is helping me tracing this, can you guys run  'strace -eopen -f firefox' and paste the output?

Thanks
Comment 35 Richard Cox 2008-11-15 16:44:36 UTC
(In reply to comment #33)
> I have no clue why this happens, and i can't reproduce...
> 
> Let's see...you guys seem to have the ipv6 flag enabled...do you have support
> for this on the kernel? Can you try building it without that use-flag?
> 

Correct. I have the ipv6 use flag enabled and I have ipv6 compiled in the kernel.  I just now disabled it in firefox and xulrunner, re-emerged...it had no effect on the problem.
Comment 36 Richard Cox 2008-11-15 16:45:45 UTC
(In reply to comment #34)
> The ubuntu maintainer is helping me tracing this, can you guys run  'strace
> -eopen -f firefox' and paste the output?
> 
> Thanks
> 

Thanks for continuing to work with this bug.  I'll reboot and try this.  Be back in a little bit with the results.
Comment 37 Richard Cox 2008-11-15 18:18:07 UTC
(In reply to comment #36)
> (In reply to comment #34)
> > The ubuntu maintainer is helping me tracing this, can you guys run  'strace
> > -eopen -f firefox' and paste the output?
> > 
> > Thanks
> > 
> 
> Thanks for continuing to work with this bug.  I'll reboot and try this.  Be
> back in a little bit with the results.
> 

Well, I'm pretty sure this is a race condition now...when I reboot and run the strace command you requrested above, it opens fine.  I reboot and try without the strace, and it hangs.  Every once in a while, when I reboot then start it, it comes up.  So something related to firefox and the xulrunner shared library is causing a race that results in a block on the futex mentioned in the previous comments.  Sorry...anything else you want me to try.
Comment 38 Raúl Porcel (RETIRED) gentoo-dev 2008-11-15 18:28:26 UTC
(In reply to comment #37)
> 
> Well, I'm pretty sure this is a race condition now...when I reboot and run the
> strace command you requrested above, it opens fine.  I reboot and try without
> the strace, and it hangs.  Every once in a while, when I reboot then start it,
> it comes up.  So something related to firefox and the xulrunner shared library
> is causing a race that results in a block on the futex mentioned in the
> previous comments.  Sorry...anything else you want me to try.
> 

Do you really need to reboot?

Wait around 1 hour or so, sync, and try to emerge latest xulrunner-1.9.0.4-r1, and rebuild firefox.

Thanks!
Comment 39 Richard Cox 2008-11-15 19:49:51 UTC
(In reply to comment #38)
> (In reply to comment #37)
> > 
> > Well, I'm pretty sure this is a race condition now...when I reboot and run the
> > strace command you requrested above, it opens fine.  I reboot and try without
> > the strace, and it hangs.  Every once in a while, when I reboot then start it,
> > it comes up.  So something related to firefox and the xulrunner shared library
> > is causing a race that results in a block on the futex mentioned in the
> > previous comments.  Sorry...anything else you want me to try.
> > 
> 
> Do you really need to reboot?
> 
> Wait around 1 hour or so, sync, and try to emerge latest xulrunner-1.9.0.4-r1,
> and rebuild firefox.
> 
> Thanks!
> 

You fixed it!  Great work Raul!  It would usually only happen for me right after a reboot...only the first time I started firefox.  I just grabbed the new version of xulrunner you provided, emerged it and firefox again, and rebooted 3 times, to test...no hangs.  That never happened before.  

I know this one was a bear to track down and fix, especially since you couldn't duplicate it...just curious, what was the issue?
Comment 40 Raúl Porcel (RETIRED) gentoo-dev 2008-11-15 20:26:38 UTC
Cool! Let's see if the other ppl who had this problem don't have it anymore...thank you very much for testing it!

The ebuild used --disable-libxul, for a reason i can't remember, and the ubuntu maintainer(hi, asac) told me that was wrong, and they don't use it either, so since i didn't found a reason for having it, thats what i removed.

Adam, Sonymouna, Paulo, can you guys test this so we can get ff marked stable?

As for Douglas, your bug is bug 169155
Comment 41 Sonymouna Wocrad 2008-11-16 19:18:58 UTC
upgrading xulrunner 1.9.0.3 -> 1.9.0.4-r4 gives
"Could not find compatible GRE between version 1.9.0.3 and 1.9.0.3"
error message at firefox start...... huh?

additionally upgrading mozilla-firefox 3.0.3 -> 3.0.4 fixes this

I tried rebooting multiple times and so far I have no problems :-)
Comment 42 Raúl Porcel (RETIRED) gentoo-dev 2008-11-17 10:58:37 UTC
Closing as fixed, then! :)

Thanks guys
Comment 43 Adam Van Ymeren 2008-11-26 05:06:35 UTC
Not that you need my confirmation since its already marked as fixed, but updating xulrunner as you suggested fixed the problem for me.  Thanks for all your effort to fix this bug.