Having used clamd for several years without it ever crashing, I am now faced 
with it crashing quite often.  This follows me setting up the new sanesecurity 
system!

I used the old system, before that was stopped, without any problems (I am 
using 0.94.2).

I have written a simple perl script to monitor clamd and re-start it if it 
crashes because the Sanesecurity signatures are too useful to drop.

Th symptoms are quite strange.  I am running the fetchsanesigs and freshclam 
utilities under cron (at different times) and both generally work fine.  
However, sometimes clamd crashed when freshclam or fetchsanesigs tells clamd to 
reload.  clamd.log shows the 'Reading databases ...' message, but no more.  
clamd restarts without a problem every time it is restarted.

So, it does not look as if there is anything obviously wrong with the 
Sanesecurity signatures because clamd is happy to load them when it starts.  
fetchsanesigs uses the USR2 signal, while freshclam connects to the clamd 
socket to request the reload.  Both can cause the crash.

It would be nice to be able to log each signature file as it is being loaded, 
but that does not appear to be simple.  It did not work when I put a call to 
logg() in cli_load() (in readdb.c).

Can anyone give me a patch so that I can make clamd log each signature file as 
it loads it?  That way I could see if it always the same file which is being 
loaded when the crash occurs.

Help in diagnosing this would be much appreciated.

Regards,

Phil.
--------------------
Phil Chambers
Postmaster
University of Exeter
_______________________________________________
Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net
http://www.clamav.net/support/ml

Reply via email to