Skip to content

feat: implement ASAN and UBSAN #865

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

feat: implement ASAN and UBSAN #865

wants to merge 4 commits into from

Conversation

wdconinc
Copy link
Contributor

Briefly, what does this PR introduce?

This PR adds ASAN and UBSAN support to the ePIC geometry. It took some tweaking similar to https://gitlab.cern.ch/lhcb/Detector/-/merge_requests/336 because DD4hep's listcomponents requires preload of the required ASAN and UBSAN libraries, but these cannot be preloaded all over the place since it affects compiler feature detection.

What kind of change does this PR introduce?

  • Bug fix (issue #__)
  • New feature (issue: memory leaks in ePIC geometry)
  • Documentation update
  • Other: __

Please check if this PR fulfills the following:

  • Tests for the changes have been added
  • Documentation has been added / updated
  • Changes have been communicated to collaborators

Does this PR introduce breaking changes? What changes might users need to make to their code?

No.

Does this PR change default behavior?

No.

@github-actions github-actions bot added the topic: infrastructure Regarding build system, CI, CD label May 12, 2025
@@ -14,6 +14,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
ASAN_OPTIONS: suppressions=${{ github.workspace }}/.github/asan.supp:malloc_context_size=20:detect_leaks=1:verify_asan_link_order=0:detect_stack_use_after_return=1:detect_odr_violation=1:new_delete_type_mismatch=0:intercept_tls_get_addr=0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The verify_asan_link_order flag is not inherited by workflows called from this, e.g. convert-to-gdml etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: infrastructure Regarding build system, CI, CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant