Cisco-Talos / clamav

ClamAV - Documentation is here: https://docs.clamav.net
https://www.clamav.net/
GNU General Public License v2.0
4.15k stars 680 forks source link

[BUG] 1.0.5: Test failures on PPC: AssertionError: Expected item `Test.Import.Hash.UNOFFICIAL FOUND` not found #1209

Open Kangie opened 5 months ago

Kangie commented 5 months ago

Describe the bug

app-antivirus/clamav-1.0.5 fails tests on ppc: AssertionError: Expected item Test.Import.Hash.UNOFFICIAL FOUND not found in output:

1/6 Test #6: sigtool ..........................   Passed    2.13 sec
2/6 Test #2: libclamav_rust ...................   Passed    7.14 sec
3/6 Test #3: clamscan .........................***Failed   11.22 sec
4/6 Test #1: libclamav ........................   Passed   11.85 sec
5/6 Test #4: clamd ............................   Passed   16.72 sec
6/6 Test #5: freshclam ........................   Passed   44.16 sec

83% tests passed, 1 tests failed out of 6

Total Test time (real) =  44.19 sec

The following tests FAILED:
      3 - clamscan (Failed)
Errors while running CTest

=========================================================== short test summary info ===========================================================
FAILED clamscan/allmatch_test.py::TC::test_exe_imphash_plus_zipsfx - AssertionError: Expected item `Test.Import.Hash.UNOFFICIAL FOUND` not f...
FAILED clamscan/allmatch_test.py::TC::test_many_sigs - AssertionError: Expected item `Test.Import.Hash.UNOFFICIAL FOUND` not found in output:
FAILED clamscan/allmatch_test.py::TC::test_pe_allmatch - AssertionError: Expected item `Test.GenSig.IMP_3of6_SHA1_FIXED.UNOFFICIAL FOUND` no...
FAILED clamscan/allmatch_test.py::TC::test_regression_imphash_nosize - AssertionError: assert 0 == 1
FAILED clamscan/assorted_test.py::TC::test_pe_cert_block - AssertionError: Expected item `Test.GenSig.IMP_3of6_SHA1_FIXED.UNOFFICIAL FOUND` ...
======================================================== 5 failed, 44 passed in 9.52s =========================================================

Reproducible: Always

How to reproduce the problem

Attempt to run tests (using the Gentoo ebuild?) on ppc32 hardware!

Attachments

build.log.txt

See Also

https://bugs.gentoo.org/927362

micahsnyder commented 5 months ago

Related bug: https://github.com/Cisco-Talos/clamav/issues/598

Tangent, @opoplawski had a different failure with ClamAV 0.104 on PPC. IDK if it is still an issue. Seems like it didn't fail for you. https://github.com/Cisco-Talos/clamav/issues/598

Kangie commented 1 month ago

Related bug: #598

Tangent, @opoplawski had a different failure with ClamAV 0.104 on PPC. IDK if it is still an issue. Seems like it didn't fail for you. #598

Not sure that's related - this is ppc (32 bit) not ppc64. Doesn't really help when we still don't have hardware to test on.

I'll eventually try and reproduce this in QEMU since my PPC hardware is not healthy. Hopefully we can find a known working version that isn't too far back and bisect from there

micahsnyder commented 1 month ago

Not sure that's related - this is ppc (32 bit) not ppc64.

Oh! My mistake.