Ok, please run clamd under gdb and do a backtrace.
gdb /opt/clamav/sbin/clamd run --config-file=/etc/clamav/clamd.conf.debug
1st segfault:
LibClamAV debug: boundaryStart: line = '--Next_Part_' boundary = 'Next_Part_'
LibClamAV debug: boundaryStart: found Next_Part_ in -Next_Part_
LibClamAV debug: Part 0 has 35 lines
LibClamAV debug: Now read in part 1
LibClamAV debug: Multipart 1: About to parse folded header 'Content-Type: ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
LibClamAV debug: parseEmailHeader 'Content-Type: ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 737326 (LWP 20264)]
parseMimeHeader (m=0x85734c0,
cmd=0x85a68b9 "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x8494238, arg=0x0)
at string2.h:1092
1092 while (*__s == __sep)
(gdb) bt
#0 parseMimeHeader (m=Error accessing memory address 0x45e3208c: No such process.
) at string2.h:1092
Error accessing memory address 0x45e32088: No such process.
2nd segfault:
LibClamAV debug: boundaryStart: line = '--Next_Part_' boundary = 'Next_Part_'
LibClamAV debug: boundaryStart: found Next_Part_ in -Next_Part_
LibClamAV debug: Part 0 has 35 lines
LibClamAV debug: Now read in part 1
LibClamAV debug: Multipart 1: About to parse folded header 'Content-Type: ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
LibClamAV debug: parseEmailHeader 'Content-Type: ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' ; name="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf"'
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 32771 (LWP 9619)]
parseMimeHeader (m=0x84990a0,
cmd=0x851dcd9 "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x8494190, arg=0x0)
at string2.h:1092
1092 while (*__s == __sep)
(gdb) bt
#0 parseMimeHeader (m=0x84990a0,
cmd=0x851dcd9 "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x8494190, arg=0x0)
at string2.h:1092
#1 0x4002f6bc in parseEmailHeader (m=0x84990a0,
line=0x851dc60 "Content-Type", rfc821=0x8494190) at mbox.c:1115
#2 0x4003066e in parseEmailBody (messageIn=0x8493fd8, textIn=0x0,
dir=0x8493698 "/var/tmp/clamav-fe81c2bc2aae97be", rfc821Table=0x8494190,
subtypeTable=0x8494208, options=107) at mbox.c:1419
#3 0x4002f133 in cli_mbox (dir=0x8493698 "/var/tmp/clamav-fe81c2bc2aae97be",
desc=0, options=107) at mbox.c:902
#4 0x40028468 in cli_scanmail (desc=13, virname=0x408328e8, scanned=0x0,
root=0x80568f8, limits=0xbffff410, options=107, arec=0x408327a8,
mrec=0x408327ac) at scanners.c:1120
#5 0x400286da in cli_magic_scandesc (desc=13, virname=0x408328e8,
scanned=0x0, root=0x80568f8, limits=0xbffff410, options=107,
arec=0x408327a8, mrec=0x408327ac) at scanners.c:1221
#6 0x40028b96 in cl_scandesc (desc=13, virname=0x408328e8, scanned=0x0,
root=0x80568f8, limits=0xbffff410, options=107) at scanners.c:1318
#7 0x40028c5b in cl_scanfile (
filename=0x8492d18 "/var/spool/exim/scan/1CauPE-0002Uk-Be/1CauPE-0002Uk-Be.eml", virname=0x408328e8, scanned=0x0, root=0x80568f8, limits=0xbffff410,
options=107) at scanners.c:1344
#8 0x0804e20c in dirscan (
dirname=0x408329a1 "/var/spool/exim/scan/1CauPE-0002Uk-Be",
virname=0x408328e8, scanned=0x0, root=0x80568f8, limits=0xbffff410,
options=107, copt=0x8055158, odesc=9, reclev=0x408328e4, contscan=0)
at scanner.c:136
#9 0x0804e539 in scan (
filename=0x408329a1 "/var/spool/exim/scan/1CauPE-0002Uk-Be", scanned=0x0,
root=0x80568f8, limits=0xbffff410, options=107, copt=0x8055158, odesc=9,
contscan=9) at scanner.c:222
#10 0x0804c6de in command (desc=9, root=0x80568f8, limits=0xbffff410,
options=107, copt=0x8055158, timeout=120) at session.c:96
#11 0x0804cef8 in scanner_thread (arg=0x8492bb0) at server-th.c:84
#12 0x0804cd10 in thrmgr_worker (arg=0x8492bd0) at thrmgr.c:199
#13 0x40215f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#14 0x402160fe in pthread_start_thread_event () from /lib/i686/libpthread.so.0
#15 0x4033e327 in clone () from /lib/i686/libc.so.6
(gdb)
/etc/clamav/clamd.conf.debug:
LogFile /var/log/clamd.log LogFileMaxSize 0 LogTime LogVerbose PidFile /var/lib/clamav/clamd.pid TemporaryDirectory /var/tmp DatabaseDirectory /var/lib/clamav LocalSocket /var/lib/clamav/clamd.sock FixStaleSocket User clamav AllowSupplementaryGroups Foreground Debug ScanPE ScanOLE2 ScanMail ScanHTML ScanArchive ScanRAR ArchiveMaxFileSize 30M
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
