-
Notifications
You must be signed in to change notification settings - Fork 398
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
Try to respect RPATHS of calling dlopen modules with dlinfo #549
Conversation
837e7b2
to
60846e3
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #549 +/- ##
==========================================
- Coverage 92.99% 92.89% -0.10%
==========================================
Files 94 94
Lines 11445 11470 +25
Branches 2114 2114
==========================================
+ Hits 10643 10655 +12
- Misses 802 815 +13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
7fe623e
to
bd0a8bf
Compare
We've decided to keep this option in our back pocket, but for now we're going to move forward with interposing dlsym instead of dlopen. |
bd0a8bf
to
6d2e143
Compare
adeeb60
to
a81955c
Compare
One downside I just noticed for this approach is that we're screwing up the contract for I'm not sure that's worth trying to work around, but it's worth noting, at least... |
We can clear the possible error before calling the real |
2c297ce
to
875943c
Compare
@godlygeek Btw, I made some experiments regarding the null values of
same if you do
maybe we should bail out like I did before on |
875943c
to
ca420a4
Compare
I don't think it's possible to get Checking the glibc code, it looks like it never assigns a null pointer to |
I pushed a fixup for that |
15caf46
to
b260c03
Compare
This commit is just for backup on our main strategy of using dlinfo instead of dlopen. Signed-off-by: Pablo Galindo <[email protected]>
b260c03
to
7e8b4b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I've squashed the fixup and slightly reworded the news entry.
This commit is just for backup on our main strategy of using dlinfo
instead of dlopen.
Issue number of the reported bug or feature request: #
Describe your changes
A clear and concise description of the changes you have made.
Testing performed
Describe the testing you have performed to ensure that the bug has been addressed, or that the new feature works as planned.
Additional context
Add any other context about your contribution here.