#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


parseEmailHeader is calling parseMimeHeader with arg=0x0 yet around
line 1300 of mbox.c (without the comments) this code appears:

                if(arg)
                        ret = parseMimeHeader(m, cmd, rfc821, arg);

So either (a) your compiler is broken or (b) you are not using the
CVS version as requested.

I installed gcc-3.4.3 but it segfaults too:

./configure --prefix=/opt/gcc
make bootstrap
make install

export PATH=/opt/gcc/bin:$PATH
# gcc --version
gcc (GCC) 3.4.3
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

cd clamav-devel
make distclean
# 06.12.04
# clamav-devel
# gcc-3.4.3
./configure \
--prefix=/opt/clamav \
--sysconfdir=/etc/clamav \
--with-dbdir=/var/lib/clamav
make

(stop clamd)
rm -rf /opt/clamav
make install
ldconfig

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

[...]
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-En\coding: 8bit'
LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: 8bit'
LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' 8bit'L\ibClamAV 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: ; nam\e="/usr/local/apache/htdocs/ftp/www.pressedienst.saarland.de/prd/anhaenge/anhan\g_6781.pdf"'
LibClamAV debug: parseEmailHeader 'Content-Type: ; name="/usr/local/apache/htdo\cs/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 26722)]
parseEmailHeader (m=0x84aa920, line=0x0, rfc821=0x84aaa80) at string2.h:1093
1093 ++__s;
(gdb) bt
#0 parseEmailHeader (m=0x84aa920, line=0x0, rfc821=0x84aaa80)
at string2.h:1093
#1 0x40032a9d in parseEmailBody (messageIn=0x84aba30, textIn=0x0,
dir=0x84ab398 "/var/tmp/clamav-152061cc849a7efe", rfc821Table=0x84aaa80,
subtypeTable=0x84aaad8, options=107) at mbox.c:1662
#2 0x400336b5 in cli_mbox (
dir=0x84ab398 "/var/tmp/clamav-152061cc849a7efe", desc=0, options=107)
at mbox.c:1048
#3 0x400297d3 in cli_scanmail (desc=13, virname=0x408348e8,
scanned=0x408312cc, root=0x408312cc, limits=0x408312cc, options=107,
arec=0x408347a8, mrec=0x408347ac) at scanners.c:1145
#4 0x40026b86 in cli_magic_scandesc (desc=13, virname=0x408348e8,
scanned=0x0, root=0x8057d98, limits=0xbffff3e0, options=107,
arec=0x408347a8, mrec=0x408347ac) at scanners.c:1246
#5 0x400298cc in cl_scandesc (desc=1082331852, virname=0x408312cc,
scanned=0x408312cc, root=0x408312cc, limits=0x408312cc,
options=1082331852) at scanners.c:1354
#6 0x40029942 in cl_scanfile (filename=0x408312cc "\004",
virname=0x408312cc, scanned=0x408312cc, root=0x408312cc,
limits=0x408312cc, options=1082331852) at scanners.c:1380
#7 0x0804e8f2 in dirscan (
dirname=0x408349a1 "/var/spool/exim/scan/1CbPAC-0006ww-Vv",
virname=0x408348e8, scanned=0x0, root=0x8057d98, limits=0xbffff3e0,
options=107, copt=0x80565f8, odesc=9, reclev=0x408348e4, contscan=0)
at scanner.c:156
#8 0x0804ebeb in scan (
filename=0x408349a1 "/var/spool/exim/scan/1CbPAC-0006ww-Vv",
scanned=0x0, root=0x8057d98, limits=0xbffff3e0, options=107,
copt=0x80565f8, odesc=9, contscan=0) at scanner.c:251
#9 0x0804cc3c in command (desc=9, root=0x8057d98, limits=0xbffff3e0,
options=107, copt=0x80565f8, timeout=1082331852) at session.c:117
#10 0x0804d4c0 in scanner_thread (arg=0x84af1c0) at server-th.c:84
#11 0x0804d2e3 in thrmgr_worker (arg=0x84af1e0) at thrmgr.c:199
#12 0x40217f60 in pthread_start_thread () from /lib/i686/libpthread.so.0
#13 0x402180fe in pthread_start_thread_event ()
from /lib/i686/libpthread.so.0
#14 0x40340327 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