Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 102700 - clamav-milter segfaults with glibc-2.3.5 compiled with -fomit-frame-pointer
Summary: clamav-milter segfaults with glibc-2.3.5 compiled with -fomit-frame-pointer
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-16 04:32 UTC by Apostolis Papayanakis
Modified: 2005-09-11 11:38 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Apostolis Papayanakis 2005-08-16 04:32:00 UTC
Clamav-milter segfaults when nscd is running. This only happens with nscd from 
glibc-2.3.5 when compiled -fomit-frame-pointer is set in CFLAGS.
The issue affects only the glicb-2.3.5, but not glibc-2.3.4.xxx or 2.3.5-r1 
which makes use of a special USE flag (-glibc-omitfp). The bug can be 
considered resolved, bu 2.3.5-r1 is not marked as stable for x86 yet.

Reproducible: Always
Steps to Reproduce:
1. /usr/sbin/clamav-milter -m 150 --force-scan --timeout=0 --quiet --local --
debug inet:12345 &
2.nscd -d &
3.clmilter_watch -s 12345 -L /dev/null -t 5 # 
http://www.itg.uiuc.edu/itg_software/clmilter_watch/ A valuable probe for 
clamav-milter

Actual Results:  
Clamav-milter died with a syslog entry:
 clamav-milter[25355]: Segmentation fault :-( Bye..


Expected Results:  
It should respond with:

clamav-milter properly allowed clean mail through
clamav-milter blocked a virus


Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-
2.3.5.0n-r0, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Xeon(TM) CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks noinfo sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ ftp://files.gentoo.gr/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="x86 acl apm avi bash-completion berkdb bitmap-fonts crypt curl dba eds 
emboss encode fam foomaticdb gd gdbm gstreamer imap imlib ipv6 jpeg ldap libg++ 
libwww mad mcal memlimit mikmod milter mmx motif mp3 mysql ncurses nls nptl ogg 
oggvorbis pam pcre perl png python quicktime readline slang spell sse ssl tcpd 
threads truetype truetype-fonts type1-fonts unicode vhosts vorbis xml2 xmms 
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Apostolis Papayanakis 2005-08-16 04:36:28 UTC
The bug can be considered resolved in glibc2.3.5-r1 which makes use of a 
special USE flag (-glibc-omitfp). However  glibc2.3.5-r1 is not yet marked 
stable for x86 yet.

Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-08-16 04:42:13 UTC
Reopened.
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2005-08-16 12:12:06 UTC
Uhm... actually are you sure 2.3.5-r1 fixes it?  The new glibc-omitfp USE flag
just does the same thing as having -fomit-frame-pointer in your CFLAGS in the
old release.  So the question is does USE=glibc-omitfp 2.3.5-r1 cause
clamav-milter to segfault?

And 2.3.5-r1 actually went stable yesterday, so emerge --rsync
Comment 4 Apostolis Papayanakis 2005-08-17 05:43:26 UTC
After syncyning portage today, I verified that the new glibc-2.3.5-r1 (x86 
stable version, 17 Aug 2005) is ok for me when compiled with default USE flags, 
but when compiled with USE=glibc-omitfp causes reproducable clamav-milter 
segfaults.

I think the specific problem has been resolved as far as I am concerned.

Generally however, I have CFLAGS with "-fomit-frame-pointer" in /etc/make.conf 
in approx. twenty systems. I hope there will be no more problems with "-fomit-
frame-pointer" or else I will have to do lots of reemerging.


Here follows a typical segfault after glibc compilation with USE="glibc-omitfp"
--------------------------------------------------------
sh-3.00# USE="glibc-omitfp" emerge -vp glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5-r1  -build -erandom -glibc-compat20 +glibc-
omitfp* -hardened -linuxthreads-tls (-multilib) +nls +nptl -nptlonly -pic -
profile (-selinux) +userlocales 0 kB 

sh-3.00# USE="glibc-omitfp" emerge glibc
sh-3.00#  pkill clamav-milter;pkill nscd;sleep 2;nscd -d &/usr/sbin/clamav-
milter -m 150 --force-scan --timeout=0 --quiet --local --debug inet:43210 & 
sleep 2;/noc/scripts/nst/clmilter_watch -s 43210 -H test -L /dev/null -t 2
[1] 28881
[2] 28882
28881: handle_request: request received (Version = 2) from PID 28882
28881:  GETFDPW
28881: handle_request: request received (Version = 2) from PID 28882
28881:  GETPWBYNAME (clamav)
28881: Haven't found "clamav" in password cache!
LibClamAV debug: Running as user clamav (UID 101, GID 3001)
LibClamAV debug: loadDatabase: check /var/lib/clamav/daily.cvd for updates
LibClamAV debug: Loading databases from /var/lib/clamav
LibClamAV debug: Loading /var/lib/clamav/main.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 7c497735a7e1a3e15dde75832bef48f3
LibClamAV debug: Decoded signature: 7c497735a7e1a3e15dde75832bef48f3
LibClamAV debug: Digital signature is correct.
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/COPYING
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/main.db
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/main.hdb
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/main.ndb
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/main.zmd
LibClamAV debug: Unpacking /tmp/clamav-31d0551278eecd3c/main.fp
LibClamAV debug: Loading databases from /tmp/clamav-31d0551278eecd3c
LibClamAV debug: Loading /tmp/clamav-31d0551278eecd3c/main.fp
LibClamAV debug: Initializing main node
LibClamAV debug: Initializing md5 list structure
LibClamAV debug: Loading /tmp/clamav-31d0551278eecd3c/main.zmd
LibClamAV debug: Loading /tmp/clamav-31d0551278eecd3c/main.ndb
LibClamAV debug: Initializing trie
LibClamAV debug: Initializing BM tables
LibClamAV debug: in cli_bm_init()
LibClamAV debug: BM: Number of indexes = 63744
LibClamAV debug: Loading /tmp/clamav-31d0551278eecd3c/main.hdb
LibClamAV debug: Loading /tmp/clamav-31d0551278eecd3c/main.db
LibClamAV debug: Loading /var/lib/clamav/daily.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 630ec5515675c3c23e183c61fc73cbec
LibClamAV debug: Decoded signature: 630ec5515675c3c23e183c61fc73cbec
LibClamAV debug: Digital signature is correct.
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /tmp/clamav-c97beb1c37ec3fd8/COPYING
LibClamAV debug: Unpacking /tmp/clamav-c97beb1c37ec3fd8/daily.db
LibClamAV debug: Unpacking /tmp/clamav-c97beb1c37ec3fd8/daily.hdb
LibClamAV debug: Unpacking /tmp/clamav-c97beb1c37ec3fd8/daily.ndb
LibClamAV debug: Loading databases from /tmp/clamav-c97beb1c37ec3fd8
LibClamAV debug: Loading /tmp/clamav-c97beb1c37ec3fd8/daily.ndb
LibClamAV debug: Loading /tmp/clamav-c97beb1c37ec3fd8/daily.hdb
LibClamAV debug: Loading /tmp/clamav-c97beb1c37ec3fd8/daily.db
LibClamAV debug: Database loaded
LibClamAV debug: Stat()ing files in /var/lib/clamav
LibClamAV debug: Setting /var/tmp as global temporary directory
LibClamAV debug: Making /var/tmp/clamav-19d5df5bd2abbd64
LibClamAV debug: Started: ClamAV version 0.86.2, clamav-milter version 0.86
LibClamAV debug: watchdog sleeps
28881: handle_request: request received (Version = 2) from PID 
28892                                                       
28881:  GETFDHST
28881: handle_request: request received (Version = 2) from PID 28892
28881:  GETHOSTBYNAME (test)
28881: Haven't found "test" in hosts cache!
[-1227551824] got cmd 'O' len 12
[-1227551824] cur 0 new 1 nextmask 2
[-1227551824] got cmd 'D' len 131
[-1227551824] cur 1 new ffffffff nextmask 2004
[-1227551824] got cmd 'C' len 35
[-1227551824] cur 1 new 2 nextmask 2004
28881: handle_request: request received (Version = 2) from PID 28882
28881:  GETFDHST
28881: handle_request: request received (Version = 2) from PID 28882
28881:  GETHOSTBYNAME (localhost.localdomain)
28881: Haven't found "localhost.localdomain" in hosts cache!
LibClamAV Error: Segmentation fault :-( Bye..
clamav-milter didn't respond within 2s timeout
sh-3.00# 28881: remove GETHOSTBYNAME entry "localhost.localdomain"
28881: Reloading "clamav" in password cache!
28881: Reloading "clamav" in password cache!
28881: Reloading "clamav" in password cache!
28881: Reloading "clamav" in password cache!
28881: Reloading "clamav" in password cache!
28881: Reloading "test" in hosts cache!
28881: remove GETPWBYUID entry "101"
28881: remove GETPWBYNAME entry "clamav"

[2]+  Segmentation fault      /usr/sbin/clamav-milter -m 150 --force-scan --
timeout=0 --quiet --local --debug inet:43210
sh-3.00#

--------------------------------------------------------------------------
Here follow the very same actions but without USE="glibc-omitfp". There is no 
segmentation fault.


sh-3.00# emerge -vp glibc

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-libs/glibc-2.3.5-r1  -build -erandom -glibc-compat20 -glibc-
omitfp -hardened -linuxthreads-tls (-multilib) +nls +nptl -nptlonly -pic -
profile (-selinux) +userlocales 0 kB 

sh-3.00# emerge glibc
pkill clamav-milter;pkill nscd;sleep 2;nscd -d &/usr/sbin/clamav-milter -m 150 -
-force-scan --timeout=0 --quiet --local --debug inet:43210 & sleep 
2;/noc/scripts/nst/clmilter_watch -s 43210 -H test -L /dev/null -t 2
[1] 29466
[2] 29467
LibClamAV debug: Running as user clamav (UID 101, GID 3001)
LibClamAV debug: loadDatabase: check /var/lib/clamav/daily.cvd for updates
LibClamAV debug: Loading databases from /var/lib/clamav
LibClamAV debug: Loading /var/lib/clamav/main.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 7c497735a7e1a3e15dde75832bef48f3
LibClamAV debug: Decoded signature: 7c497735a7e1a3e15dde75832bef48f3
LibClamAV debug: Digital signature is correct.
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/COPYING
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/main.db
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/main.hdb
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/main.ndb
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/main.zmd
LibClamAV debug: Unpacking /tmp/clamav-5310ae5e0321cc1e/main.fp
LibClamAV debug: Loading databases from /tmp/clamav-5310ae5e0321cc1e
LibClamAV debug: Loading /tmp/clamav-5310ae5e0321cc1e/main.fp
LibClamAV debug: Initializing main node
LibClamAV debug: Initializing md5 list structure
LibClamAV debug: Loading /tmp/clamav-5310ae5e0321cc1e/main.zmd
LibClamAV debug: Loading /tmp/clamav-5310ae5e0321cc1e/main.ndb
LibClamAV debug: Initializing trie
LibClamAV debug: Initializing BM tables
LibClamAV debug: in cli_bm_init()
LibClamAV debug: BM: Number of indexes = 63744
LibClamAV debug: Loading /tmp/clamav-5310ae5e0321cc1e/main.hdb
LibClamAV debug: Loading /tmp/clamav-5310ae5e0321cc1e/main.db
LibClamAV debug: Loading /var/lib/clamav/daily.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 630ec5515675c3c23e183c61fc73cbec
LibClamAV debug: Decoded signature: 630ec5515675c3c23e183c61fc73cbec
LibClamAV debug: Digital signature is correct.
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /tmp/clamav-50fdaa60b63c066e/COPYING
LibClamAV debug: Unpacking /tmp/clamav-50fdaa60b63c066e/daily.db
LibClamAV debug: Unpacking /tmp/clamav-50fdaa60b63c066e/daily.hdb
LibClamAV debug: Unpacking /tmp/clamav-50fdaa60b63c066e/daily.ndb
LibClamAV debug: Loading databases from /tmp/clamav-50fdaa60b63c066e
LibClamAV debug: Loading /tmp/clamav-50fdaa60b63c066e/daily.ndb
LibClamAV debug: Loading /tmp/clamav-50fdaa60b63c066e/daily.hdb
LibClamAV debug: Loading /tmp/clamav-50fdaa60b63c066e/daily.db
LibClamAV debug: Database loaded
LibClamAV debug: Stat()ing files in /var/lib/clamav
LibClamAV debug: Setting /var/tmp as global temporary directory
LibClamAV debug: Making /var/tmp/clamav-d78d5fca20418bde
LibClamAV debug: Started: ClamAV version 0.86.2, clamav-milter version 0.86
LibClamAV debug: watchdog sleeps
29466: handle_request: request received (Version = 2) from PID 29477
29466:  GETFDHST
29466: handle_request: request received (Version = 2) from PID 29477
29466:  GETHOSTBYNAME (test)
29466: Haven't found "test" in hosts cache!
[-1227646032] got cmd 'O' len 12
[-1227646032] cur 0 new 1 nextmask 2
[-1227646032] got cmd 'D' len 131
[-1227646032] cur 1 new ffffffff nextmask 2004
[-1227646032] got cmd 'C' len 35
[-1227646032] cur 1 new 2 nextmask 2004
29466: handle_request: request received (Version = 2) from PID 29467
29466:  GETFDHST
29466: handle_request: request received (Version = 2) from PID 29467
29466:  GETHOSTBYNAME (localhost.localdomain)
29466: Haven't found "localhost.localdomain" in hosts cache!
[-1227646032] got cmd 'D' len 1
[-1227646032] cur 2 new ffffffff nextmask 2018
[-1227646032] got cmd 'D' len 103
[-1227646032] cur 2 new ffffffff nextmask 2018
[-1227646032] got cmd 'M' len 23
[-1227646032] cur 2 new 4 nextmask 2018
LibClamAV debug: clamfi_envfrom: virus@infected.invalid
LibClamAV debug: >n_children = 1
[-1227646032] got cmd 'D' len 53
[-1227646032] cur 4 new ffffffff nextmask 3020
[-1227646032] got cmd 'R' len 7
[-1227646032] cur 4 new 5 nextmask 3020
LibClamAV debug: clamfi_envrcpt: victim
[-1227646032] got cmd 'N' len 0
[-1227646032] cur 5 new 8 nextmask 37e0
LibClamAV debug: Saving message to /var/tmp/clamav-d78d5fca20418bde/msg.X2Mcy1 
to scan later
LibClamAV debug: connect2clamd: serverNumber = 0
LibClamAV debug: isWhitelisted victim
[-1227646032] got cmd 'B' len 131
[-1227646032] cur 8 new 9 nextmask 1600
[-1227646032] got cmd 'E' len 0
[-1227646032] cur 9 new a nextmask 1600
LibClamAV debug: clamfi_eom
LibClamAV debug: Recognized Raw mail file
LibClamAV debug: Starting cli_scanmail(), mrec == 1, arec == 0
LibClamAV debug: in mbox()
LibClamAV debug: parseEmailFile
LibClamAV debug: parseEmailFile: check 'Received: by clamav-milter' contMarker 
0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'From: virus@infected.invalid' 
contMarker 0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'To: victim' contMarker 0 fullline 0x
(nil)
LibClamAV debug: parseEmailFile: check '' contMarker 0 fullline 0x(nil)
LibClamAV debug: End of header information
LibClamAV debug: parseEmailFile: return
LibClamAV debug: in parseEmailBody
LibClamAV debug: Parsing mail file
LibClamAV debug: mimeType = 0
LibClamAV debug: Not a mime encoded message
LibClamAV debug: 0 multiparts found
LibClamAV debug: Not found uuencoded file
LibClamAV debug: Found a bounce message with no header at 'Content-Transfer-
Encoding: BASE64'
LibClamAV debug: blobSetFilename: bounce
LibClamAV debug: fileblobSetFilename: mkstemp(/var/tmp/clamav-
574798e9b086534e/bounceXXXXXX)
LibClamAV debug: Saving attachment as /var/tmp/clamav-
574798e9b086534e/bounce4XyK5M
LibClamAV debug: fileblobDestroy: bounce
LibClamAV debug: parseEmailBody() returning 1
LibClamAV debug: cli_mbox returning 0
LibClamAV debug: Recognized Raw mail file
LibClamAV debug: Starting cli_scanmail(), mrec == 2, arec == 0
LibClamAV debug: in mbox()
LibClamAV debug: parseEmailFile
LibClamAV debug: parseEmailFile: check 'Received: by clamd (bounce)' contMarker 
0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'Content-Transfer-Encoding: BASE64' 
contMarker 0 fullline 0x(nil)
LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: BASE64'
LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' BASE64'
LibClamAV debug: messageSetEncoding: 'BASE64'
LibClamAV debug: Encoding type 1 is "BASE64"
LibClamAV debug: parseEmailFile: check '' contMarker 0 fullline 0x(nil)
LibClamAV debug: End of header information
LibClamAV debug: parseEmailFile: return
LibClamAV debug: in parseEmailBody
LibClamAV debug: Parsing mail file
LibClamAV debug: mimeType = 0
LibClamAV debug: Not a mime encoded message
LibClamAV debug: messageToText: export transfer method 0 = 2
   )lamAV debug: base64chars = 3 (
LibClamAV debug: 0 multiparts found
LibClamAV debug: Not found uuencoded file
LibClamAV debug: Saving text part to scan
LibClamAV debug: Force mime encoding to application
LibClamAV debug: messageSetMimeType: 'application'
LibClamAV debug: messageToFileblob
LibClamAV debug: messageExport: numberOfEncTypes == 1
LibClamAV debug: messageExport: enctype 0 is 2
LibClamAV debug: blobSetFilename: textportion
LibClamAV debug: fileblobSetFilename: mkstemp(/var/tmp/clamav-
5c94776ea41c776c/textportionXXXXXX)
LibClamAV debug: Saving attachment as /var/tmp/clamav-
5c94776ea41c776c/textportionpmuvDy
LibClamAV debug: Exported 66 bytes using enctype 2
LibClamAV debug: 3 trailing bytes to export
   )lamAV debug: base64chars = 3 (
LibClamAV debug: Saving main message
LibClamAV debug: fileblobDestroy: textportion
LibClamAV debug: parseEmailBody() returning 1
LibClamAV debug: cli_mbox returning 0
LibClamAV debug: Calculated MD5 checksum: d7be87d454547f33686d7ffd845e9050
LibClamAV debug: Calculated MD5 checksum: 6284a6d4bfa5b2e914d664282de43626
LibClamAV debug: Calculated MD5 checksum: ee13a7ff5317a97acc70605299dba233
/var/tmp/clamav-d78d5fca20418bde/msg.X2Mcy1: OK
29466: handle_request: request received (Version = 2) from PID 29467
29466:  GETHOSTBYNAME (test)
LibClamAV debug: clamfi_cleanup
LibClamAV debug: clamfi_free
LibClamAV debug: clamfi_free: n_children = 1
LibClamAV debug: clamav-milter is idle
LibClamAV debug: <n_children = 0
LibClamAV debug: clamfi_free returns
LibClamAV debug: watchdog wakes
LibClamAV debug: Stat()ing files in /var/lib/clamav
LibClamAV debug: Database has not changed
LibClamAV debug: watchdog sleeps
[-1227646032] got cmd 'Q' len 0
[-1227646032] cur a new b nextmask 2810
LibClamAV debug: clamfi_close
clamav-milter properly allowed clean mail through
29466: handle_request: request received (Version = 2) from PID 29477
29466:  GETHOSTBYNAME (test)
[-1227646032] got cmd 'O' len 12
[-1227646032] cur 0 new 1 nextmask 2
[-1227646032] got cmd 'D' len 131
[-1227646032] cur 1 new ffffffff nextmask 2004
[-1227646032] got cmd 'C' len 35
[-1227646032] cur 1 new 2 nextmask 2004
29466: handle_request: request received (Version = 2) from PID 29467
29466:  GETHOSTBYNAME (localhost.localdomain)
[-1227646032] got cmd 'D' len 1
[-1227646032] cur 2 new ffffffff nextmask 2018
[-1227646032] got cmd 'D' len 103
[-1227646032] cur 2 new ffffffff nextmask 2018
[-1227646032] got cmd 'M' len 23
[-1227646032] cur 2 new 4 nextmask 2018
LibClamAV debug: clamfi_envfrom: virus@infected.invalid
LibClamAV debug: >n_children = 1
[-1227646032] got cmd 'D' len 53
[-1227646032] cur 4 new ffffffff nextmask 3020
[-1227646032] got cmd 'R' len 7
[-1227646032] cur 4 new 5 nextmask 3020
LibClamAV debug: clamfi_envrcpt: victim
[-1227646032] got cmd 'N' len 0
[-1227646032] cur 5 new 8 nextmask 37e0
LibClamAV debug: Saving message to /var/tmp/clamav-d78d5fca20418bde/msg.CkzBBk 
to scan later
LibClamAV debug: connect2clamd: serverNumber = 0
LibClamAV debug: isWhitelisted victim
[-1227646032] got cmd 'B' len 131
[-1227646032] cur 8 new 9 nextmask 1600
[-1227646032] got cmd 'E' len 0
[-1227646032] cur 9 new a nextmask 1600
LibClamAV debug: clamfi_eom
LibClamAV debug: Recognized Raw mail file
LibClamAV debug: Starting cli_scanmail(), mrec == 1, arec == 0
LibClamAV debug: in mbox()
LibClamAV debug: parseEmailFile
LibClamAV debug: parseEmailFile: check 'Received: by clamav-milter' contMarker 
0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'From: virus@infected.invalid' 
contMarker 0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'To: victim' contMarker 0 fullline 0x
(nil)
LibClamAV debug: parseEmailFile: check '' contMarker 0 fullline 0x(nil)
LibClamAV debug: End of header information
LibClamAV debug: parseEmailFile: return
LibClamAV debug: in parseEmailBody
LibClamAV debug: Parsing mail file
LibClamAV debug: mimeType = 0
LibClamAV debug: Not a mime encoded message
LibClamAV debug: 0 multiparts found
LibClamAV debug: Not found uuencoded file
LibClamAV debug: Found a bounce message with no header at 'Content-Transfer-
Encoding: BASE64'
LibClamAV debug: blobSetFilename: bounce
LibClamAV debug: fileblobSetFilename: mkstemp(/var/tmp/clamav-
0d29993a9da98627/bounceXXXXXX)
LibClamAV debug: Saving attachment as /var/tmp/clamav-
0d29993a9da98627/bounceB3K4z6
LibClamAV debug: fileblobDestroy: bounce
LibClamAV debug: parseEmailBody() returning 1
LibClamAV debug: cli_mbox returning 0
LibClamAV debug: Recognized Raw mail file
LibClamAV debug: Starting cli_scanmail(), mrec == 2, arec == 0
LibClamAV debug: in mbox()
LibClamAV debug: parseEmailFile
LibClamAV debug: parseEmailFile: check 'Received: by clamd (bounce)' contMarker 
0 fullline 0x(nil)
LibClamAV debug: parseEmailFile: check 'Content-Transfer-Encoding: BASE64' 
contMarker 0 fullline 0x(nil)
LibClamAV debug: parseEmailHeader 'Content-Transfer-Encoding: BASE64'
LibClamAV debug: parseMimeHeader: cmd='Content-Transfer-Encoding', arg=' BASE64'
LibClamAV debug: messageSetEncoding: 'BASE64'
LibClamAV debug: Encoding type 1 is "BASE64"
LibClamAV debug: parseEmailFile: check '' contMarker 0 fullline 0x(nil)
LibClamAV debug: End of header information
LibClamAV debug: parseEmailFile: return
LibClamAV debug: in parseEmailBody
LibClamAV debug: Parsing mail file
LibClamAV debug: mimeType = 0
LibClamAV debug: Not a mime encoded message
LibClamAV debug: messageToText: export transfer method 0 = 2
LibClamAV debug: base64chars = 3 (  ()
LibClamAV debug: 0 multiparts found
LibClamAV debug: Not found uuencoded file
LibClamAV debug: Saving text part to scan
LibClamAV debug: Force mime encoding to application
LibClamAV debug: messageSetMimeType: 'application'
LibClamAV debug: messageToFileblob
LibClamAV debug: messageExport: numberOfEncTypes == 1
LibClamAV debug: messageExport: enctype 0 is 2
LibClamAV debug: blobSetFilename: textportion
LibClamAV debug: fileblobSetFilename: mkstemp(/var/tmp/clamav-
01b106d1209375f0/textportionXXXXXX)
LibClamAV debug: Saving attachment as /var/tmp/clamav-
01b106d1209375f0/textportion8DsMyS
LibClamAV debug: Exported 66 bytes using enctype 2
LibClamAV debug: 3 trailing bytes to export
LibClamAV debug: base64chars = 3 (  ()
LibClamAV debug: Saving main message
LibClamAV debug: fileblobDestroy: textportion
LibClamAV debug: parseEmailBody() returning 1
LibClamAV debug: cli_mbox returning 0
LibClamAV debug: Eicar-Test-Signature found in descriptor 11.
/var/tmp/clamav-d78d5fca20418bde/msg.CkzBBk: Eicar-Test-Signature FOUND
29466: handle_request: request received (Version = 2) from PID 29467
29466:  GETHOSTBYNAME (test)
LibClamAV debug: clamfi_cleanup
LibClamAV debug: clamfi_free
LibClamAV debug: clamfi_free: n_children = 1
LibClamAV debug: clamav-milter is idle
LibClamAV debug: <n_children = 0
LibClamAV debug: watchdog wakes
LibClamAV debug: clamfi_free returns
LibClamAV debug: Stat()ing files in /var/lib/clamav
LibClamAV debug: Database has not changed
LibClamAV debug: watchdog sleeps
[-1227646032] got cmd 'Q' len 0
clamav-milter blocked a virus
[-1227646032] cur 3 new b nextmask a018
[-1227646032] abort: cur 3 (8) new 11 (800) next a018
LibClamAV debug: clamfi_close
sh-3.00# 


Comment 5 Apostolis Papayanakis 2005-09-09 13:32:06 UTC
Clamav has been completely stable for the last twenty days, on two servers and 
after having scanned a few million mails. Therefore current version of glibc 
ebuild (2.3.5-r1) seems to be the proper solution. I guess the bug can now be 
marked as resolved.
Comment 6 Andrej Kacian (RETIRED) gentoo-dev 2005-09-11 11:38:37 UTC
Thanks for keeping an eye on this, Apostolis.