Bug 138715 - Evolution-exchange cpu spike / loops when trying to download messages
Bug#: 138715 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: gnome-office@gentoo.org Reported By: squinky86@gentoo.org
Component: Ebuilds
URL: 
Summary: Evolution-exchange cpu spike / loops when trying to download messages
Keywords:  
Status Whiteboard: 
Opened: 2006-07-01 07:44 0000
Description:   Opened: 2006-07-01 07:44 0000
Evolution-exchange sees and lists my emails from an exchange server correctly;
however, when I click on the subject line of the email to view it, the preview
pane is blank (and so is the main frame when I double-click to open the message
in a new window). evolution-exchange then begins to play with my processor.

%cpu %mem  time    proc
100  0.7   0:49.82 evolution-excha

$ emerge --info
Portage 2.1.1_pre1-r1 (default-linux/amd64/2005.1, gcc-4.1.1/amd64-vanilla,
glibc-2.4-r2, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor
4200+
Gentoo Base System version 1.12.1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
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-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops"
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/lib64/mozilla/defaults/pref /usr/share/X11/xkb
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf
/etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -funroll-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache cvs distlocks metadata-transfer
multilib-strict sandbox sfperms strict test"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 arts avi berkdb bitmap-fonts browserplugin bzip2
cdinstall cli crypt css cups curl curlwrappers dba dri dvd dvdr dvdread eds
emboss encode ffmpeg firefox flash foomaticdb fortran ftp gd gif glibc-omitfp
glitz gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 isdnlog java jpeg kde
kerberos ldap lucene lzw lzw-tiff mad mjpeg mp3 mpeg mysql ncurses nls nptl
nptlonly nsplugin nvidia ogg opengl pam pascal pcntl pcre pdflib perl php png
posix postgres ppds pppd python qt qt3 qt4 quicktime readline reflection ruby
samba sdl session sox spell spl sql ssl subversion tcpd threads tiff truetype
truetype-fonts type1-fonts unicode usb userlocales vcd vorbis wmf xml xml2
xmlrpc xmms xorg xpm xv xvid zip zlib elibc_glibc kernel_linux userland_GNU
video_cards_nvidia video_cards_nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #1 From John N. Laliberte (RETIRED) 2006-07-13 07:16:58 0000 -------
does this patch solve this for you?

http://cvs.gnome.org/viewcvs/evolution-exchange/camel/camel-stub-marshal.c?r1=1.3&r2=1.5&makepatch=1&diff_format=u

it worked for someone I know.

------- Comment #2 From Ole Craig 2006-07-13 11:45:11 0000 -------
(In reply to comment #1)
> does this patch solve this for you?
> 
> http://cvs.gnome.org/viewcvs/evolution-exchange/camel/camel-stub-marshal.c?r1=1.3&r2=1.5&makepatch=1&diff_format=u
> 
> it worked for someone I know.

Schweet, that seems to have solved my problem also.(I was getting lockups,
segfaults, and other weird behavior from evo. When I saw the processor spike
I'd usually get a message "Lost connection to exchange-storage backend process"
but e-e was still running. -- after building a patched e-e these seem to have
disappeared.) 

Suggest it be included in the next ebuild, I can post the ebuild hackjob I did
if anyone's interested.


------- Comment #3 From Igal Baevsky 2006-07-13 12:41:20 0000 -------
(In reply to comment #2)
> (In reply to comment #1)
> > does this patch solve this for you?
> > 
> > http://cvs.gnome.org/viewcvs/evolution-exchange/camel/camel-stub-marshal.c?r1=1.3&r2=1.5&makepatch=1&diff_format=u
> > 
> > it worked for someone I know.
> 
> Schweet, that seems to have solved my problem also.(I was getting lockups,
> segfaults, and other weird behavior from evo. When I saw the processor spike
> I'd usually get a message "Lost connection to exchange-storage backend process"
> but e-e was still running. -- after building a patched e-e these seem to have
> disappeared.) 
> 
> Suggest it be included in the next ebuild, I can post the ebuild hackjob I did
> if anyone's interested.
> 
> 

(In reply to comment #2)
> (In reply to comment #1)
> > does this patch solve this for you?
> > 
> > http://cvs.gnome.org/viewcvs/evolution-exchange/camel/camel-stub-marshal.c?r1=1.3&r2=1.5&makepatch=1&diff_format=u
> > 
> > it worked for someone I know.
> 
> Schweet, that seems to have solved my problem also.(I was getting lockups,
> segfaults, and other weird behavior from evo. When I saw the processor spike
> I'd usually get a message "Lost connection to exchange-storage backend process"
> but e-e was still running. -- after building a patched e-e these seem to have
> disappeared.) 
> 
> Suggest it be included in the next ebuild, I can post the ebuild hackjob I did
> if anyone's interested.
> 
> 

Would you please post an "ebuild hackjob" :-) ? I'm having the same simptoms
since upgrading to 2.6.2 from 2.4.2 - evo is locking up with "lost connection
to exchange backend..." message. 

------- Comment #4 From Ole Craig 2006-07-13 12:54:56 0000 -------
Created an attachment (id=91658) [details]
evolution-exchange-2.6.2 revised ebuild

Here's the ebuild... apply as follows (for those new to portage overlay)
mkdir -p /usr/local/portage/gnome-extra
cp -r /usr/portage/gnome-extra/evolution-exchange
/usr/local/portage/gnome-extra/
cp -f ./evolution-exchange-2.6.2.ebuild /usr/local/portage/gnome-extra/
cp -f ./evolution-2.6.2-lockup.patch
/usr/local/portage/gnome-extra/evolution-exchange/files
cd /usr/local/portage/gnome-extra/evolution-exchange
ebuild evolution-exchange-2.6.2.ebuild digest
emerge evolution-exchange

(patch file is next attachment)

------- Comment #5 From Ole Craig 2006-07-13 12:56:00 0000 -------
Created an attachment (id=91659) [details]
patch from CVS

stick this in /usr/local/portage/gnome-extra/evolution-exchange/files

------- Comment #6 From Igal Baevsky 2006-07-13 15:25:06 0000 -------
(In reply to comment #5)
> Created an attachment (id=91659) [edit] [details]
> patch from CVS
> 
> stick this in /usr/local/portage/gnome-extra/evolution-exchange/files
> 
Cool !!!
That did fix it!!!!
Thanks a lot, man.

------- Comment #7 From Ole Craig 2006-07-13 16:01:47 0000 -------
(In reply to comment #6)
> Cool !!!
> That did fix it!!!!
> Thanks a lot, man.

Yeah, that was my reaction. Thanks for the pointer, John! (This has been
killing me for 2-3 weeks; webmail OWA sucks rocks for real work.)

------- Comment #8 From John N. Laliberte (RETIRED) 2006-07-14 11:34:41 0000 -------
thanks, i've put this into cvs as 2.6.2-r1.

------- Comment #9 From John N. Laliberte (RETIRED) 2006-07-22 21:08:19 0000 -------
*** Bug 141056 has been marked as a duplicate of this bug. ***