VirusTotal / yara

The pattern matching swiss knife
https://virustotal.github.io/yara/
BSD 3-Clause "New" or "Revised" License
7.93k stars 1.42k forks source link

Test Failure - test-rules: Assertion failed: status == SIGALRM (tests/test-rules.c: test_process_scan: 3524) #2045

Open orbea opened 4 months ago

orbea commented 4 months ago

Describe the bug

The test-rules test fails.

test-rules.log:

--- PASS 1 ---
Assertion failed: status == SIGALRM (tests/test-rules.c: test_process_scan: 3524)
Aborted 
FAIL test-rules (exit status: 134)
test-rules.log lines 1-4/4 (END)

Which points to this line. https://github.com/VirusTotal/yara/blob/8fa55cde4c0cde8a1ba4ced1c131827eb4005f0d/tests/test-rules.c#L3524

To Reproduce

make check

Expected behavior

Tests should pass.

Please complete the following information:

Additional context

Occurs on both my glibc and musl systems and with --without-crypto.

test-rules.trs:

:test-result: FAIL
:global-test-result: FAIL
:recheck: yes
:copy-in-global-log: yes
ant1 commented 4 months ago

On FreeBSD I have similar test failures, this is with version 4.5.0:

Assertion failed: (status == SIGALRM), function test_process_scan, file tests/test-rules.c, line 3551.

And after commenting it out:

Assertion failed: (status == SIGALRM), function test_process_scan, file tests/test-rules.c, line 3572.