New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.0.0-rc: Freshclam fails download database files #736
Comments
|
I remembered there are unit tests and tried them. 0.105.1 passes all tests. But 1.0.0-rc fails 2 tests. Full test log: LastTest.log |
|
Thanks @yasuhirokimura for checking out the release candidate so promptly. The issue you're seeing is very unexpected. I had observed the message "Can't verify database integrity" once before in example program tests on 32bit linux, but never with freshclam or libclamav. I will investigate this as soon as possible and get back to you with whatever I find. |
|
@micahsnyder If you need more information, feel free to request me. |
|
I think I understand what is happening now. FreeBSD ClamAV ports uses TomsFastMath from FreeBSD package instead of bundled one. If I switch to use the latter, 1.0.0-rc passes all unit tests. I checked repository of ClamAV and found following commit. Original TomsFastMath doesn't include this change. So it is natual the problem happens if external one is used. Since 1.0.0-rc requires above change to TomsFastMath, it may be better to remove |
|
Per conversations in the mailing list, and from my investigation -- I don't believe the TomsFastMath change is related. The issue I think was coincidentally not present when you tested after the change. It appears the failure occurs when updating However, your idea to disable the external TomsFastMath library option may be unrelated, but is still valid. The Authenticode certificate verification feature will fail with an external TomsFastMath library that hasn't been modified to support larger floating point numbers, as it has been failing in 0.105.0/.1. I will split this off into a separate issue and and then create a fix for that. |
Describe the bug
I'm maintainer of FreeBSD ClamAV port. Since release candidate of ClamAV 1.0.0 is released, I tried updating ClamAV port from 0.105.1 to 1.0.0-rc on my private copy of FreeBSD ports repository.
https://github.com/yasuhirokimura/freebsd-ports/tree/clamav/security/clamav
I only change the source archive file to use from clamav-0.105.1.tar.gz to clamav-1.0.0-rc.tar.gz, and don't change anything else (build options, build and/or runtime dependency, etc.). And with this simple change 1.0.0-rc is built successfuly on FreeBSD 13.1-RELEASE amd64 environment.
Next I installed 1.0.0-rc on clean installed FreeBSD 13.1-RELEASE amd64 system and tested if it works fine. But unfortunately I faced problem. If I run freshclam, it fails to download database files as following.
How to reproduce the problem
pkg install gitcd /usr/ports; git clone -b clamav https://github.com/yasuhirokimura/freebsd-ports.git .pkg-static delete -af.cd /usr/ports/security/clamav; make BATCH=yes install./usr/local/etc/clamd.conf.sampleand/usr/local/etc/freshclam.conf.sampleto/usr/local/etc/clamd.confand/usr/local/etc/freshclam.confrespectively.clamav_freshclam_enable="YES"to/etc/rc.conf.service clamav-freshclam start./var/log/clamav/freshclam.log.The text was updated successfully, but these errors were encountered: