> On Thu, 2005-06-16 at 14:58 +0200, [EMAIL PROTECTED] wrote:
>> Hi clamav users
>>
>> I've a very strange problem with clamd.
>> Its a 2x2.6 Ghz HT enabled and 1 GB of ram.
>>
>> The problem is that clamd uses 100% cpu all the time.
>
> What version of Clam are you using? It is less than 0.85.1 then upgrade.
>
spamkiller:~# clamd --version
ClamAV 0.85.1/942/Thu Jun 16 14:16:06 2005
spamkiller:~# gdb /usr/local/sbin/clamd 31161
(gdb) bt
#0 0x4022485e in accept () from /lib/tls/libpthread.so.0
#1 0x0804df27 in acceptloop_th (socketd=0, root=0x8063c68, copt=0x8063e58)
at server-th.c:499
#2 0x0804c6f3 in tcpserver (opt=0x8063b98, copt=0x8063e58, root=0xfffffe00)
at tcpserver.c:112
#3 0x0804c079 in clamd (opt=0x8063b98) at clamd.c:284
#4 0x0804b718 in main (argc=1, argv=0xbfffee54) at options.c:114
2 Thread 1085660080 (LWP 24411) 0x402223fe in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
1 Thread -1207991648 (LWP 31161) 0x4022485e in accept ()
from /lib/tls/libpthread.so.0
(gdb) thread 2
[Switching to thread 2 (Thread 1085660080 (LWP 24411))]#0 0x402223fe in
pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0
(gdb) bt
#0 0x402223fe in pthread_cond_timedwait@@GLIBC_2.3.2 ()
from /lib/tls/libpthread.so.0
#1 0x0804d2af in thrmgr_worker (arg=0x8683000) at thrmgr.c:181
#2 0x4021fb63 in start_thread () from /lib/tls/libpthread.so.0
#3 0x40301c4a in clone () from /lib/tls/libc.so.6
there you have it..
I have to mention is that I use clamdscan at an other computer and nfs to
distribute the /var/spool/qmailscan/tmp/ directory.
(yes, I'm using qmail + qmailscanner 1.23st)
tcpdump between clamdscan and clamd:
CONTSCAN /var/spool/qmailscan/tmp/m1111189275724939897
/var/spool/qmailscan/tmp/m1111189275724939897: OK
Mvh Rickard Vikström
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html