Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29431 - Courierlocal runs on 100% cpu usage when mysql authentication is in use.
Summary: Courierlocal runs on 100% cpu usage when mysql authentication is in use.
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Brian Jackson (RETIRED)
URL: http://www.egocms.com/before-courier....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-23 08:04 UTC by Jan Gehring
Modified: 2003-10-13 13:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Gehring 2003-09-23 08:04:59 UTC
After i configured authdaemond to use mysql authentication it runs at 100% cpu
usage. 

CPU: AMD Athlon 2400+

My Compilerflags are:

CFLAGS="-O2 -pipe"

i tried to compile it with folowing flags, too: (i compiled the hole system not
only courier with theese flags.)
CFLAGS="-march=pentium3 -O3 -pipe" (on an p3 system)
CFLAGS="-mcpu=athlon-xp -O3 -pipe" (on the athlon machine mentioned above)



Reproducible: Always
Steps to Reproduce:
1. emerge courier
2. configure courier for mysql authentication
3. /etc/init.d/courier start


Actual Results:  
Mostly courierlocal runs @ 100% cpu usage direct after /etc/init.d/courier start.
anyway courierlocal runs @ 100% cpu usage after i fetched and send some mails.


Expected Results:  
not to run @ 100% cpu usage.

Portage 2.0.48-r5 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-gentoo-r6 i686 AMD Athlon(TM) XP 2400+
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow apm arts avi crypt cups encode foomaticdb gif gpm imlib jpeg
libg++ mad mikmod mmx motif ncurses nls oggvorbis opengl pdflib png quicktime
sdl spell svga truetype xmms xv zlib gdbm berkdb slang readline tcpd pam libwww
ssl perl python -X -gtk -gtk2 -gimp -gnome -alsa -java -qt -qt3 -kde apache2
mysql xml xml2 -mpg -mpeg -video -sound -media ppds imap pop pop3 imap4"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="ccache sandbox buildpkg userpriv"
Comment 1 SpanKY gentoo-dev 2003-09-23 21:01:30 UTC
does it work (like actually process requests) or does it seem stuck in an infinite loop ?

try running strace and see what it gets stuck in
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2003-09-27 11:31:00 UTC
Any more info on this, it works fine here.
Comment 3 Brian Jackson (RETIRED) gentoo-dev 2003-10-04 07:47:28 UTC
we need more info to help you