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

Test binaries are relocatable #162

Open
jakirkham opened this issue Mar 13, 2025 · 1 comment
Open

Test binaries are relocatable #162

jakirkham opened this issue Mar 13, 2025 · 1 comment

Comments

@jakirkham
Copy link
Member

As observed in a recent issue ( rapidsai/cudf#18251 ), it is possible to create binaries that are not relocatable. Or more accurately that when trying to relocate the binaries, they can become corrupted. The issues from these corrupted binaries can be quite hairy to diagnose. To prevent this, it would be good to test that the binaries we produce are relocatable. Mostly this does happen as part of building Conda packages and testing them. However as seen in the issue above, this testing isn't always sufficient. Particularly if the relevant code is in a header-only library and the library that consumes it is in another project (like RMM, RAFT, KvikIO, etc.).

One approach to testing would be to build tests of a header-only library as a shared object that we package and then run the tests on. This would help smoke out any issues due to relocation of library. We may want to do additional auditing on this package to check for corruption, which we could also flag in CI.

@vyasr
Copy link
Contributor

vyasr commented Mar 13, 2025

cf #160

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

No branches or pull requests

2 participants