After upgrading gtk+ Firefox no longer starts. Running from a terminal, this message is the only thing that comes up: (firefox-bin:18465): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) I've asked around, but got no feeback, so ill just submit this here. Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.51.22-r1 (default-linux/amd64/2005.0/no-multilib, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12 x86_64) ================================================================= System uname: 2.6.12 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer -ffast-math -funroll-all-loops -ftracer -funswitch-loops -funit-at-a-time" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoclean autoconfig ccache distlocks noinfo notitles sandbox sfperms strict" GENTOO_MIRRORS="ftp://rsync.gentoo.diku.dk ftp://ftp.dkuug.dk/pub/gentoo/ http://ftp.du.se/pub/os/gentoo" LANG="en_US.UTF8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 alsa nptl nptlonly pic unicode userlocales video_cards_nvidia userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LINGUAS
interesting seeing I have updated and all is fine .... please emerge strace and run `strace firefox' and post it please.
I'd start cleaning out the CFLAGS.
Nuno: Rebuild gtk+ with sane CFLAGS, try again. If you can narrow down the particular problem flag then we can filter it in the gtk+ ebuild. mozilla-firefox already filters CFLAGS heavily.
Created attachment 61826 [details] strace
builded gtk+- with "-march=k8 -O2 -pipe" strace attached.
I have the same problem, on my amd64 (can't post emerge info right now but it must be almost identical to Alexandre's one.
*** Bug 97270 has been marked as a duplicate of this bug. ***
Also can't say I have insane CFLAGS, though I do have ~amd64 set, getting this error on *BOTH* mozilla &mozilla-firefox $ emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r1 x86_64) ================================================================= System uname: 2.6.12-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=k8 -march=athlon64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-mtune=k8 -march=athlon64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg candy ccache distlocks nosandbox sfperms strict" GENTOO_MIRRORS=" ftp://10.1.2.10/gentoo/ ftp://ftp.is.co.za/linux/distributions/gentoo ftp://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.pair.com/" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib acpi alsa amd64 ao apache2 arts berkdb bitmap-fonts bluetooth bzip2 bzlib cdda cddb cdio cdparanoia cdr cpudetection crypt css csv cups curl curlwrappers dar32 dar64 db2 dba dbus dbx dga dio doc dts dv dvb dvd dvdcss dvdr dvdread ecc eds emul-linux-x86 encode esd extensions fam fame fastcgi ffmpeg firefox flac font-server foomaticdb fortran ftp gcj gd gdbm gif gimpprint glibc gnokii gnome gnutls gphoto2 gpm gssapi gstreamer gtk ieee1394 imagemagick imlib ipv6 jack jp2 jpeg ldap libdsk libsamplerate libwww lzo lzw lzw-tiff mad mng motif mozdevelop mozilla moznomail mp3 mpeg mpeg4 mplayer mpm-event msdav mysql nas ncurses nls nptl nptlonly nvidia objc ogg oggvorbis opengl openssl osc oss pam perl php png postgres ppds python qt rar rdesktop readline reiserfs rtc sdl slang sqlite ssl tcpd tetex theora threads tiff transcode truetype truetype-fonts type1 type1-fonts ups urandom usb userlocales vcd vidix vorbis webdav wma123 xine xml xml2 xmms xpm xrandr xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
the cflags arent insane, check the gcc manual and see under -O3
Hi, here is my emerge info, and I can say I also don't use very aggressive flags... Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6.12-gentoo-r2 x86_64) ================================================================= System uname: 2.6.12-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.12 ccache version 2.4 [disabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.9 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fweb -ftracer -frename-registers" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fweb -ftracer -frename-registers" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildsyspkg distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.inode.at/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LANG="fr_FR.utf8" LC_ALL="fr_FR.utf8" LDFLAGS="-Wl,-O1" LINGUAS="fr" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/overlays/standard /usr/local/overlays/mplayer32 /usr/local/overlays/emul-soundlibs /usr/local/overlays/emul-compat" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa bash-completion bitmap-fonts cdr crypt cups curl dedicated dvd dvdr encode font-server gif gtk gtk2 imagemagick imlib java jp2 jpeg lzw lzw-tiff mad matroska mp3 mpeg ncurses nls nptl ogg opengl oss pam perl pic png python readline samba sdl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis wmf xine xml xml2 xpm xprint xv xvid zlib linguas_fr userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, MAKEOPTS
would one of you please mv ~/.mozilla to ~/.mozilla.bck and try and start firefox in a terminal.
I did it, and it outputs : No running windows found (firefox-bin:31297): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) *** nsExtensionManager::_disableObsoleteExtensions - failure, catching exception so finalize window can close *** loading the extensions datasource *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping. (firefox-bin:31297): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) *** loading the extensions datasource *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping. and hangs here. In fact, firefox IS launched as firefox-bin is shown is ps, but no window is drawn...
mort do me one more favor and run strace firefox-bin make sure you move the newly created .mozilla dir so you get the exact output as before please ... attach it to bug or email it to me directly.
gtk-2.6.8 new ~/.mozilla dir: ~ firefox No running windows found (firefox-bin:14309): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) *** nsExtensionManager::_disableObsoleteExtensions - failure, catching exception so finalize window can close *** loading the extensions datasource *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping. (firefox-bin:14309): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) *** loading the extensions datasource *** ExtensionManager:_updateManifests: no access privileges to application directory, skipping.
Created attachment 62255 [details] strace firefox
Comment on attachment 62255 [details] strace firefox strace firefox > firefox.log 2>&1
I added the strace, if it can help... (I attached the wrong one the first time ^_^).
aight one last piece of info please and I will be able to get this fixed ... I am sure it is the new abi for gtk that is causing the problem, I need you to chown -R sername:users .mozilla You will have to be root for this but wanna make sure permissions are correct. Once this step is complete try firefox once more report success or faillure once again.
OK, I did the chown, and still no luck... But I've a doubt on the dir you wanted me to chown : was it really .mozilla or /usr/lib/MozillaFirefox ? Because for .mozilla, no need to be root... Anyway, I also did the chown on /usr/lib/MozillaFirefox and couldn't launch firefox any better...
*** Bug 98868 has been marked as a duplicate of this bug. ***
1.0.5 is in the tree if you would build and test it would be much appreciated. Report back on how things go.
no luck. firefox-1.0.5 with gtk-2.6.8 (firefox-bin:14172): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) firefox-1.0.5 with gtk-2.6.7 works fine.
could someone please try `CFLAGS="" LDFLAGS="" emerge =gtk+-2.6.8" and see if that gets ya any further.
tried that - same result :/
Im having the same problem as you guys. Right now Mozilla and Thunderbird work fine, only Firefox crashes on me. Anyway here is my emerge info Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0, 2.6 .12-ck2-r1 x86_64) ================================================================= System uname: 2.6.12-ck2-r1 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/default s/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib aim alsa amd64 arts avi bash-completion berkdb bitmap-fonts bzlib cdb cdr crypt cups curl dedicated dvb dvd dvdr dvdread emul-linux-x86 enc ode esd ethereal examples fam ffmpeg flac font-server foomaticdb fortran ftp gcj gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 java javascript jpeg junit kde ldap lm_sensors lzw lzw-tiff mad mikmod mmap mng motif mozilla mp3 mpeg ncurses nls nocd nptl nvidia offensive ogg oggvorbis openal opengl oscar oss pam pda pdflib perl png python qt quicktime readline sd l slang spell ssl svg tcpd theora tiff truetype-fonts type1-fonts usb userlocale s videos vorbis xine xml xml2 xmms xpm xprint xv xvid zlib userland_GNU kernel_l inux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Tried CFLAGS="" LDFLAGS="", same problem. This isn't perhaps a 64bit problem with GTK+ 2.6.8? Is it *only* AMD64 that have this problem??
(In reply to comment #26) > Tried CFLAGS="" LDFLAGS="", same problem. > > This isn't perhaps a 64bit problem with GTK+ 2.6.8? > Is it *only* AMD64 that have this problem?? My x86 don't exhibit that problem.
What do you guys think of this? mozilla/gfx/src/gtk/nsScreenGtk.cpp (line 140+) if (!gdk_property_get(root_window, gdk_atom_intern ("_NET_WORKAREA", FALSE), cardinal_atom, 0, G_MAXLONG, FALSE, &type_returned, &format_returned, &length_returned, (guchar **) &workareas)) { // This window manager doesn't support the freedesktop standard. // Nothing we can do about it, so assume full screen size. return; } // Flush the X queue to catch errors now. gdk_flush(); if (!gdk_error_trap_pop() && type_returned == cardinal_atom && length_returned && (length_returned % 4) == 0 && format_returned == 32) { int num_items = length_returned / sizeof(long); for (int i = 0; i < num_items; i += 4) { nsRect workarea(workareas[i], workareas[i + 1], workareas[i + 2], workareas[i + 3]); if (!mRect.Contains(workarea)) { NS_WARNING("Invalid bounds"); continue; } mAvailRect.IntersectRect(mAvailRect, workarea); } } The gdk_property_get causes the warning, though the warningn seems to be cosmetic only. Then, when running with gdb, I see: WARNING: Invalid bounds, file nsScreenGtk.cpp, line 169 And looking at it: (gdb) p mRect $27 = { x = 0, y = 0, width = 1024, height = 768 } (gdb) p workarea $28 = { x = 0, y = 1024, width = 32, height = 33 } Something seems very wrong here. Could it be the following cast: (guchar **) &workareas That's as far as gdb took me.
OK, to put this in a new light. $ LD_LIBRARY_PATH=/var/tmp/portage/gtk+-2.6.8/image/usr/lib64 firefox >/dev/null No running windows found nsNativeComponentLoader: autoregistering begins. nsNativeComponentLoader: autoregistering succeeded nNCL: registering deferred (0) WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsINIParser.cpp, line 51 (firefox-bin:1015914): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) WARNING: Invalid bounds, file nsScreenGtk.cpp, line 169 WARNING: Invalid bounds, file nsScreenGtk.cpp, line 169 WARNING: Invalid bounds, file nsScreenGtk.cpp, line 169 No such warnings with gtk+-2.6.7 Using gdb against both 2.6.7 and 2.6.8 and I see that with 2.6.7 gdk_property_get returns 0 items (length = 0), but with 2.6.8 it returns plenty. So, asking for the NET_WORKAREA hint, and receiving an answer, does break things... Seeing that this is possibly a problem of the windowmanager, I tried running firefox from twm (as opposed from windowmaker until now). Guess what -- works flawlessly. Can anyone else confirm that running with twm solves the problem? What window manager do you use? What should the proper solution be? I am guessing that when firefox detects "Invalid bounds" it could proceed as if it got no answer?
Created attachment 63458 [details, diff] firefox-badfreedesktop.patch This patchety patch solved it for me. It's definitely not a proper fix, but at least firefox is working now.
Patch didnt work for me.
For me it "solved" the problem : I still have the error message but firefox starts !
Created attachment 63573 [details] Ebuild with Patch for AMD64 Well this is the ebuild I made for it. If someone wants to look it over to make sure I did it right that would be great. Thanks
What about your windowmanagers, people? As I mentioned earlier, I have the problem with windowmaker but not with twm. I have nothing else installed to try out, but it would be nice to hear other experiences. The patch above fixed it for one and not for another. That reminds me that with a debugging firefox I was getting three "invalid bounds" messages, but I had four workspaces. So, it might be that if you have only one workspace you don't hit the "break" in the patch and it doesn't work for you. Trager, could you create one more workspace and see if firefox works? If that is the case, we can simply remove that piece of code (sed -i -e '159,+16 d' ${S}/gfx/src/gtk/nsScreenGtk.cpp) until the proper fix is found.
As mcuh as we would like to get this resolved as fast as possible it seems we have hit a wall. A patch that works for some and does not for others hmm... If someone would take the time and test on firefox gnome and kde and report back it would help speed the proccess along ... Sorry I can not test this myself I do not have an amd64 setup.
Georgiev, I have 4 workspaces and im using fluxbox, I dont have anyother wm installed.
I'm using Fvwm with 4 worksapces, and the patch worked (I also applied it to thunderbird as it was also affected).
FYI - I successfully emerged gtk+-2.6.8 (as it exists in portage right now) and firefox-bin works fine. So does thunderbird (non-bin). This is on a mostly-stable amd64, with the following emerge info: Gentoo Base System version 1.6.12 Portage 2.0.51.22-r1 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.5-r0, 2.6.12-gentoo-r4-rf30 x86_64) ================================================================= System uname: 2.6.12-gentoo-r4-rf30 x86_64 AMD Athlon(tm) 64 Processor 3000+ distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.10 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb -fstack-protector" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /home /opt/zetagrid /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/freenet /var/qmail/control /var/www" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CTARGET="x86_64-pc-linux-gnu" CXXFLAGS="-march=k8 -Os -pipe -fomit-frame-pointer -frename-registers -fweb -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks nostrip sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/var/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 4kstacks X aac aalib aim alsa apache2 arts avi bash-completion berkdb bitmap-fonts bonobo canna cdparanoia cdr crypt css cups curl dba dts dv dvd encode esd ethereal fam fbcon flac foomaticdb fortran freetype gd gdbm gif gimpprint glut gmail gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv imagemagick imap imlib innodb ipv6 jack java jpeg junit kde kerberos ldap libwww lm_sensors lzw lzw-tiff mad maildir memlimit mikmod motif mozilla mozsvg mp3 mpeg mpeg4 mplayer msn mysql ncurses nls nptl ntlm oav ogg oggvorbis opengl pam pda pdflib perl php png python qt quicktime readline ruby samba sasl sdl session slang smime speex spell ssl svg tcltk tcpd tetex theora tiff timidity truetype-fonts type1-fonts usb userlocales vorbis wmf xine xml xml2 xmms xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, LANG, LC_ALL, LDFLAGS, LINGUAS
(In reply to comment #38) > FYI - I successfully emerged gtk+-2.6.8 (as it exists in portage right now) and > firefox-bin works fine. firefox-bin is understandable -- it uses the binary gtk libraries after all, so it is not affected by the gtk upgrade. > So does thunderbird (non-bin). That's a good point. > This is on a > mostly-stable amd64, with the following emerge info: > <skip> > CONFIG_PROTECT="/etc /home /opt/zetagrid /usr/kde/2/share/config > /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config > /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config > /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb <skip> Are we to assume that you're running kde? So, the count is: kde (Freeman?), twm (me) -- not affected at all windowmaker (me), fvwm (Mort) -- affected, but fixable fluxbox (Trager): affected, not fixable? Oh, hell, my box is idle all day so I can as well install a few more windowmanagers.
OK, I did some more testing and here are the results: patched unpatched fvwm OK HANG kwin OK OK metacity OK OK twm OK OK wmaker (1 WS) OK OK wmaker (2,4 WS) OK HANG xfwm4 OK OK To summarize: for me, the original unpatched firefox failed only with fvwm and windowmaker with more than one workspace. With all other windowmanagers it worked just fine.
I just look at firefox on my x86 machine and it does get the warning but does not crash. Im on fluxbox and firefox still dosnt not work, does anyone see a fix for this?
Lee are you using the latest stable version of firefox or still on 1.0.4?
It seems fvwm 2.5.13 or firefox-1.0.6 solved the problem for me, as I don't have to apply the patch anymore.
I have the following versions mozilla-firefox-1.0.6-r3 gtk+ 2.6.8 fluxbox 0.9.13-r1 Here is my emerge info incase you need something from there Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6 .12-ck4 x86_64) ================================================================= System uname: 2.6.12-ck4 x86_64 AMD Athlon(tm) 64 Processor 3500+ Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share /config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kd e/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defau lts/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/ distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X a52 aac aalib aim alsa amd64 arts avi bash-completion berkdb bitmap-fonts bzlib cdb cdr crypt cups curl dedicated dvb dvd dvdr dvdread emul-linux-x86 enc ode esd ethereal examples fam ffmpeg flac font-server foomaticdb fortran ftp gcj gdbm gif gimpprint glut gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 java javascript jpeg junit kde ldap lm_sensors lzw lzw-tiff mad mikmod mmap mng motif mozilla mp3 mpeg ncurses nls nocd nptl nvidia offensive ogg oggvorbis openal opengl oscar oss pam pda pdflib perl png python qt quicktime readline sd l slang spell ssl svg tcpd theora tiff truetype-fonts type1-fonts usb userlocale s videos vorbis xine xml xml2 xmms xpm xprint xv xvid zlib userland_GNU kernel_l inux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
This problem is very serious. It should be nr.1 in your list. Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r1, 2.6.13-gentoo i686) ================================================================= System uname: 2.6.13-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl eds emboss encode fam foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg kad kde ldap libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell sqlite ssl stats tcltk tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis xine xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTDIR_OVERLAY
Update to mozilla-1.7.12-r1 or firefox-1.0.7-r1.
Err, I might have misread the version numbers :] Anyhow, try with mentioned versions.
I am using AMD64, firefox-1.0.7-r1 segmentation falted as described in this bug report. This patch eliminated the error message: --- gfx/src/gtk/nsScreenGtk.cpp.orig 2005-09-27 17:11:42.000000000 -0400 +++ gfx/src/gtk/nsScreenGtk.cpp 2005-09-27 17:11:58.000000000 -0400 @@ -143,7 +143,7 @@ if (!gdk_property_get(root_window, gdk_atom_intern ("_NET_WORKAREA", FALSE), cardinal_atom, - 0, G_MAXLONG, FALSE, + 0, G_MAXLONG -3, FALSE, &type_returned, &format_returned, &length_returned, Firefox still segmentation falted with a different number, no error description, adding filter-flags -fstack-protector to the ebuild fixed that. See http://forums.gentoo.org/viewtopic-p-2758153.html#2758153 for more details. George
Added the patch to -r2 of firefox-1.0.7 and mozilla-1.7.12. PS, do you have hardened profile to need the 'filter-flags -fstack-protector' ?
(In reply to comment #48) > I am using AMD64, firefox-1.0.7-r1 segmentation falted as described in this > bug report. What gcc revision? 'emerge info' please > See http://forums.gentoo.org/viewtopic-p-2758153.html#2758153 for more
mozilla-firefox-1.0.7-r2 fixed the problem as described in this bug report, however I still had to add: filter-flags -fstack-protector to eliminate the other segmentation falt. emerge info ============= Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.13-gentoo-r2 x86_64) ================================================================= System uname: 2.6.13-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -frename-registers -fweb -ffast-math -mfpmath=sse -ftracer -funroll-loops -fstack-protector " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -frename-registers -fweb -ffast-math -mfpmath=sse -ftracer -funroll-loops -fstack-protector " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://gentoo.mirrors.pair.com/" LDFLAGS="-Wl,-O1" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aalib alsa arts avi berkdb bitmap-fonts cdr crypt cups curl dvd eds emboss encode esd fam ffmpeg flac font-server foomaticdb fortran gd gdbm gif gpm gstreamer gtk gtk2 imagemagick imlib java jpeg kde lm_sensors lzw lzw-tiff mikmod motif mozilla moznomail mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl spell ssl subversion tcpd tiff truetype truetype-fonts type1-fonts usb userlocales vorbis wmf xine xml2 xmms xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS George
I'm stille having the problem with -r2 even though I dont see the Gdk warning any more. I'm using openbox as my windowmanager and I'm on AMD64
(In reply to comment #52) > I'm stille having the problem with -r2 even though I dont see the Gdk warning > any more. > I'm using openbox as my windowmanager and I'm on AMD64 Have you tried the fix from comment #52 ??
> Have you tried the fix from comment #52 ?? ???
(In reply to comment #51) > mozilla-firefox-1.0.7-r2 fixed the problem as described in this bug report, > however I still had to add: > filter-flags -fstack-protector So, add: ----- filter-flags -fstack-protector ----- to the top of the ebuild, remerge and see if that changes anything.
(In reply to comment #55) > (In reply to comment #51) > > mozilla-firefox-1.0.7-r2 fixed the problem as described in this bug report, > > however I still had to add: > > filter-flags -fstack-protector > > So, add: > > ----- > filter-flags -fstack-protector > ----- > > to the top of the ebuild, remerge and see if that changes anything. Err, after the 'inherit' line that is ...
I copied /usr/portage/www-client/mozilla-firefox to /usr/local/portage/www-client/mozilla-firefox edited mozilla-firefox-1.0.7-r2.ebuild I added mine like so above the Configure and build: # remove -fstack-protector because now it borks firefox filter-flags -fstack-protector #################################### # # Configure and build # #################################### George
*** Bug 107662 has been marked as a duplicate of this bug. ***
Filtering -fstack-protector fixes this problem for me as well. Of course, this really isn't the greatest solution - I can think of few apps for which stack-protection is more important than a web-browser!
Please try -r3.
It looks like -r3 still removes -fstack-protector. That may eliminate the segfault, but obviously not the source of the problem. Perhaps a bug should be filed upstream if that is where the problem lies?
I found a solution to my problem... Firefox was not the source of the trouble, but it was openbox. According to the freedesktop specs the _NET_WORKAREA property has the following signature: _NET_WORKAREA, x, y, width, height CARDINAL[][4]/32 So one could be misleaded to think that one should give the _NET_WORKAREA_ to an unsigned 32-bit integer value :-) But according to the xlib manual, the man-page for XChangePropert has the following to say about that: "If the specified format is 8, the property data must be a char array. If the specified format is 16, the property data must be a short array. If the specified format is 32, the property data must be a long array." This means that when setting the _NET_WORKAREA one should use an array of longs, and specify the format as 32. This can (and do in openbox case) cause confusion, since a long on an amd64 box is 64 bits :-) I have created a small patch against the latest openbox code... Should I attach it here or open a new bug-report and attach it there? (In either case i'm going to mail upstream to let them know about the bug, should it could be fixed in later versions of openbox).
I think do a new bug.
(In reply to comment #62) > I found a solution to my problem... Firefox was not the source of the trouble, > but it was openbox. > > This can (and do in openbox case) cause confusion, since a long on an amd64 box > is 64 bits :-) > > I have created a small patch against the latest openbox code... Should I attach > it here or open a new bug-report and attach it there? > (In either case i'm going to mail upstream to let them know about the bug, > should it could be fixed in later versions of openbox). This should also be logged for: ------- Additional Comment #39 From Georgi Georgiev 2005-07-17 21:44 PDT [reply] ------- windowmaker (me), fvwm (Mort) -- affected, but fixable fluxbox (Trager): affected, not fixable? ------- Additional Comment #40 From Georgi Georgiev 2005-07-19 05:54 PDT [reply] ------- patched unpatched fvwm OK HANG wmaker (2,4 WS) OK HANG
In fact, it works now for Fvwm (see my comment #43).
The same for nvu (always ran fine) (nvu-bin:5864): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) /usr/lib/nvu/run-mozilla.sh: line 159: 5864 Segmentation fault "$prog" ${1+"$@"}
The same for nvu (always ran fine) (nvu-bin:5864): Gdk-WARNING **: gdk_property_get(): length value has wrapped in calculation (did you pass G_MAXLONG?) /usr/lib/nvu/run-mozilla.sh: line 159: 5864 Segmentation fault "$prog" ${1+"$@"} gtk+ 2.6.8
Still a problem?
@reporter, what's the status here ?
Ancient versions of both gtk & moz-firefox ;^P Not a problem anymore for me.
Have you tried with newer firefox and gtk versions. Is this bug still valid today? Thanks a lot :-)
(In reply to comment #71) > Have you tried with newer firefox and gtk versions. Is this bug still valid > today? > > Thanks a lot :-) > Refer to my commetn #70 as it's not valid anymore :)
Then, Can be this bug closed? Thanks
Fixed according to comment #70.
ok, thanks.