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

Workaround ASAN bug ignoring RPATH #5388

Merged
merged 2 commits into from
Mar 25, 2024
Merged

Conversation

jantonguirao
Copy link
Contributor

Category:

Other

Description:

Worksaround a bug in ASAN, so that we can run our sanitizer tests

Additional information:

Affected modules and functionalities:

Sanitizer test run

Key points relevant for the review:

Tests:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

Signed-off-by: Joaquin Anton <janton@nvidia.com>
@@ -84,12 +84,16 @@ enable_sanitizer() {
gcc -shared -fPIC $topdir/qa/test_wrapper_post.c -o /tmp/post.so
export OLD_LD_PRELOAD=${LD_PRELOAD}
export LD_PRELOAD="/tmp/pre.so /usr/lib/x86_64-linux-gnu/libasan.so /tmp/glibc_fix.so /tmp/post.so /usr/lib/x86_64-linux-gnu/libstdc++.so /tmp/libfakeclose.so"
# Workaround for bug in asan ignoring RPATHs https://bugzilla.redhat.com/show_bug.cgi?id=1449604
export OLD_LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
Copy link
Contributor

Choose a reason for hiding this comment

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

We already use OLD_LD_LIBRARY_PATH in L140. This may collide.

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [13693014]: BUILD STARTED

@JanuszL JanuszL self-assigned this Mar 21, 2024
Signed-off-by: Joaquin Anton <janton@nvidia.com>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [13693208]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [13693208]: BUILD FAILED

@jantonguirao
Copy link
Contributor Author

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [13719133]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [13719133]: BUILD PASSED

@jantonguirao jantonguirao merged commit bafab17 into NVIDIA:main Mar 25, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants