[Pkg-clamav-devel] Bug#606308: clamav-daemon: clamd segfaults immediately after launch

Hannes Schulz schulz at schwaar.com
Wed Dec 8 09:09:11 UTC 2010


Package: clamav-daemon
Version: 0.96.5+dfsg-1~volatile1
Severity: important


lstrace /usr/sbin/clamd says
[lots of lines]
cl_load(0x7d17a0, 0x7d5240, 0x7fff38ed9a5c, 8194, 0x620c20) = 0
strlen("#Loaded %u signatures.\n")               = 23
vsnprintf(" signatures.\n", 4311296, "\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"..., 0x7ef9fefefefefefe) = 27
pthread_mutex_lock(0x620c20, 0x41c900, 27, 0x7ef9fefefefefefe, 0x2525252525252525) = 0
syslog(6, "%s", "Loaded 855716 signatures.\n")   = <void>
pthread_mutex_unlock(0x620c20, 0x7f86d4a68730, 81, 0, 0x7db350) = 0
cl_engine_compile(0x7d5240, 0, 0x7f86d4caed48, 0, 0x620c20 <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


Changing clamd.conf to read "Bytecode false" avoids the segfault.



-- Package-specific info:
--- configuration ---
Checking configuration files in /etc/clamav

Config file: clamd.conf
-----------------------
LogFile disabled
LogFileUnlock disabled
LogFileMaxSize disabled
LogTime = "yes"
LogClean = "yes"
LogSyslog = "yes"
LogFacility = "LOG_DAEMON"
LogVerbose disabled
ExtendedDetectionInfo disabled
PidFile = "/var/run/clamav/clamd.pid"
TemporaryDirectory = "/var/tmp/clamav"
DatabaseDirectory = "/var/lib/clamav"
OfficialDatabaseOnly disabled
LocalSocket = "/var/run/clamav/clamd.ctl"
LocalSocketGroup = "clamav"
LocalSocketMode = "666"
FixStaleSocket = "yes"
TCPSocket disabled
TCPAddr disabled
MaxConnectionQueueLength = "15"
StreamMaxLength = "26214400"
StreamMinPort = "1024"
StreamMaxPort = "2048"
MaxThreads = "12"
ReadTimeout = "600"
CommandReadTimeout = "5"
SendBufTimeout = "200"
MaxQueue = "100"
IdleTimeout = "30"
ExcludePath disabled
MaxDirectoryRecursion = "15"
FollowDirectorySymlinks disabled
FollowFileSymlinks disabled
CrossFilesystems = "yes"
SelfCheck = "3600"
VirusEvent disabled
ExitOnOOM disabled
Foreground disabled
Debug disabled
LeaveTemporaryFiles disabled
User = "clamav"
AllowSupplementaryGroups disabled
Bytecode disabled
BytecodeSecurity = "Paranoid"
BytecodeTimeout = "60000"
BytecodeMode = "Auto"
DetectPUA disabled
ExcludePUA disabled
IncludePUA disabled
AlgorithmicDetection = "yes"
ScanPE = "yes"
ScanELF = "yes"
DetectBrokenExecutables disabled
ScanMail = "yes"
ScanPartialMessages disabled
PhishingSignatures = "yes"
PhishingScanURLs disabled
PhishingAlwaysBlockCloak disabled
PhishingAlwaysBlockSSLMismatch disabled
HeuristicScanPrecedence disabled
StructuredDataDetection disabled
StructuredMinCreditCardCount = "3"
StructuredMinSSNCount = "3"
StructuredSSNFormatNormal = "yes"
StructuredSSNFormatStripped disabled
ScanHTML = "yes"
ScanOLE2 = "yes"
OLE2BlockMacros disabled
ScanPDF = "yes"
ScanArchive = "yes"
ArchiveBlockEncrypted = "yes"
MaxScanSize = "104857600"
MaxFileSize = "26214400"
MaxRecursion = "16"
MaxFiles = "10000"
ClamukoScanOnAccess disabled
ClamukoScannerCount = "3"
ClamukoScanOnOpen disabled
ClamukoScanOnClose disabled
ClamukoScanOnExec disabled
ClamukoIncludePath disabled
ClamukoExcludePath disabled
ClamukoMaxFileSize = "5242880"
DevACOnly disabled
DevACDepth disabled
DevLiblog disabled

Config file: freshclam.conf
---------------------------
LogFileMaxSize disabled
LogTime = "yes"
LogSyslog disabled
LogFacility = "LOG_LOCAL6"
LogVerbose disabled
PidFile = "/var/run/clamav/freshclam.pid"
DatabaseDirectory = "/var/lib/clamav/"
Foreground disabled
Debug disabled
AllowSupplementaryGroups disabled
UpdateLogFile = "/var/log/clamav/freshclam.log"
DatabaseOwner = "clamav"
Checks = "12"
DNSDatabaseInfo = "current.cvd.clamav.net"
DatabaseMirror = "db.local.clamav.net", "database.clamav.net", "db.at.clamav.net", "db.de.clamav.net"
MaxAttempts = "5"
ScriptedUpdates = "yes"
TestDatabases = "yes"
CompressLocalDatabase disabled
ExtraDatabase disabled
DatabaseCustomURL disabled
HTTPProxyServer = "proxy.schwaar.com"
HTTPProxyPort = "3128"
HTTPProxyUsername disabled
HTTPProxyPassword disabled
HTTPUserAgent disabled
NotifyClamd = "/etc/clamav/clamd.conf"
OnUpdateExecute disabled
OnErrorExecute disabled
OnOutdatedExecute disabled
LocalIPAddress disabled
ConnectTimeout = "30"
ReceiveTimeout = "30"
SubmitDetectionStats disabled
DetectionStatsCountry disabled
DetectionStatsHostID disabled
SafeBrowsing disabled
Bytecode = "yes"

Config file: clamav-milter.conf
-------------------------------

Software settings
-----------------
Version: devel-debian/0.95+dfsg-1-6689-g1d89fa4
WARNING: Version mismatch: libclamav=devel-debian/0.95+dfsg-1-6689-g1d89fa4, clamconf=0.96.5
Optional features supported: MEMPOOL IPv6 FRESHCLAM_DNS_FIX AUTOIT_EA06 BZIP2 RAR JIT

Database information
--------------------
Database directory: /var/lib/clamav/
WARNING: freshclam.conf and clamd.conf point to different database directories
daily.cld: version 12367, sigs: 10962, built on Wed Dec  8 03:43:28 2010
bytecode.cld: version 93, sigs: 16, built on Tue Nov 23 14:32:38 2010
main.cld: version 53, sigs: 846214, built on Sun Nov 14 15:58:22 2010
Total number of signatures: 857192

Platform information
--------------------
uname: Linux 2.6.26-2-amd64 #1 SMP Thu Nov 25 04:30:55 UTC 2010 x86_64
OS: linux-gnu, ARCH: x86_64, CPU: x86_64
Full OS version: Debian GNU/Linux 5.0.7 (lenny)
zlib version: 1.2.3.3 (1.2.3.3), compile flags: a9
Triple: x86_64-pc-linux-gnu
CPU: nocona, Little-endian
platform id: 0x0a213a3a0804030201040302

Build information
-----------------
GNU C: 4.3.2 (4.3.2)
GNU C++: 4.3.2 (4.3.2)
CPPFLAGS: 
CFLAGS: -Wall -g -O2
CXXFLAGS: -Wall -g -O2
LDFLAGS: 
Configure: '--build=x86_64-linux-gnu' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-clamav' '--with-dbdir=/var/lib/clamav/' '--sysconfdir=/etc/clamav' '--enable-milter' '--disable-clamuko' '--with-gnu-ld' '--enable-dns-fix' '--disable-unrar' '--libdir=/usr/lib' '--with-system-tommath' '--with-ltdl-include=/usr/include' '--with-ltdl-lib=/usr/lib' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS=' 'CPPFLAGS='
sizeof(void*) = 8
Engine flevel: 58, dconf: 58

--- data dir ---
total 65160
-rw-r--r-- 1 clamav clamav   354304 2010-11-23 14:57 bytecode.cld
-rw-r--r-- 1 clamav clamav   852480 2010-12-08 04:57 daily.cld
drwxr-xr-x 2 clamav clamav     4096 2008-05-20 09:12 daily.inc
-rw-r--r-- 1 clamav clamav 65422336 2010-11-14 17:57 main.cld
drwxr-xr-x 2 clamav clamav     4096 2008-05-20 09:12 main.inc

-- System Information:
Debian Release: 5.0.7
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages clamav-daemon depends on:
ii  clamav-base      0.96.5+dfsg-1~volatile1 anti-virus utility for Unix - base
ii  clamav-freshclam 0.96.5+dfsg-1~volatile1 anti-virus utility for Unix - viru
ii  libbz2-1.0       1.0.5-1+lenny1          high-quality block-sorting file co
ii  libc6            2.7-18lenny6            GNU C Library: Shared libraries
ii  libclamav6       0.96.5+dfsg-1~volatile1 anti-virus utility for Unix - libr
ii  libncurses5      5.7+20081213-1          shared libraries for terminal hand
ii  libtommath0      0.39-3                  multiple-precision integer library
ii  lsb-base         3.2-20                  Linux Standard Base 3.2 init scrip
ii  ucf              3.0016                  Update Configuration File: preserv
ii  zlib1g           1:1.2.3.3.dfsg-12       compression library - runtime

clamav-daemon recommends no packages.

Versions of packages clamav-daemon suggests:
pn  clamav-docs                   <none>     (no description available)
ii  daemon                        0.6.3-1    turns other processes into daemons

-- no debconf information





More information about the Pkg-clamav-devel mailing list