I just upgraded today to mozilla-firefox-bin-3.0_beta4 by emerging, killing my current session, and then restarting. However, I can't get FF to come back up. From the terminal, it just says: No running windows found Warning: Couldn't extract MOZ_USER_DIR from /opt/firefox/firefox-bin And seems to sit there indefinitely. I've tried deleting my ~/.mozilla, 'emerge -C netscape-flash emul-linux-x86-java', and even rebooted. Nothing seems to work (always the same result). I changed my /etc/portage/package.unmask to explicitly use beta3, and it works fine. The firefox-3.0b5pre.en-US.linux-i686.tar.bz2 binary from mozilla works fine. There is something specifically wrong with beta4 package from portage. emerge --info: Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r3 x86_64) ================================================================= System uname: 2.6.23-gentoo-r3 x86_64 Dual Core AMD Opteron(tm) Processor 165 Timestamp of tree: Tue, 11 Mar 2008 19:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 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-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=opteron -O2 -pipe -msse3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=opteron -O2 -pipe -msse3" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.utf8" LC_ALL="en_US.utf8" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acl acpi alsa amd64 apache2 arts bash-completion berkdb cairo cdr cli cracklib crypt cups curl dbus dri dts dv dvd dvdr dvdread eds emboss encode esd evo exif fam fastcgi ffmpeg firefox flac foomaticdb fortran gd gdbm gif gpm gps gstreamer gtk hal iconv ieee1394 imagemagick ipod ipv6 isdnlog jabber javascript jpeg jpeg2k kde kerberos lame lm_sensors mad midi mikmod mmx mp3 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl php png pppd python qt3 qt3support qt4 quicktime rdesktop readline reflection ruby samba scanner sdl session simplexml smp spell spl sse sse2 ssl svg tcpd theora tiff truetype unicode usb userlocales v4l2 vorbis xinerama xml xorg xv xvid zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always Steps to Reproduce: 1. Emerge mozilla-firefox-bin-3.0_beta4 2. run 'firefox' from terminal 3. Actual Results: Nothing Expected Results: Firefox starts normally.
(In reply to comment #0) Same issue on my amd64 system. It works fine on my x86 box. I'll post my emerge --info if wanted, but didn't want to waste the room.
beta4 is broken on my ~x86 system too. I'd recommend masking it if other users have it too.
I have the same problem on x86. When i strace the process, it hands on futex: [pid 32705] futex(0xb6afc4fc, FUTEX_WAKE, 2147483647) = 0 [pid 32705] futex(0xb71b6070, FUTEX_WAKE, 2147483647) = 0 [pid 32705] getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0 [pid 32705] futex(0xb7ee01c4, FUTEX_WAIT, 2, NULL
I edited /usr/bin/firefox-bin, commenting out: exec /usr/libexec/mozilla-launcher "$@" and replacing it with: exec /opt/firefox/firefox-bin Firefox now starts up fine.
(In reply to comment #4) > I edited /usr/bin/firefox-bin, commenting out: > > exec /usr/libexec/mozilla-launcher "$@" > > and replacing it with: > > exec /opt/firefox/firefox-bin That should be: exec /opt/firefox/firefox-bin "$@" Otherwise, other programs calling firefox to display a URL just bring up a firefox window with default tabs.
I've been able to narrow down the cause of the problem to aoss. I added 'set -x' to the beginning of the mozilla-launcher script (ver. 1.58), observed which environment variables were exported and found that beta 4 was effectively being launched as follows when 'firefox-bin -P Profile' is run: MOZILLA_FIVE_HOME=/opt/firefox LD_LIBRARY_PATH=/opt/firefox:/opt/firefox/plugins MOZ_NO_REMOTE=1 /usr/bin/aoss /opt/firefox/firefox-bin -P Profile Removing /usr/bin/aoss from the commandline allowed Firefox to start up just fine. (with both alsa-oss version 1.0.14 and 1.0.15)
Comparing the exported and referenced dynamic symbols from libaoss.so and libjemalloc.so, I was able to determine the deadlock is from libjemalloc.so assuming that calling mmap/open/close would never call malloc/calloc. The problem is of the chicken and egg sort: 1. libjemalloc.so needs to initialize itself before for any calls to malloc/calloc can allocate memory. 2. libjemalloc.so calls mmap to get memory to work with. 3. libaoss.so overrides mmap in case programs try to perform mmap'ed io on OSS fds. It calls calloc to allocate an array to store information about each possible fd. 4. Calling calloc requires libjemalloc.so to be initialized. To avoid this, alsa-oss must have a way to initialize itself without calling any functions that call calloc/malloc (including libc functions that internally call them). I tried to directly call libc's calloc(), but it appears dlsym() internally calls calloc or malloc which effectively means if libjemalloc.so is loaded, alsa-oss cannot lookup the real functions it overrides (open(), close(), mmap(), etc). Furthermore, since calling dlsym() calls malloc/calloc and causes the deadlock, libjemalloc.so cannot use dlsym() to get the real mmap() from libc. As such, aoss (and any other function that wraps itself around mmap) cannot be used with mmap allocator in libjemalloc.so/Firefox 3 Beta 4. Workaround? unemerge alsa-oss or remove all references to aoss in /usr/libexec/mozilla-launcher
This is not in the overlay(i'm changing the summary) So...have you tried with b5pre using mozilla-launcher? This looks like aoss stopped working with ff3? Rémi, you fail so much, this is already p.masked since beta1 :P
Also having problems starting it, but no freeze is observed, and aoss is not installed. yzhao@awa ~ $ firefox-bin No running windows found Warning: Couldn't extract MOZ_USER_DIR from /opt/firefox/firefox-bin Error: in guard: symbol required but got: Error: fatal: looped fatal error firefox-bin exited with non-zero status (1) Warning: Couldn't extract MOZ_USER_DIR from /opt/firefox/firefox-bin
It looks like the problem is that /usr/libexec/mozilla-launcher is trying to grep out the MOZ_USER_DIR from the script /opt/firefox/firefox (the start script distributed with Firefox) and this script no longer defines this variable, since 2.0.0.12 works fine. From mozilla-launcher: eval $(grep -m1 MOZ_USER_DIR= $MOZILLA_FIVE_HOME/${zero%-bin}) if [[ -z $MOZ_USER_DIR ]]; then echo "Warning: Couldn't extract MOZ_USER_DIR from $MOZILLA_FIVE_HOME/$zero" return fi Running /opt/firefox/firefox works fine, so this looks like a bug in mozilla-launcher (or, rather, an assumption which is no longer true in 3.0b4).
(In reply to comment #10) Well, it works for me...i thought that could be the problem, but...dunno, try commenting that line in /usr/libexec/mozilla-launcher.
same on my amd64 system. in addition, even after hand-changing to invoke /opt/firefox/firefox-bin , there is a second issue for me now: /opt/firefox/firefox-bin: symbol lookup error: /opt/firefox/libxul.so: undefined symbol: sqlite3_enable_shared_cache Portage 2.1.4.4 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24 x86_64) ================================================================= System uname: 2.6.24 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz Timestamp of tree: Sat, 15 Mar 2008 00:00:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.3.5-r3, 2.4.4-r9 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -pipe -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" 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="-march=nocona -pipe -O2" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer noinfo parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo http://gentoo.mirrors.tds.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/" LC_ALL="POSIX" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl acpi alsa amd64 apache2 arts asf atlas berkdb bitmap-fonts blas bonobo bzip2 bzlib cairo calendar cddb cdr cli cracklib crypt cups curl dbus directfb dri dv dvd dvdr dvdread eds emacs emboss encode esd evo examples f77 fam fbcon ffmpeg firefox fortran ftp g77 gcj gdbm ggi gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hdhomerun iconv ieee1394 imagemagick imlib ipv6 isdnlog java javascript jpeg kde kdeenablefinal kerberos ldap libedit libwww lm_sensors mad mbox midi mikmod mime mmx mmx2 mono motif mozilla mp3 mpeg mudflap mval mysql nas ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcm pcre pdf perl png postgres ppds pppd python qt qt3 qt3support qt4 quicktime readline reflection ruby samba scanner sdl server session slang snmp soap spell spl sqlit sse sse2 ssl svg symlink tcltk tcpd tidy tiff tightvnc truetype type1 unicode usb vnc vorbis wma xinerama xml xml2 xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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" USERLAND="GNU" VIDEO_CARDS="video_cards_nv" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
(In reply to comment #12) > same on my amd64 system. in addition, even after hand-changing to invoke > /opt/firefox/firefox-bin , there is a second issue for me now: > > /opt/firefox/firefox-bin: symbol lookup error: /opt/firefox/libxul.so: > undefined symbol: sqlite3_enable_shared_cache Try running /opt/firefox/firefox
For those running uim, try upgrading to uim-1.4.2. There is a known bug with uim and jemalloc that was fixed in the latest version. (http://groups.google.com/group/uim-en/browse_thread/thread/c2331f7608efa345) In my case, Firefox starts as normal after upgrading uim.
Do you guys use paludis, by any chance?
(In reply to comment #15) > Do you guys use paludis, by any chance? In my case, no.
Created attachment 146998 [details] mozilla-firefox-bin-3.0_beta5_pre20080323.ebuild Can you guys try this ebuild? I still can't reproduce this :/
i can't start the browser even with the new ebuild ( mozilla-firefox-bin-3.0_beta5_pre20080323.ebuild ) #firefox-bin /opt/firefox/mozilla-xremote-client: Error: Failed to find a running server. No running windows found ... and it hangs
running /opt/firefox/firefox works
(In reply to comment #18) > i can't start the browser even with the new ebuild ( > mozilla-firefox-bin-3.0_beta5_pre20080323.ebuild ) > > #firefox-bin > /opt/firefox/mozilla-xremote-client: Error: Failed to find a running server. > No running windows found > > ... > > and it hangs > Check if you have a running process already
> Check if you have a running process already > no. i didn't have any previous running firefox processes
What you guys have in /usr/lib/nsbrowser/plugins ?
And what extensions?
ls /usr/lib/nsbrowser/plugins javaplugin.so mplayerplug-in-dvx.so mplayerplug-in-qt.so mplayerplug-in-wmp.xpt nppdf.so libflashplayer.so mplayerplug-in-dvx.xpt mplayerplug-in-qt.xpt mplayerplug-in.xpt libmozsvgdec.a mplayerplug-in-gmp.so mplayerplug-in.so nphelix.so libmozsvgdec.la mplayerplug-in-gmp.xpt mplayerplug-in-wmp.so nphelix.xpt as extensions i have Adblock plus United States Dictionary Dom Inspector
(In reply to comment #24) > ls /usr/lib/nsbrowser/plugins > javaplugin.so mplayerplug-in-dvx.so mplayerplug-in-qt.so > mplayerplug-in-wmp.xpt nppdf.so > libflashplayer.so mplayerplug-in-dvx.xpt mplayerplug-in-qt.xpt > mplayerplug-in.xpt > libmozsvgdec.a mplayerplug-in-gmp.so mplayerplug-in.so nphelix.so > libmozsvgdec.la mplayerplug-in-gmp.xpt mplayerplug-in-wmp.so nphelix.xpt > > > as extensions i have > > Adblock plus > United States Dictionary > Dom Inspector > Could you try moving that directory away? And try with a new profile as well. Thanks
I have the same problem with beta4 $ firefox No running windows found Warning: Couldn't extract MOZ_USER_DIR from /usr/lib/mozilla-firefox/firefox But running FF3 with $ /usr/lib/mozilla-firefox/firefox-bin all seems to work well
(In reply to comment #25) > (In reply to comment #24) > > ls /usr/lib/nsbrowser/plugins > > javaplugin.so mplayerplug-in-dvx.so mplayerplug-in-qt.so > > mplayerplug-in-wmp.xpt nppdf.so > > libflashplayer.so mplayerplug-in-dvx.xpt mplayerplug-in-qt.xpt > > mplayerplug-in.xpt > > libmozsvgdec.a mplayerplug-in-gmp.so mplayerplug-in.so nphelix.so > > libmozsvgdec.la mplayerplug-in-gmp.xpt mplayerplug-in-wmp.so nphelix.xpt > > > > > > as extensions i have > > > > Adblock plus > > United States Dictionary > > Dom Inspector > > > > Could you try moving that directory away? And try with a new profile as well. > > Thanks > still the same error. i can get it to work unemerging media-libs/alsa-oss
Well, this is not due to mozilla-launcher itself, mozilla-launcher only executes 'aoss firefox' if you have alsa-oss installed. Try it with that command, and you'll see the same issue. For flash9 afaik you don't need alsa-oss, so unmerge it.
Having the mozilla-firefox-bin ebuild block against alsa-oss is the wrong solution - please fix mozilla-launcher instead.
I’m observing the same behaviour as in comment #6 et al. with www-client/mozilla-firefox-3.0_beta5. I think I have no plugins that need the aoss wrapper, so I removed references to it from /usr/libexec/mozilla-launcher and Firefox works again. However, I cannot unmerge aoss itself because I do need it for other applications. Can it please be made possible to turn off aoss in mozilla-launcher?
3.0 doesn't use mozilla-launcher anymore.
I don't even have alsa-oss installed. The only way I could get firefox 3.0 to run was by setting LD_PRELOAD=/lib/libc.so.6 first (got the idea from <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=475166> which references this bug).
mozilla-firefox-bin-3.0_beta4 doesn't exist in portage now so I think this bug may be closed.
I'm running Ubuntu Gutsy. I installed Firefox 3 (final release) by downloading it from mozilla and it ran fine for a couple of days, but now whenever I try to open it crashes with this error: Error: in guard: symbol required but got: Error: fatal: looped fatal error I think it may have had to do with the "Add Bookmark Here" extension, which I installed the last time before it started crashing. I deleted the directory containing firefox (i.e. ~/firefox), then unzipped a fresh copy from mozilla. I tried deleting the ~/.mozilla folder. I also opened the old version of Firefox 2 (which runs ok) and uninstalled "Add Bookmark Here". None of these things have worked though, I still can't run Firefox 3. I deleted .mozilla then created a new profile using the command firefox -p. So now Firefox 2 had no extensions installed. I also now have Firefox 3 beta 4 (out of the repository) and that works fine too. But the full release of Firefox 3 from the mozilla site does not work - it gives me the fatal loop error. I have tried following the instructions on ubuntuzilla but these result in the same error message. I am running the bin file directly from the uncompressed folder (e.g. ~/firefox/firefox or /opt/firefox/firefox)
Aah sorry about posting too soon - the problem for me was with UIM. I uninstalled it and FF 3 worked again.