Description of problem: With version 0.103.0, clamdscan seems to require a lot more memory than before and it grows as it's running - if the file list is long enough, it eventually exhausts all of it and gets killed. With older versions (0.102.0 included), clamdscan uses a fix amount of memory and doesn't increase throughout the entire run (no matter how long the file list is). Version-Release number of selected component (if applicable): 0.103.0 How reproducible: Every time. Steps to Reproduce: 1. Make a long list of files - files can be tiny and it can even be the same file: # for i in {1..300000}; do echo /etc/resolv.conf ; done > test_list I found the limit on a 4GB VM to be about 250000 2. Run clamdscan: # /usr/bin/clamdscan --fdpass --infected --no-summary -f test_list 3. Observe clamdscan memory usage in 'top' grow - if the file list is long enough, it will die eventually. Actual results: clamdscan memory usage grows and it gets killed after a while: [root@test-rig ~]# /usr/bin/clamdscan --fdpass --infected --no-summary -f test_list est_list Killed Expected results: clamdscan should not use all the memory and shoould not get killed Additional info:
Hi, thanks for the report , before push 0.103.0 to epel7 updates stable, we tested on all fedora branches and we haven't complains . Please report it upstream or comment on https://bugzilla.clamav.net/show_bug.cgi?id=12648 , as packager we don't have much to do . I see that report is already yours thank you.
FEDORA-2021-a61c57335d has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a61c57335d
FEDORA-2021-fdd780c9bb has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fdd780c9bb
FEDORA-2021-fdd780c9bb has been pushed to the Fedora 32 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-fdd780c9bb` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-fdd780c9bb See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-a61c57335d has been pushed to the Fedora 33 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a61c57335d` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a61c57335d See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-a61c57335d has been pushed to the Fedora 33 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-fdd780c9bb has been pushed to the Fedora 32 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2021-10c83ba6bf has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-10c83ba6bf
FEDORA-EPEL-2021-03e142a515 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-03e142a515
FEDORA-EPEL-2021-03e142a515 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-03e142a515 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2021-10c83ba6bf has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-10c83ba6bf See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2021-a847c261f5 has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-a847c261f5 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2021-7265da6992 has been pushed to the Fedora EPEL 7 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-7265da6992 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2021-a847c261f5 has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-EPEL-2021-7265da6992 has been pushed to the Fedora EPEL 7 stable repository. If problem still persists, please make note of it in this bug report.