Hi,
I have an openbsd 3.7 box with clamav 0.86.1 (with --disable-pthreads) and qmail-scanner 1.25
I have a strange problem that i can't handle,

i'm using qmailscanner with clamscan option, and it scans attachments,

sometimes (especially with big files, eg: larger than 2mb) clamscan processes hang with 100% cpu usage. After some hours, as the number of hanged processes grow, the server start getting killed, and fails to respond to requests. uptime goes to, say 50.

I'm trying to find a solution to this problem and failed...
Any ideas please?
Ps: I can not use clamdscan cause it fails to compile with --enable-pthreads, so i think it just doesnt compile clamd without pthread support...

Below is the output of the following commands:
#ps wwax |grep -i clam
#gdb /usr/local/bin/clamscan 11362
#bt
--------------------------------------------------------------output-----------------------------------------------------------------------------------
#0  0x04b57ccb in _catopen () from /usr/lib/libc.so.34.2
#1  0x04b57b08 in _catopen () from /usr/lib/libc.so.34.2
#2  0x04b577b0 in strerror_r () from /usr/lib/libc.so.34.2
#3  0x04b5762d in perror () from /usr/lib/libc.so.34.2
#4  0x07cd00c7 in cli_calloc (nmemb=68, size=68) at others.c:338
#5  0x07ce1cec in messageCreate () at message.c:149
#6  0x07cdf1ea in parseEmailBody (messageIn=0x3ca29800, textIn=0x0,
dir=0x3c00b080 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034/clamav-0c8aaf964180a45f", rfc821Table=0x3c0131a0, subtypeTable=0x3c0131f0, options=107) at mbox.c:1620
#7  0x07cdd54c in cli_parse_mbox (
dir=0x3c00b080 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034/clamav-0c8aaf964180a45f", desc=0,
   options=107) at mbox.c:935
#8 0x07cd6662 in cli_scanmail (desc=5, virname=0xcfbf0538, scanned=0x3c00597c, root=0x3c00a040, limits=0x3c00d180,
   options=107, arec=0, mrec=1) at scanners.c:1335
#9 0x07cd6c6a in cli_magic_scandesc (desc=5, virname=0xcfbf0538, scanned=0x3c00597c, root=0x3c00a040, limits=0x3c00d180,
   options=107, arec=0, mrec=1) at scanners.c:1439
#10 0x07cd6d98 in cl_scandesc (desc=5, virname=0xcfbf0538, scanned=0x3c00597c, root=0x3c00a040, limits=0x3c00d180,
   options=107) at scanners.c:1563
#11 0x1c006321 in checkfile (
filename=0x3c00b000 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034/orig-eposta.xdomain.com112495096349716034", root=0x3c00a040, limits=0x3c00d180, options=107, printclean=1) at manager.c:760
#12 0x1c00555e in scanfile (
filename=0x3c00b000 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034/orig-eposta.xdomain.com112495096349716034", root=0x3c00a040, user=0x0, opt=0x3c007030, limits=0x3c00d180, options=107) at manager.c:432 #13 0x1c006e76 in treewalk (dirname=0x3ca25b80 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034", root=0x3c00a040, user=0x0, opt=0x3c007030, limits=0x3c00d180, options=107, depth=2) at treewalk.c:114 #14 0x1c0062cb in scandirs (dirname=0x3ca25b80 "/var/spool/qmailscan/tmp/eposta.xdomain.com112495096349716034", root=0x3c00a040, user=0x0, opt=0x3c007030, limits=0x3c00d180, options=107) at manager.c:744
#15 0x1c004ddf in scanmanager (opt=0x3c007030) at manager.c:263
#16 0x1c003a01 in clamscan (opt=0x3c007030) at clamscan.c:148
#17 0x1c004197 in main (argc=9, argv=0xcfbf0c90) at options.c:177


--

Savaş İrez
BİG Uzmanı, Bilgisayar Mühendisi

Z-Sistem Internet Serv. Bilişim Tekno. Veri Güv. San Tic. Ltd. Şti.
Dicle Cad. Dalaman Sk. No:10 Beysukent/ANKARA  TR 06810
Tel:+90(0)312 236 3191 Fax:+90(0)312 236 3194

http://www.z-sistem.com     http://www.i-bekci.com.tr

_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to