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

Fix ASAN build #5492

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

jantonguirao
Copy link
Contributor

@jantonguirao jantonguirao commented May 30, 2024

Category:

Other Fixes tests with sanitizer builds

Description:

Correctly propagate LD_PRELOAD arguments passed prior to installing the DALI video plugin

Additional information:

Affected modules and functionalities:

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

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15429280]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15429280]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15433058]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15433058]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15437625]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15437625]: BUILD FAILED

Signed-off-by: Joaquin Anton <[email protected]>
else()
set(NEW_LD_PRELOAD "${cuda_LIBRARY}")
endif()
string(REPLACE " " ":" NEW_LD_PRELOAD "${NEW_LD_PRELOAD}")
Copy link
Collaborator

@szkarpinski szkarpinski May 31, 2024

Choose a reason for hiding this comment

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

Why can't we just set(NEW_LD_PRELOAD "$ENV{LD_PRELOAD}:${cuda_LIBRARY}") to have the colon already there? Also, this will break if somebody has a space in their LD_PRELOAD or cuda path/

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 thing is that the LD_PRELOAD has a space, and my command below doesn't like it. So I am using an alternative way to separate paths.

Signed-off-by: Joaquin Anton <[email protected]>
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [15459175]: BUILD STARTED

@jantonguirao jantonguirao merged commit b5603a7 into NVIDIA:main May 31, 2024
5 of 6 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