Skip to content
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

Adds ASAN build to GH actions #239

Merged
merged 7 commits into from
Nov 29, 2024
Merged

Conversation

ivarprudnikov
Copy link
Member

@ivarprudnikov ivarprudnikov commented Nov 28, 2024

Reviving disabled address sanitization ASAN as seen in https://github.com/microsoft/scitt-ccf-ledger/blob/044cd546914f86a0fe524223eaa1dbad50cf9f83/.pipelines/azure-pipelines.yml

This is similar to what CCF does https://github.com/microsoft/CCF/blob/main/.github/workflows/long-test.yml

ASAN depends on it being enabled in CCF (when using cmake functions add_ccf_app or add_san). For this CCF needs to be built from source with -DSAN flag after which subsequent scitt ledger build will have ASAN enabled and ready to be evaluated through unit and functional tests.

@ivarprudnikov ivarprudnikov added the run-long-test Run ASAN build and test label Nov 28, 2024
@ivarprudnikov ivarprudnikov marked this pull request as ready for review November 28, 2024 18:19
@achamayou
Copy link
Member

@ivarprudnikov we saw this

SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/__w/scitt-ccf-ledger/scitt-ccf-ledger/build/app/unit_tests+0xee7502) (BuildId: f0581d7eb5a3b509c80ae15b198957b9944274ee) in free
==10045==HINT: if you don't care about these errors you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0

in CCF too (microsoft/CCF#5118), and it was fixed by upgrading doctest, so this may be worth looking into.

@ivarprudnikov ivarprudnikov force-pushed the feat/enable-address-sanitizer branch from c50236d to ebb8f39 Compare November 29, 2024 14:29
@ivarprudnikov ivarprudnikov requested a review from a team as a code owner November 29, 2024 14:29
@ivarprudnikov ivarprudnikov merged commit 97799de into main Nov 29, 2024
9 checks passed
@ivarprudnikov ivarprudnikov deleted the feat/enable-address-sanitizer branch November 29, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-long-test Run ASAN build and test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants