gdb /opt/clamav/sbin/clamd
run --config-file=/etc/clamav/clamd.conf.debug


I should have said that you will need to do this with the
current version from CVS - my mistake!

Here's another segfault using clamd-devel:

[...]
LibClamAV debug: Parsing mail file
LibClamAV debug: mimeType = 5
LibClamAV debug: Content-type 'multipart' handler
LibClamAV debug: boundaryStart: found Next_Part_ in --Next_Part_
LibClamAV debug: Now read in part 0
LibClamAV debug: Multipart 0: About to parse folded header 'Content-Type: text/plain; charset="iso-8859-1"'
LibClamAV debug: parseEmailHeader 'Content-Type: text/plain; charset="iso-8859-1"'
LibClamAV debug: parseMimeHeader: cmd='Content-Type', arg=' text/plain; charset="iso-8859-1"'
LibClamAV debug: messageSetMimeType: 'text'
LibClamAV debug: mimeArgs = ' charset="iso-8859-1"'
LibClamAV debug: Add arguments ' charset="iso-8859-1"'
LibClamAV debug: Discarding unwanted argument 'charset'
LibClamAV debug: Multipart 0: About to parse folded header 'Content-Transfer-Encoding: 8bit'
LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: 8bit'
LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' 8bit'
LibClamAV debug: Encoding type 1 is "8bit"
LibClamAV debug: Multipart 0: End of header information
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 65541 (LWP 27911)]
parseMimeHeader (m=0x84b0ba0,
cmd=0x85356ae "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x84aa5c8, arg=0x0)
at string2.h:1092
1092 while (*__s == __sep)
(gdb) bt
#0 parseMimeHeader (m=0x84b0ba0,
cmd=0x85356ae "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x84aa5c8, arg=0x0)
at string2.h:1092
#1 0x4002faac in parseEmailHeader (m=0x84b0ba0,
line=0x85356a0 "Content-Type", rfc821=0x84aa5c8) at mbox.c:1301
#2 0x40030e19 in parseEmailBody (messageIn=0x84ab5a0, textIn=0x0,
dir=0x84aa4e0 "/var/tmp/clamav-2da369947ea3253f", rfc821Table=0x84aa5c8,
subtypeTable=0x84aa608, options=107) at mbox.c:1662
#3 0x4002f3ef in cli_mbox (dir=0x84aa4e0 "/var/tmp/clamav-2da369947ea3253f",
desc=0, options=107) at mbox.c:1048
#4 0x4002864e in cli_scanmail (desc=13, virname=0x40c358e8, scanned=0x0,
root=0x8057918, limits=0xbffff410, options=107, arec=0x40c357a8,
mrec=0x40c357ac) at scanners.c:1145
#5 0x400288ba in cli_magic_scandesc (desc=13, virname=0x40c358e8,
scanned=0x0, root=0x8057918, limits=0xbffff410, options=107,
arec=0x40c357a8, mrec=0x40c357ac) at scanners.c:1246
#6 0x40028e16 in cl_scandesc (desc=13, virname=0x40c358e8, scanned=0x0,
root=0x8057918, limits=0xbffff410, options=107) at scanners.c:1354
#7 0x40028edb in cl_scanfile (
filename=0x84aa4a0 "/var/spool/exim/scan/1CbCEa-0007G9-Mz/1CbCEa-0007G9-Mz.eml", virname=0x40c358e8, scanned=0x0, root=0x8057918, limits=0xbffff410,
options=107) at scanners.c:1380
#8 0x0804e2dc in dirscan (
dirname=0x40c359a1 "/var/spool/exim/scan/1CbCEa-0007G9-Mz",
virname=0x40c358e8, scanned=0x0, root=0x8057918, limits=0xbffff410,
options=107, copt=0x8056178, odesc=9, reclev=0x40c358e4, contscan=0)
at scanner.c:156
#9 0x0804e652 in scan (
filename=0x40c359a1 "/var/spool/exim/scan/1CbCEa-0007G9-Mz", scanned=0x0,
root=0x8057918, limits=0xbffff410, options=107, copt=0x8056178, odesc=9,
contscan=0) at scanner.c:251
#10 0x0804c74e in command (desc=9, root=0x8057918, limits=0xbffff410,
options=107, copt=0x8056178, timeout=120) at session.c:96
#11 0x0804cf98 in scanner_thread (arg=0x84aed50) at server-th.c:84
#12 0x0804cdb0 in thrmgr_worker (arg=0x84aed70) at thrmgr.c:199
#13 0x40218f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#14 0x402190fe in pthread_start_thread_event () from /lib/i686/libpthread.so.0
#15 0x40341327 in clone () from /lib/i686/libc.so.6
(gdb)

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users

Reply via email to