Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110559 - mozilla-thunderbird sometimes starts without the gui
Summary: mozilla-thunderbird sometimes starts without the gui
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-26 09:36 UTC by Torbjörn Svensson
Modified: 2006-11-11 12:57 UTC (History)
1 user (show)

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


Attachments
Run against existing .thunderbird directory (tbird-with-profile.txt,3.71 KB, text/plain)
2005-10-27 18:45 UTC, antiher0
Details
Run with no .thunderbird directory (tbird-without-profile.txt,7.38 KB, text/plain)
2005-10-27 18:46 UTC, antiher0
Details
Output from post-install section of emerge, with USE="debug" (tbird-debug-merge.txt,8.02 KB, text/plain)
2005-10-27 18:54 UTC, antiher0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjörn Svensson 2005-10-26 09:36:37 UTC
If I have x11-libs/gtk+-2.6.8 and try to start mozilla-thunderbird or
mozilla-firefox the app will start, but there will be no window. If I check ps,
both are running fine, I even looked with strace on thunderbird, and it was
stuck in somekind of polling (I guess this is ok). 

If I emerege gtk+2.6.7 instead, both mozilla-firefox and mozilla-thunderbird
starts and seams to work all right.

There's no diff. if mozilla-* is compiled while 2.6.7 or 2.6.8 is installed,
sometimes (like 2 of 3 times) it won't display any gui. I haven't tested them
compiled with 2.6.8 but running with 2.6.7.

I have moved ~/.thunderbird/ and ~/.mozilla/ but that didn't help eihter.


I don't think this bug affects x86 as my laptop works.

Reproducible: Sometimes
Steps to Reproduce:
1. $ thunderbird
2. $ ps aux|grep thunderbird


Actual Results:  
Some thunderbird-bin processes but no gui

Expected Results:  
A thunderbird gui ;-)

# emerge info
Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
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-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
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/share/config
/usr/lib/X11/xkb /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="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts bzip2 cdr crypt cups curl dvd emboss
encode esd fam foomaticdb fortran gd gdbm gif gstreamer gtk gtk2 imagemagick
imlib ipv6 java jpeg libwww lzw lzw-tiff mad mikmod motif mp3 mpeg ncurses nls
opengl pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd tetex
tiff truetype-fonts type1-fonts udev usb userlocales xine xml xml2 xmms xpm xv
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Matan Peled 2005-10-26 10:14:00 UTC
I get this too, in thunderbird and firefox. Probably an upstream bug, though...

I usually 'killall thunderbird-bin' (or firefox-bin) until it starts up properly.

The funny thing is that thunderbird shows the password dialog, but not the main
window... It gets the mail just fine as well, it just doesn't make the main window.

Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-rc5-kthrt1 x86_64)
=================================================================
System uname: 2.6.14-rc5-kthrt1 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre9
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-r2, 2.4.2
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-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
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/share/config
/usr/lib/X11/xkb /usr/lib64/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/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fvisibility-inlines-hidden "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/portage /usr/local/overlays/lila
/usr/local/overlays/openoffice /usr/local/overlays/trunk"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa avi bash-completion berkdb bidi bitmap-fonts bonobo
boundschecking bzip2 caps cddb cdr crypt cups curl dbus directfb dvd dvdr
dvdread eds emboss encode flac foomaticdb fortran ggi gif gnome gphoto2 gpm
gstreamer gtk gtk2 gtkhtml guile hal icq ieee1394 imagemagick imlib ipv6 jack
java jikes jpeg junit kde kdeenablefinal ldap libwww lzw lzw-tiff mad maildir
mozcalendar mozilla mp3 mpeg mysql nas ncurses nls nptl ogg oggvorbis opengl
oscar pcre pdflib perl pic png python quicktime readline samba scanner sdl slang
snmp spell sqlite ssl svg sysfs tcltk tcpd tetex threads tiff truetype
truetype-fonts type1-fonts udev unicode usb userlocales vorbis xine xinerama xml
xml2 xpm xscreensaver xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS

kaitou ~ # emerge -vp gtk+

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] x11-libs/gtk+-2.6.8  -doc +jpeg -static +tiff 11,399 kB
Comment 2 Torbjörn Svensson 2005-10-26 12:14:33 UTC
The kill thing doesn't help me. I just emerged all gtk+ versions avaible in
portage with no luck. I tested to go up to ~amd64 om gtk+, glib, pango and then
reemerge mozilla-thunderbird but still the same problem. I didn't emerge firefox
this time and it didn't start, but once gtk+-2.6.7 was reemerged firefox just
started as it would, thunderbird didn't (lack of lib), but it's reemerging again.

I am thinking of recompile everything in a clean chroot tomorrow, maybe it could
tell me something.
Comment 3 antiher0 2005-10-27 18:42:06 UTC
Big fat ME TOO on x86.  Same issue: thunderbird starts with no window, process
runs fine (no spikes in utilization or anything), strace shows line after line
of polling.  When I move my .thunderbird directory, however, thunderbird
segfaults on startup.  Once it segfaulted, but still started a zero-size window
(just a tiny square) that when resized into a real window, turned out to be an
import wizard.

Firefox runs just fine.

My gtk+ version: 2.8.6. (not 2.6.8)

For me this started after upgrading from thunderbird-1.0.7 to 1.0.7-r1, which
happened several days after upgrading from gtk+-2.6.10 to gtk+-2.8.6.  Firefox
was compiled against gtk+-2.6.x.

This only happens on this particular x86 box.  My other box is fine.  The only
difference between the two is that the problem box is hardened.  Configuration
and packages are almost identical.

I've recompiled thunderbird with USE="debug" and captured the output.  There is
an undefined symbol error that only shows up with debug enabled.  I'll attach
the outputs below from both a run against my good .thunderbird directory and one
with no .thunderbird directory.  FWIW...

Obligatory emerge info:
Portage 2.0.53_rc6 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r3,
2.6.13-gentoo-r4-1 i686)
=================================================================
System uname: 2.6.13-gentoo-r4-1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="i686-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/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/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.pair.com/ http://open-systems.ufl.edu/mirrors/gentoo
http://gentoo.osuosl.org/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex 3dnowext 3ds X X509 Xaw3d a52 aac aalib aavm aim alsa
apache2 arts artworkextra audiofile avi bcmath berkdb bidi bitmap-fonts bmp
bonobo bootsplash browserplugin bzip2 bzlib calendar canna cap caps cdb cddb
cdparanoia cdr chroot cjk codecs cpdflib crypt cscope ctype cups curl
curlwrappers dba dbx devfs26 dga dio djbfft dv dvd dvdr dvdread edl eds emboss
encode erandom esd ethereal evo exif faac faad fam fame fbcon ffmpeg fftw
firefox flac flash flatfile font-server foomaticdb fortran freetype freewnn fs
ftp gd gdbm gif gimp gimpprint glibc-omitfp glitz gmp gnome gphoto2 gpm graphviz
gstreamer gtk gtk2 gtkhtml hal hardened hardenedphp iconv icq imagemagick imap
imlib imlib2 immqt-bc innodb jabber java javascript jbig jce jit joystick jpeg
jpeg2k kde ladcca lcms ldap libcaca libg++ libgda libwww linuxthreads-tls live
lzo lzw-tiff mad maildir mailwrapper matroska mcal memlimit mhash mikmod mime
mjpeg mmap mmx mmx2 mmxext mng monkey mono motif mozdevelop mozilla moznoirc
mozp3p mp3 mpeg mpeg4 mpi mplayer msn mysql mysqli nas ncurses netboot netcdf
network nocardbus nocd nodrm nptl nvidia oci8 odbc offensive ogg oggvorbis
openal opengl oscar oss pam pcap pcntl pcre pda pdflib perl php physfs pic pie
plotutils png pnp posix ppds prelude python qt quicktime readline real recode
rtc samba sblive scanner sdl session sftplogging shared sharedmem simplexml
slang smartcard sndfile soap sockets socks5 spamassassin speex spell spl sqlite
sse ssl svg sysvipc szip tcpd tga theora tidy tiff tokenizer transcode truetype
truetype-fonts type1-fonts udev unicode usb uudeview vcd vhosts videos
vim-with-x vorbis win32codecs wma123 wmf xine xml xml2 xmlrpc xmms xosd xprint
xscreensaver xsl xv xvid xvmc yahoo yv12 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS

Comment 4 antiher0 2005-10-27 18:45:34 UTC
Created attachment 71597 [details]
Run against existing .thunderbird directory
Comment 5 antiher0 2005-10-27 18:46:16 UTC
Created attachment 71598 [details]
Run with no .thunderbird directory
Comment 6 antiher0 2005-10-27 18:54:35 UTC
Created attachment 71599 [details]
Output from post-install section of emerge, with USE="debug"
Comment 7 Torbjörn Svensson 2005-10-28 07:35:44 UTC
I recompiled thunderbird with USE=debug and rerun thunderbid to see what happens.

Logfiles can be found here:
http://dev.azoff.se/thunderbird/

Hope this helps..
Comment 8 Torbjörn Svensson 2005-11-02 04:04:59 UTC
I found out a new thing today, if I try to start firefox or thunderbird in
windowmaker it most likely it won't display any main window BUT if I try in
plain X it will start everytime!

So, it looks like it's a problem with >gtk+-2.6.7 and windowmaker and not the
thunderbird itself.
Comment 9 Torbjörn Svensson 2005-11-05 02:41:52 UTC
Whith some help from dang in #gentoo-amd64 on freenode, I narrowed this down to
be a issue of WindowMaker rather than gtk+ or mozilla-*. I also found out that
there used to be a patch for this issue in 0.92 but it wasn't applied ok so it
got removed. I have made a new patch[0] that works with bot CVS (from today) and
the 0.92 version (no changes).

If you think that this patch is ok, could it be reincluded again? Also, please
review the patch as I am not sure if it cover all possible problems with this.
Also there were some changes in the code from the patch used for 0.91 and I
found another patch[1] that that person ported to the new 0.92 version. I tried
to merge changes from both, but please look at it.

[0] http://dev.azoff.se/wm-64bit+endian-fixes-cvs.patch
[1] http://article.gmane.org/gmane.compw.window-managers.windowmaker.devel/749
Comment 10 Bernard Cafarelli gentoo-dev 2006-01-06 15:55:04 UTC
This issue an the patch for 0.92 are also reported/available in bug #83927
Comment 11 nixnut (RETIRED) gentoo-dev 2006-01-16 11:46:04 UTC
well, same here on ppc.
I had to reemerge thunderbird and had meanwhile upgraded to gtk+-2.8.8. So no thunderbird gui. Reverted back to gtk+-2.6.10 and rebuild thunderbird against it and the gui is back.
Comment 12 Torbjörn Svensson 2006-01-16 11:54:30 UTC
(In reply to comment #11)
> well, same here on ppc.
> I had to reemerge thunderbird and had meanwhile upgraded to gtk+-2.8.8. So no
> thunderbird gui. Reverted back to gtk+-2.6.10 and rebuild thunderbird against
> it and the gui is back.


What WM are you using? WindowMaker?

Comment 13 nixnut (RETIRED) gentoo-dev 2006-01-17 04:35:40 UTC
> What WM are you using? WindowMaker?

E17. So it is not a WindowMaker only problem. 

Comment 14 Jan Marten Simons 2006-01-19 10:17:46 UTC
Same problem on KDE-3.4.3 (gnome-2.10.2 is installed, too)

# LC_ALL="C" thunderbird
No running windows found
GConf Error: Adding client to server's list failed, CORBA error: IDL:omg.org/CORBA/COMM_FAILURE:1.0
Comment 15 Rob M. 2006-01-24 18:59:14 UTC
(In reply to comment #0)

I had this problem on a Hardened x86 box - not sometimes, it was consistently reproducible -and was able to fix it by setting gcc-3.3.6 from Hardened to Vanilla while emerging Thunderbird.

there's also apparently a GCC 3.4.3 - 3.4.4 bug with hardened and SSP that may be relevant - #74457
Comment 16 Mark Glines 2006-03-30 09:39:58 UTC
(In reply to comment #15)
> I had this problem on a Hardened x86 box - not sometimes, it was consistently
> reproducible -and was able to fix it by setting gcc-3.3.6 from Hardened to
> Vanilla while emerging Thunderbird.
> 
> there's also apparently a GCC 3.4.3 - 3.4.4 bug with hardened and SSP that may
> be relevant - #74457

I've had this problem consistently with mozilla-1.7.12-r3 on 3 ~x86 Hardened boxes.  It is not an intermittant thing in my case; it fails to display any windows every time I killall mozilla-bin and run mozilla again.

I tried building with all USE-flags disabled; no difference in behavior.  However, building with i686-pc-linux-gnu-3.4.6-vanilla instead of i686-pc-linux-gnu-3.4.6 (hardened) does fix it.
Comment 17 Mark Glines 2006-03-30 11:13:20 UTC
(In reply to comment #15)
> I had this problem on a Hardened x86 box - not sometimes, it was consistently
> reproducible -and was able to fix it by setting gcc-3.3.6 from Hardened to
> Vanilla while emerging Thunderbird.

The "x-modular" eclass has a check to prevent building xf86 input plugins (among other things) with the hardened toolchain.  It emits the message "Do not emerge ${PN} without vanilla gcc specs!" and bails out.  Perhaps mozilla could use a similar check?
Comment 18 Jakub Moc (RETIRED) gentoo-dev 2006-11-11 12:57:45 UTC
Please test w/ an uptodate TB version (like 1.5.0.8) and reopen if you still have problems. Thanks.