[Pkg-clamav-devel] Bug#515798: Bug#515798: Bug#515798: Bug#515798: clamav: clamdscan fails to connect to clamd

Stephen Gran sgran at debian.org
Sun Mar 8 12:20:02 UTC 2009


This one time, at band camp, Mikołaj Menke said:
> ##############################################################
> Program received signal SIGINT, Interrupt.
> [Switching to Thread 0xb7cc48c0 (LWP 488)]
> 0xb7f6b410 in ?? ()
> (gdb) bt
> #0  0xb7f6b410 in ?? ()
> #1  0xbff38498 in ?? ()
> #2  0x00000007 in ?? ()
> #3  0xbff37ea0 in ?? ()
> #4  0xb7e2d2c8 in accept () from /lib/i686/cmov/libpthread.so.0
> #5  0x0804f76c in acceptloop_th (socketds=0xbff38554, nsockets=1,
> engine=0x8058f48, dboptions=10, copt=0x80575d0) at server-th.c:593
> #6  0x0804d76e in main (argc=7, argv=0x0) at clamd.c:479
> ##############################################################

So this just shows clamd went into it's accept loop, and found viruses
until you stopped it.  This is the normal behavior, unfortunately, and
not something that helps me to figure out why you get no error message
out of clamdscan, when I do every single time I try to reproduce this
issue.

> miki at menek(12:06:08)~$clamdscan /usr/local/share/eicar/eicar.com
> miki at menek(12:06:08)~$clamdscan /usr/local/share/eicar/eicar.com
> miki at menek(12:06:10)~$clamdscan /usr/local/share/eicar/eicar.com
> miki at menek(12:06:10)~$clamdscan /usr/local/share/eicar/eicar.com
> miki at menek(12:06:11)~$clamdscan /usr/local/share/eicar/eicar.com
> ##############################################################
> 
> As you can see for the first four tests it was OK, but then the problem
> occurs.
> That is all I could do for now. If you need more information just let me
> know and give more instructions please.

Please send the output of `which clamdscan`.  I am having a hard time
seeing how clamdscan can be failing to connect to clamd and not logging
anything - I've just double checked the code, and it always raises an
error on connection issues.  The other thing I'd like to see is the
output of

strace -o strace.out -ff -s 500 clamdscan /usr/local/share/eicar/eicar.com

This should only produce strace.out (clamdscan doesn't fork), but if
there are any strace.out.* files, please send them as well.

Cheers,
-- 
 -----------------------------------------------------------------
|   ,''`.                                            Stephen Gran |
|  : :' :                                        sgran at debian.org |
|  `. `'                        Debian user, admin, and developer |
|    `-                                     http://www.debian.org |
 -----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-clamav-devel/attachments/20090308/074fd5ac/attachment.pgp 


More information about the Pkg-clamav-devel mailing list