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

github: run asan build on fedora36 #5800

Merged
merged 1 commit into from Mar 16, 2024
Merged

Conversation

grondo
Copy link
Contributor

@grondo grondo commented Mar 16, 2024

Problem: The address sanitizer CI build started failing for unknown reason. The failure is occurring in the make program before even running any tests in 'make check.'

Take the following steps to attempt to address the issue:

  • The asan build currently runs on Fedora 34, which is getting old at this point. Update the sanitizer run to use Fedora 36.

  • Drop the LD_PRELOAD of the libasan library, which seems to be causing the failure in some unrelated programs not compiled with -fsanitize=address (a guess).

  • Add 'verify_asan_link_order=false' to ASAN_OPTIONS to avoid libasan complaints about link order. This is only important if malloc, free, etc., are replaced by libs. In that case libasan must be first in the link order. See https://github.com/google/sanitizers/wiki/AddressSanitizerFlags

  • Update -j2 to -j4 (github runners now have 4 vcpus)

Problem: The address sanitizer CI build started failing for unknown
reason. The failure is occurring in the make program before even running
any tests in 'make check.'

Take the following steps to attempt to address the issue:

 - The asan build currently runs on Fedora 34, which is getting old
   at this point. Update the sanitizer run to use Fedora 36.

 - Drop the LD_PRELOAD of the libasan library, which seems to be
   causing the failure in some unrelated programs not compiled with
   -fsanitize=address (a guess).

 - Add 'verify_asan_link_order=false' to ASAN_OPTIONS to avoid libasan
   complaints about link order. This is only important if malloc, free,
   etc., are replaced by libs. In that case libasan _must_ be first in
   the link order.
   See https://github.com/google/sanitizers/wiki/AddressSanitizerFlags

 - Update -j2 to -j4 (github runners now have 4 vcpus)
Copy link
Member

@garlick garlick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks!

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Merging #5800 (fbc96ce) into master (6f7b24e) will increase coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5800      +/-   ##
==========================================
+ Coverage   83.31%   83.36%   +0.05%     
==========================================
  Files         502      509       +7     
  Lines       80967    82479    +1512     
==========================================
+ Hits        67454    68760    +1306     
- Misses      13513    13719     +206     

see 175 files with indirect coverage changes

@mergify mergify bot merged commit 09f809e into flux-framework:master Mar 16, 2024
35 checks passed
@grondo
Copy link
Contributor Author

grondo commented Mar 16, 2024

Thanks! I was still seeing failures with this commit in another branch, not couldn't reproduce it here, so I've set MWP

@grondo grondo deleted the asan-update branch March 16, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants