Bugzilla – Bug 12597
0.103.0-rc: Startup of clamav-milter doesn't finish
Last modified: 2020-08-30 21:41:01 EDT
Startup of clamav-milter doesn't finish. It hangs up and doesn't return. root@rolling-vm-freebsd2[727]# /usr/local/sbin/clamav-milter ^C# root@rolling-vm-freebsd2[728]# Output of `clamconf -n` is as following. Checking configuration files in /usr/local/etc Config file: clamd.conf ----------------------- LogSyslog = "yes" LogFacility = "LOG_MAIL" PidFile = "/var/run/clamav/clamd.pid" LocalSocket = "/var/run/clamav/clamd.sock" User = "clamav" Config file: freshclam.conf --------------------------- LogSyslog = "yes" LogFacility = "LOG_MAIL" PidFile = "/var/run/clamav/freshclam.pid" Checks = "24" DatabaseMirror = "db.jp.clamav.net", "database.clamav.net" Config file: clamav-milter.conf ------------------------------- LogSyslog = "yes" LogFacility = "LOG_MAIL" PidFile = "/var/run/clamav/clamav-milter.pid" User = "clamav" ClamdSocket = "unix:/var/run/clamav/clamd.sock" MilterSocket = "/var/run/clamav/clmilter.sock" OnInfected = "Blackhole" AddHeader = "Add" VirusAction = "/usr/local/sbin/clamav-milter-virus-notice" LogInfected = "Full" Software settings ----------------- Version: 0.103.0-rc Optional features supported: MEMPOOL IPv6 BIGSTACK AUTOIT_EA06 BZIP2 LIBXML2 PCRE2 JSON RAR Database information -------------------- Database directory: /var/db/clamav bytecode.cvd: version 331, sigs: 94, built on Fri Sep 20 01:12:33 2019 daily.cvd: version 25904, sigs: 3931691, built on Mon Aug 17 22:02:24 2020 main.cvd: version 59, sigs: 4564902, built on Mon Nov 25 22:56:15 2019 Total number of signatures: 8496687 Platform information -------------------- uname: FreeBSD 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC amd64 OS: freebsd12.1, ARCH: amd64, CPU: amd64 zlib version: 1.2.11 (1.2.11), compile flags: a9 platform id: 0x032378780800000000040201 Build information ----------------- Clang: 4.2.1 Compatible FreeBSD Clang 8.0.1 (tags/RELEASE_801/final 366581) (4.2.1) CPPFLAGS: CFLAGS: -O2 -pipe -fstack-protector-strong -fno-strict-aliasing CXXFLAGS: -O2 -pipe -fstack-protector-strong -fno-strict-aliasing LDFLAGS: -lthr -fstack-protector-strong Configure: '--disable-dependency-tracking' '--enable-bigstack' '--enable-clamdtop' '--libdir=/usr/local/lib' '--with-dbdir=/var/db/clamav' '--with-libcurl=/usr/local' '--with-openssl=/usr' '--with-system-libmspack=/usr/local/lib/libmspack.so' '--with-xml=/usr/local' '--disable-experimental' '--without-iconv' '--enable-ipv6' '--with-libjson=/usr/local' '--enable-milter' '--with-sendmail=/usr/sbin/sendmail' '--with-pcre' '--disable-check' '--enable-unrar' '--prefix=/usr/local' '--localstatedir=/var' '--mandir=/usr/local/man' '--disable-silent-rules' '--infodir=/usr/local/share/info/' '--build=amd64-portbld-freebsd12.1' 'build_alias=amd64-portbld-freebsd12.1' 'CXX=c++' 'CXXFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' 'LDFLAGS= -lthr -fstack-protector-strong ' 'LIBS=' 'CPPFLAGS=' 'CC=cc' 'CFLAGS=-O2 -pipe -fstack-protector-strong -fno-strict-aliasing ' 'CPP=cpp' 'PKG_CONFIG=pkgconf' --enable-ltdl-convenience sizeof(void*) = 8 Engine flevel: 120, dconf: 120
Hello, Thank you for the feedback. I attempted to reproduce this problem, and was not able to. Could you provide a copy of your log files? Thanks, Andy
(In reply to aragusa from comment #1) I add following settings to /usr/local/etc/clamav-milter.conf and start clamav-milter directly from root shell command line. ---------------------------------------------------------------------- LogFile /var/log/clamav/clamav-milter.log LogVerbose yes ---------------------------------------------------------------------- Then following messages are written to log file. ---------------------------------------------------------------------- +++ Started at Thu Aug 20 09:43:10 2020 Local socket unix:/var/run/clamav/clamd.sock added to the pool (slot 1) Probe for slot 1 returned: success ----------------------------------------------------------------------
I applied following patch to r545451 of head of ports tree (https://svn.freebsd.org/ports/head/). https://lists.freebsd.org/pipermail/freebsd-ports/2020-August/119211.html Then I installed ClamAV by using (patched) /usr/ports/security/clamav.
Hi, I was able to reproduce the issue, and am working on it. Thank you.
Just wanted to give you an update that I have a patch that is in testing, and it should be ready for you early next week. Thanks, Andy
Created attachment 7693 [details] daemon startup patch Here's the patch Andy made, sorry we forgot to attach it earlier. It appears to be working well in testing over here, though we're still doing a little more testing before we'll merge it. We're planning to have this and a few other bug fixes in a 2nd release candidate that should be out Tues or Wed next week, I hope. Regards, Micah
(In reply to Micah Snyder from comment #6) Thank you for patch. I tried it and confirmed clamav-milter starts up successfully now.
Excellent news! Thanks for testing it. Will merge the patch tomorrow as we prep a second release candidate. Regards, Micah