Bug 1909184 - clamdscan in 0.103.0 version seems to consume too much memory
Summary: clamdscan in 0.103.0 version seems to consume too much memory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: clamav
Version: epel7
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Robert Scheck
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-18 14:31 UTC by Danilo Godec
Modified: 2021-03-23 02:15 UTC (History)
13 users (show)

Fixed In Version: clamav-0.103.1-1.fc33 clamav-0.103.1-1.fc32 clamav-0.103.1-3.el8 clamav-0.103.1-3.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-21 01:20:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Danilo Godec 2020-12-18 14:31:06 UTC
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:

Comment 1 Sergio Basto 2020-12-18 20:55:42 UTC
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.

Comment 2 Fedora Update System 2021-02-18 02:51:58 UTC
FEDORA-2021-a61c57335d has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a61c57335d

Comment 3 Fedora Update System 2021-02-18 02:52:25 UTC
FEDORA-2021-fdd780c9bb has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-fdd780c9bb

Comment 4 Fedora Update System 2021-02-19 01:59:41 UTC
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.

Comment 5 Fedora Update System 2021-02-19 02:03:34 UTC
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.

Comment 6 Fedora Update System 2021-02-21 01:20:07 UTC
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.

Comment 7 Fedora Update System 2021-02-26 23:35:20 UTC
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.

Comment 8 Fedora Update System 2021-02-27 00:42:32 UTC
FEDORA-EPEL-2021-10c83ba6bf has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-10c83ba6bf

Comment 9 Fedora Update System 2021-02-27 00:43:14 UTC
FEDORA-EPEL-2021-03e142a515 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2021-03e142a515

Comment 10 Fedora Update System 2021-02-27 21:28:09 UTC
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.

Comment 11 Fedora Update System 2021-02-27 22:09:58 UTC
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.

Comment 12 Fedora Update System 2021-03-08 20:31:51 UTC
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.

Comment 13 Fedora Update System 2021-03-08 20:42:45 UTC
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.

Comment 14 Fedora Update System 2021-03-23 01:52:40 UTC
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.

Comment 15 Fedora Update System 2021-03-23 02:15:47 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.