Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 251061 - net-mail/dovecot-1.1.7-r1: imap daemon eat all cpu
Summary: net-mail/dovecot-1.1.7-r1: imap daemon eat all cpu
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-15 21:02 UTC by Jimmy.Jazz
Modified: 2010-06-15 21:11 UTC (History)
3 users (show)

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


Attachments
dovecot log (net-mail:dovecot-1.1.7-r1:20081211-035157.log,457.99 KB, text/plain)
2008-12-15 21:04 UTC, Jimmy.Jazz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy.Jazz 2008-12-15 21:02:52 UTC
When dovecot 1.1.7-r1 is compiled with the -O3 flag, imap daemons are locked in memory for ever.

After a TLS connection has been establish and some transactions have been done, imap processes will continue to spin in memory after you have left thunderbird. 

Imap processes cannot be stopped/killed.

If dovecot is compiled with the -O2 flag, the issue isn't reproductible.

Also, neither ctrace nor gdb have returned anything.

It is also similar to what happened with bug 246421 about enigmail.



Reproducible: Always

Steps to Reproduce:
1. CFLAGS="-march=k8 -O3 -pipe" USE="berkdb managesieve mysql pam sieve ssl" emerge net-mail/dovecot-1.1.7-r1 
2. thunderbird
3. read mails and quit thunderbird
4. ps aux | grep imap

Actual Results:  
Cannot end imap process

Expected Results:  
Only imap-login should stay in memory

dev-libs/openssl-0.9.8i  USE="gmp (sse2) zlib -bindist -kerberos -test"

# emerge --info
Portage 2.2_rc17 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r0, 2.6.28-rc8-vesa x86_64)
=================================================================
System uname: Linux-2.6.28-rc8-vesa-x86_64-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.2.5
Timestamp of tree: Mon, 15 Dec 2008 08:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 1.12.12
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/splash/livecd-2007.0/1280x1024.cfg /lib/rcscripts/addons /sbin/rc /sbin/splash-functions-bl1.sh /sbin/splash-functions.sh /usr/local/share/cursors/xorg-x11/default/index.theme /usr/share/hddtemp/hddtemp.db /usr/src/linux/.config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j2"
Comment 1 Jimmy.Jazz 2008-12-15 21:04:37 UTC
Created attachment 175361 [details]
dovecot log
Comment 2 Paul Taylor 2008-12-19 04:28:34 UTC
Same problem here, except my CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer", and dovecot was build with USE="ipv6 pam ssl".
Comment 4 Paul Taylor 2008-12-19 21:03:16 UTC
(In reply to comment #3)
> Probably the kernel bug reported below:
> 
> http://www.dovecot.org/list/dovecot/2008-December/035707.html
> http://lkml.indiana.edu/hypermail/linux/kernel/0812.1/00998.html
> http://lkml.org/lkml/2008/12/14/162
 
Yes, reverting to gentoo-sources-2.6.27-r4 removes the bug - hopefully solved in gentoo-sources-2.6.27-r7 once 2.6.27.10 is released.
Comment 5 Paul Taylor 2008-12-19 22:34:39 UTC
(In reply to comment #4)
> Yes, reverting to gentoo-sources-2.6.27-r4 removes the bug - hopefully solved
> in gentoo-sources-2.6.27-r7 once 2.6.27.10 is released.
 
gentoo-sources-2.6.27-r7 works for me.
Comment 6 Wolfram Schlich (RETIRED) gentoo-dev 2008-12-20 17:29:08 UTC
Oh, well...

Jimmy.Jazz@gmx.net: is your problem also solved with a different kernel version?
Comment 7 Patrick Lauer gentoo-dev 2010-06-15 21:11:09 UTC
Reopen if it still happens with current versions.
Comment 8 Patrick Lauer gentoo-dev 2010-06-15 21:11:15 UTC
Reopen if it still happens with current versions.