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!

This is using clamav-devel:

[...]
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 245776 (LWP 25665)]
parseMimeHeader (m=0x8519e00,
cmd=0x859fa2e "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x8495750, arg=0x0)
at string2.h:1092
1092 while (*__s == __sep)
(gdb)
(gdb) bt
#0 parseMimeHeader (m=0x8519e00,
cmd=0x859fa2e "; name=\"/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhang_6781.pdf\"", rfc821Table=0x8495750, arg=0x0)
at string2.h:1092
#1 0x4002faac in parseEmailHeader (m=0x8519e00,
line=0x859fa20 "Content-Type", rfc821=0x8495750) at mbox.c:1301
#2 0x40030e19 in parseEmailBody (messageIn=0x8517188, textIn=0x0,
dir=0x8516b58 "/var/tmp/clamav-f1b7e9e9440e726b", rfc821Table=0x8495750,
subtypeTable=0x84957c8, options=107) at mbox.c:1662
#3 0x4002f3ef in cli_mbox (dir=0x8516b58 "/var/tmp/clamav-f1b7e9e9440e726b",
desc=0, options=107) at mbox.c:1048
#4 0x4002864e in cli_scanmail (desc=13, virname=0x422358e8, scanned=0x0,
root=0x849af18, limits=0xbffff410, options=107, arec=0x422357a8,
mrec=0x422357ac) at scanners.c:1145
#5 0x400288ba in cli_magic_scandesc (desc=13, virname=0x422358e8,
scanned=0x0, root=0x849af18, limits=0xbffff410, options=107,
arec=0x422357a8, mrec=0x422357ac) at scanners.c:1246
#6 0x40028e16 in cl_scandesc (desc=13, virname=0x422358e8, scanned=0x0,
root=0x849af18, limits=0xbffff410, options=107) at scanners.c:1354
#7 0x40028edb in cl_scanfile (
filename=0x851acb0 "/var/spool/exim/scan/1Cb5dz-0006ft-6d/1Cb5dz-0006ft-6d.eml", virname=0x422358e8, scanned=0x0, root=0x849af18, limits=0xbffff410,
options=107) at scanners.c:1380
#8 0x0804e2dc in dirscan (
dirname=0x422359a1 "/var/spool/exim/scan/1Cb5dz-0006ft-6d",
virname=0x422358e8, scanned=0x0, root=0x849af18, limits=0xbffff410,
options=107, copt=0x8056178, odesc=9, reclev=0x422358e4, contscan=0)
at scanner.c:156
#9 0x0804e652 in scan (
filename=0x422359a1 "/var/spool/exim/scan/1Cb5dz-0006ft-6d", scanned=0x0,
root=0x849af18, limits=0xbffff410, options=107, copt=0x8056178, odesc=9,
contscan=0) at scanner.c:251
#10 0x0804c74e in command (desc=9, root=0x849af18, limits=0xbffff410,
options=107, copt=0x8056178, timeout=120) at session.c:96
#11 0x0804cf98 in scanner_thread (arg=0x851ad00) at server-th.c:84
#12 0x0804cdb0 in thrmgr_worker (arg=0x851ad20) 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