clamav taking extremely long time to load database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clamav (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
High
|
Scott Kitterman | ||
Maverick |
Fix Released
|
High
|
Scott Kitterman |
Bug Description
Binary package hint: clamav
# apt-cache policy clamav-daemon
clamav-daemon:
Installed: 0.96.3+
Candidate: 0.96.3+
Since the security update of clamav, the daemon takes multiple minutes to load its virus database, and is causing random timeouts for users of the unix socket (in my case, mimedefang), triggering repeated 400-series email temp-fails each time freshclam issues a reload request.
strace just shows it slowly allocating memory and not doing much else.
Logs don't seem to help:
Thu Dec 16 20:58:34 2010 -> +++ Started at Thu Dec 16 20:58:34 2010
Thu Dec 16 20:58:34 2010 -> clamd daemon 0.96.3 (OS: linux-gnu, ARCH: x86_64, CPU: x86_64)
Thu Dec 16 20:58:34 2010 -> Log file size limit disabled.
Thu Dec 16 20:58:34 2010 -> Reading databases from /var/lib/clamav/
Thu Dec 16 20:58:34 2010 -> Not loading PUA signatures.
Thu Dec 16 20:58:38 2010 -> Loaded 856324 signatures.
But minutes later, it's still spinning at 100% CPU and non-responsive on its socket.
Here's the backtrace while its stuck:
(gdb) bt
#0 __find<
#1 find<__
#2 llvm::LoopBase<
at ./llvm/
#3 llvm::ScalarEvo
at llvm/lib/
#4 0x00007f6591bad79f in llvm::ScalarEvo
at llvm/lib/
#5 0x00007f6591badaa5 in llvm::ScalarEvo
#6 0x00007f6591badfa9 in llvm::ScalarEvo
#7 0x00007f6591966040 in loopNeedsTimeou
#8 runOnFunction (this=<value optimized out>, F=<value optimized out>) at bytecode2llvm.
#9 0x00007f6591ab8166 in llvm::FPPassMan
#10 0x00007f6591ab827b in llvm::FPPassMan
#11 0x00007f6591ab7d0b in llvm::MPPassMan
#12 0x00007f6591ab7e99 in llvm::PassManag
#13 0x00007f659196dcff in generate (this=0x7fffe47
#14 0x00007f659196f85b in cli_bytecode_
#15 0x00007f659194bec1 in cli_bytecode_
#16 0x00007f65918d0310 in cl_engine_compile (engine=0x10fdb60) at readdb.c:3112
#17 0x0000000000407cfc in main (argc=<value optimized out>, argv=<value optimized out>) at clamd.c:495
TEST CASE: Install new packages and observe improved startup times. Since this update is a micro-version update and not a targeted patch for just the problem, when testing be alert for other issues/regressions.
description: | updated |
description: | updated |
tags: | added: regression-update |
tags: |
added: verification-done removed: verification-needed |
tags: | added: testcase |
What architecture is this? I don't see this on i386. Also what's the exact CPU?
I don't think the security patches would have affected this.
Can you replicate this with the newer clamav in backports?