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

avoid loading duplicate libraries #42058

Merged
merged 1 commit into from
Sep 2, 2021
Merged

avoid loading duplicate libraries #42058

merged 1 commit into from
Sep 2, 2021

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Aug 30, 2021

We will not use the duplicate, so best to try to avoid loading it.

@vtjnash vtjnash added backport 1.6 Change should be backported to release-1.6 backport 1.7 labels Aug 30, 2021
@vtjnash vtjnash requested a review from staticfloat August 30, 2021 17:27
We will not use the duplicate, so best to try to avoid loading it.
@vtjnash vtjnash force-pushed the jn/loader_duplicates branch from f2ec633 to 1de1dcd Compare August 30, 2021 17:28
@staticfloat
Copy link
Member

Why do we need this? The list of libraries that get loaded this way should be quite short, and never share a basename.

@vtjnash
Copy link
Member Author

vtjnash commented Aug 30, 2021

Some people pre-load libraries, and this helps avoid confusion

@staticfloat
Copy link
Member

I don't think we should change our behavior by trying to detect LD_PRELOAD. I feel that will cause a lot more confusion than it will solve.

@vtjnash
Copy link
Member Author

vtjnash commented Aug 30, 2021

It also seemed to be one of the possible contributing factors to #40246

@staticfloat
Copy link
Member

Why do you think this is a contributing factor? I don't see a connection.

@vtjnash
Copy link
Member Author

vtjnash commented Sep 2, 2021

There's some reports of NULL pointers appearing where they are unexpected, which often is a sign of loading a duplicate library, resulting in the the wrong one being used. This PR solves that.

@staticfloat staticfloat merged commit c53669f into master Sep 2, 2021
@staticfloat staticfloat deleted the jn/loader_duplicates branch September 2, 2021 18:21
KristofferC pushed a commit that referenced this pull request Sep 2, 2021
We will not use the duplicate, so best to try to avoid loading it.

(cherry picked from commit c53669f)
@KristofferC KristofferC mentioned this pull request Sep 3, 2021
75 tasks
KristofferC pushed a commit that referenced this pull request Sep 3, 2021
We will not use the duplicate, so best to try to avoid loading it.

(cherry picked from commit c53669f)
KristofferC pushed a commit that referenced this pull request Sep 6, 2021
We will not use the duplicate, so best to try to avoid loading it.

(cherry picked from commit c53669f)
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Sep 7, 2021
KristofferC pushed a commit that referenced this pull request Sep 8, 2021
We will not use the duplicate, so best to try to avoid loading it.

(cherry picked from commit c53669f)
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Feb 22, 2022
We will not use the duplicate, so best to try to avoid loading it.
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
We will not use the duplicate, so best to try to avoid loading it.
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
We will not use the duplicate, so best to try to avoid loading it.

(cherry picked from commit c53669f)
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.

3 participants