
spork at bway
Feb 12, 2007, 1:51 PM
Post #3 of 3
(1342 views)
Permalink
|
|
Re: ScanStream: accept timeout, unkillable
[In reply to]
|
|
On Tue, 6 Feb 2007, Craig Green wrote: > Charles Sprickman wrote: >> Hi all, >> >> I've been having this problem for quite some time and thought it might go >> away after upgrading all our spamd/clamd boxes to FreeBSD 6.2 from 4.11. >> >> It hasn't though... We use a maildrop recipe that uses the >> clamd-stream-client to send messages over to a cluster of spam/virus >> filtering boxes and we find that clamd sometimes hangs and stops taking any >> new connections. > > We've been running 6.x our scanner boxes for a while now, but it's only been > with the more recent security/clamav-devel port installs that we noticed a > problem much like this. Most connections to the daemon (made through > clamav-milter in our case) timed out, and the only way to bring down the > daemon was with a kill -9. > > For us, the 20061029 devel snapshot was fine, but the current one (20061217) > has problems. > > We never noticed a problem on 4.x, but it's been rather a while since we ran > clamd on that. > > From the gdb trace you provided, it looks like clam is having issues with > the new libpthread threading library. This is what we figured our boxes were > having trouble with as well. > > We've had success changing back to the older libthr library. Try dropping > this into /etc/libmap.conf: That does it! Is this something to work with the clamav people on or the FreeBSD folks? Thanks, Charles > ------------ > > [clamd] > libc_r.so.5 libthr.so.2 > libc_r.so.6 libthr.so.2 > libthr.so.2 libthr.so.2 > libpthread.so.1 libthr.so.2 > libpthread.so.2 libthr.so.2 > > ------------ > > If it works, great. If not, there's nothing more I can suggest. I don't > know why this works for us -- it was mostly a shot in the dark since the > issue appeared to be threading related and we knew FreeBSD 6 has seen a lot > of work done on the new threading library and there may still have been bugs > to work out or something. I know Perl, not C, so figuring out if the bug is > in clamd or in libpthread will take someone other than me. > > I sort of meant to open up a bug about this; if switching to libthr works for > you, I guess I should. > > > Cheers, > > Craig. > ------ > _______________________________________________ > Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net > http://lurker.clamav.net/list/clamav-users.html > _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html
|