ashvardanian / ashvardanian/StringZilla

Bug: Many tests fail

Open
#315 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
3.6k
Forks
135
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

```
Start 1: stringzilla_bench_find_cpp20
Start 2: stringzilla_bench_sequence_cpp20
Start 3: stringzilla_bench_token_cpp20
Start 4: stringzilla_bench_unicode_cpp20
Start 5: stringzilla_bench_container_cpp20
Start 6: stringzilla_bench_memory_cpp20
Start 7: stringzillas_bench_similarities_cpp20
1/19 Test #1: stringzilla_bench_find_cpp20 ............Subprocess aborted***Exception: 0.01 sec
2/19 Test #2: stringzilla_bench_sequence_cpp20 ........Subprocess aborted***Exception: 0.01 sec
3/19 Test #3: stringzilla_bench_token_cpp20 ...........Subprocess aborted***Exception: 0.01 sec
4/19 Test #4: stringzilla_bench_unicode_cpp20 .........Subprocess aborted***Exception: 0.01 sec
5/19 Test #5: stringzilla_bench_container_cpp20 .......Subprocess aborted***Exception: 0.01 sec
6/19 Test #6: stringzilla_bench_memory_cpp20 ..........Subprocess aborted***Exception: 0.00 sec
Start 8: stringzillas_bench_fingerprints_cpp20
Start 9: stringzilla_test_cpp11
Start 10: stringzilla_test_cpp14
Start 11: stringzilla_test_cpp17
Start 12: stringzilla_test_cpp20
Start 13: stringzillas_test_cpp17
7/19 Test #7: stringzillas_bench_similarities_cpp20 ...***Failed 0.01 sec
8/19 Test #8: stringzillas_bench_fingerprints_cpp20 ...***Failed 0.00 sec
9/19 Test #9: stringzilla_test_cpp11 ..................Bus error***Exception: 0.00 sec
10/19 Test #10: stringzilla_test_cpp14 ..................Bus error***Exception: 0.00 sec
11/19 Test #11: stringzilla_test_cpp17 ..................Bus error***Exception: 0.00 sec
Start 14: stringzillas_test_cpp20
Start 15: stringzilla_test_cpp20_serial
Start 16: stringzilla_test_cpp20_westmere
Start 17: stringzilla_test_cpp20_goldmont
Start 18: stringzilla_test_cpp20_haswell
12/19 Test #12: stringzilla_test_cpp20 ..................Bus error***Exception: 0.01 sec
Start 19: stringzilla_test_cpp20_ice
13/19 Test #17: stringzilla_test_cpp20_goldmont .........Bus error***Exception: 0.01 sec
14/19 Test #19: stringzilla_test_cpp20_ice ..............***Exception: Illegal 0.00 sec
15/19 Test #15: stringzilla_test_cpp20_serial ........... Passed 5.01 sec
16/19 Test #16: stringzilla_test_cpp20_westmere ......... Passed 5.09 sec
17/19 Test #18: stringzilla_test_cpp20_haswell .......... Passed 6.13 sec
```

goldmont and ice failures seem to be due to missing assembly commands for these architectures.

Version: 4.6.1
FreeBSD 15 STABLE

### Steps to reproduce

run test: I am running tests that cmake runs by default when tests are enabled.

### Expected behavior

n/a

### StringZilla version

4.6.1

### Operating System

FreeBSD 15

### Hardware architecture

x86

### Which interface are you using?

C implementation

### Contact Details

_No response_

### Are you open to being tagged as a contributor?

- [ ] I am open to being mentioned in the project `.git` history as a contributor

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Research direction

Reproduce the default CMake test run on FreeBSD 15 x86 and compare the failing benchmark and test targets with the passing serial, westmere, and haswell targets. Inspect the architecture-specific assembly command configuration mentioned in the report; done means the default test suite no longer aborts, reports bus errors, or fails for the affected targets.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cmake, cpp
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.