thanks for the response;
we are experiancing this issues on a fresh install VM, a Java application VM & 
a Jump server with gnome. a mix of 2 and 4 coure VM's with 2,4 & 6GB RAM

[root@xxxxxxx<file:///root@x>]# uname -a
Linux xxxxxxxxxxxxxx 3.10.0-1062.1.1.el7.x86_64 #1 SMP Fri Sep 13 22:55:44 UTC 
2019 x86_64 x86_64 x86_64 GNU/Linux

[root@xxxxx<file:///root@x> ]# cat /etc/centos-release
CentOS Linux release 7.7.1908 (Core)

# Config
LogFile /var/log/clamav/clamav.log
LogFileUnlock yes
LogFileMaxSize 10M
LogTime yes
LogSyslog no
LogRotate no
ExtendedDetectionInfo yes
PidFile /var/run/clamd.scan/clamd.pid
DatabaseDirectory /var/lib/clamav
LocalSocket /var/run/clamd.scan/clamd.sock
LocalSocketGroup virusgroup
LocalSocketMode 666
FixStaleSocket yes
MaxThreads 10
ReadTimeout 180
SendBufTimeout 200
MaxQueue 100
ExcludePath ^/proc/
ExcludePath ^/sys/
ExcludePath ^/root/
ExcludePath ^/var\/lib\/openvas\/plugins/
ExcludePath ^/opt\/metasploit/
ExcludePath ^/var\/mqm/
ExcludePath ^/var\/lib\/mysql/
ExcludePath ^/glusterfs/
ExcludePath ^/mnt/
ExcludePath ^/nfs/
ExcludePath ^/tmp\/clamav-.*/
MaxDirectoryRecursion 20
FollowDirectorySymlinks no
FollowFileSymlinks no
SelfCheck 600
ExitOnOOM yes
User root
ScanMail yes
ScanHTML yes
ScanOLE2 yes
ScanArchive yes
ForceToDisk no
ScanOnAccess yes
OnAccessIncludePath /bin
OnAccessIncludePath /boot
OnAccessIncludePath /etc
OnAccessIncludePath /home
OnAccessIncludePath /media
OnAccessIncludePath /mnt
OnAccessIncludePath /opt
OnAccessIncludePath /root
OnAccessIncludePath /sbin
OnAccessIncludePath /sftp
OnAccessIncludePath /usr
OnAccessExcludePath /opt/tomcat/.m2/repository
OnAccessExcludeRootUID yes
OnAccessMaxFileSize 5M
OnAccessDisableDDD no
OnAccessExtraScanning yes
DisableCertCheck no


I've got a few more bits of information;
- the FD it is missing is for 'anon_inode:inotify'

healthy system:
[root@xxxxxxxx<file:///root@x> ]# ls -l  /proc/226347/fd
total 0
lr-x------. 1 root root 64 Nov  8 06:41 0 -> /dev/null
l-wx------. 1 root root 64 Nov  8 06:41 1 -> /dev/null
l-wx------. 1 root root 64 Nov  8 06:41 10 -> pipe:[2543521]
lrwx------. 1 root root 64 Nov  8 06:41 11 -> anon_inode:[fanotify]
lr-x------. 1 root root 64 Nov  8 06:41 12 -> anon_inode:inotify
l-wx------. 1 root root 64 Nov  8 06:41 2 -> /dev/null
lr-x------. 1 root root 64 Nov  8 06:41 3 -> /var/lib/sss/mc/initgroups
lrwx------. 1 root root 64 Nov  8 06:41 4 -> socket:[2543359]
l-wx------. 1 root root 64 Nov  8 03:26 5 -> /var/log/clamav/clamav.log
lrwx------. 1 root root 64 Nov  8 06:41 6 -> socket:[2544261]
lr-x------. 1 root root 64 Nov  8 06:41 7 -> pipe:[2543520]
l-wx------. 1 root root 64 Nov  8 06:41 8 -> pipe:[2543520]
lr-x------. 1 root root 64 Nov  8 06:41 9 -> pipe:[2543521]


Broken system:
[root@xxxxxxxxxx<file:///root@x> ]# ls -l /proc/33492/fd
total 0
lr-x------. 1 root root 64 Nov  7 10:58 0 -> /dev/null
l-wx------. 1 root root 64 Nov  7 10:58 1 -> /dev/null
l-wx------. 1 root root 64 Nov  7 10:58 10 -> pipe:[788328]
lrwx------. 1 root root 64 Nov  7 10:58 11 -> anon_inode:[fanotify]
lr-x------. 1 root root 64 Nov  5 09:52 13 -> /etc/clamd.d/scan.conf
lrwx------. 1 root root 64 Nov  5 09:52 14 -> 
/tmp/clamav-46ff34ef6c75cb2abc0435d1056ee697.tmp
l-wx------. 1 root root 64 Nov  7 10:58 2 -> /dev/null
lr-x------. 1 root root 64 Nov  7 10:58 3 -> /var/lib/sss/mc/initgroups
lrwx------. 1 root root 64 Nov  7 10:58 4 -> socket:[790831]
l-wx------. 1 root root 64 Nov  7 10:58 5 -> /var/log/clamav/clamav.log
lrwx------. 1 root root 64 Nov  7 10:58 6 -> socket:[790832]
lr-x------. 1 root root 64 Nov  7 10:58 7 -> pipe:[788327]
l-wx------. 1 root root 64 Nov  7 10:58 8 -> pipe:[788327]
lr-x------. 1 root root 64 Nov  7 10:58 9 -> pipe:[788328]



thanks
Tim



-----Original Message-----
From: G.W. Haywood via clamav-users 
<clamav-users@lists.clamav.net<mailto:%22g.w.%20haywood%20via%20clamav-users%22%20%3cclamav-us...@lists.clamav.net%3e>>
Reply-To: ClamAV users ML 
<clamav-users@lists.clamav.net<mailto:clamav%20users%20ml%20%3cclamav-us...@lists.clamav.net%3e>>
To: J.R. via clamav-users 
<clamav-users@lists.clamav.net<mailto:%22j.r.%20via%20clamav-users%22%20%3cclamav-us...@lists.clamav.net%3e>>
Cc: G.W. Haywood 
<cla...@jubileegroup.co.uk<mailto:%22g.w.%20haywood%22%20%3ccla...@jubileegroup.co.uk%3e>>
Subject: Re: [clamav-users] strace - select(13, [12], NULL, NULL, NULL) = -1 
EBADF (Bad file descriptor) <0.000017>
Date: Thu, 07 Nov 2019 15:55:29 +0000


Hi there,


On Thu, 7 Nov 2019, J.R. via clamav-users wrote:


Which brought clamd back to life and the system load returned to

normal. no idea is this is a OS bug, a ClamAV bug or some kind of user

error, any help here will be appreciated.


What version of ClamAV? What OS? What customization / edits to config

files have you made?


And what are you scanning???



[Winner of the 2018 Consumer Credit Awards]
_______________________________________________

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml

Reply via email to