Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 927361

Summary: app-antivirus/clamav-1.0.5 fails tests on arm: AssertionError: assert -7 == 1 where -7 = CmdResult(ec=-7, out='', err='LibClamAV Warning: PNG: Unexpected early end-of-file.\n').ec
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Antivirus Team <antivirus>
Status: CONFIRMED ---    
Severity: normal CC: arm, kangie, matoro_gentoo, mjo
Priority: Normal    
Version: unspecified   
Hardware: ARM   
OS: Linux   
See Also: https://github.com/Cisco-Talos/clamav/issues/1208
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 926021    
Attachments: build.log and emerge --info

Description matoro archtester 2024-03-20 15:29:48 UTC
Note that error -7 -> E2BIG so this could be a 32-bit data type size issue.

1/6 Test #6: sigtool ..........................   Passed    8.04 sec
2/6 Test #2: libclamav_rust ...................   Passed   15.41 sec
3/6 Test #3: clamscan .........................***Failed   23.50 sec
4/6 Test #4: clamd ............................   Passed   25.37 sec
5/6 Test #1: libclamav ........................   Passed   34.79 sec
6/6 Test #5: freshclam ........................   Passed   50.76 sec

83% tests passed, 1 tests failed out of 6

Total Test time (real) =  50.82 sec

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

=========================================================== short test summary info ===========================================================
FAILED clamscan/heuristics_test.py::TC::test_allmatch - AssertionError: assert -7 == 1
FAILED clamscan/heuristics_test.py::TC::test_allmatch_precedence - AssertionError: assert -7 == 1
FAILED clamscan/heuristics_test.py::TC::test_hidden_by_strong_indicator - AssertionError: assert -7 == 1
FAILED clamscan/heuristics_test.py::TC::test_only_heur - AssertionError: assert -7 == 1

Reproducible: Always
Comment 1 matoro archtester 2024-03-20 15:30:42 UTC
Created attachment 888007 [details]
build.log and emerge --info
Comment 2 Matt Jolly gentoo-dev 2024-03-21 21:46:54 UTC
Have raised this issue upstream in the linked issue that looks a lot like this, just not causing test failures apparently?
Comment 3 Matt Jolly gentoo-dev 2024-03-21 22:28:43 UTC
We can probably backport https://github.com/Cisco-Talos/clamav/commit/00b78531e3b37e1881a13024559bfaa4ad4d6087 to resolve this issue. I'm hopeful that we can get a patch release out of the bug report though.