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

RFC: add a warning against having multiple copies of a shared library loaded #7490

Closed
wants to merge 1 commit into from

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jul 1, 2014

this is the first part in a series of improvements I would like to make to improve dealing with binary dependency (and inspired by JuliaCon!)

this might be useful because it is undefined which library C may use to lookup various functions. this can be problematic if there is global state in the shared library which is expected to be common across calls to the library from various dependencies

this behavior should probably also be part of get_library in ccall.cpp to be truly useful

the main open question is whether this should only warn about explicitly loaded dependencies, or all (as it does now, and is, I think, preferable)

…ed at the same time.

this is useful because it is undefined which library C may use to lookup various functions. this can be problematic if there is global state in the shared library which is expected to be common across calls to the library from various dependencies
@lobingera
Copy link

I think (due to my own experiences) a warning is exactly what is needed. In the best case, not only the event (multiple libraries) should be reported, but also the place in the program where this was asked for (something like a backtrace?).

@jakebolewski
Copy link
Member

+1 I was just bitten by this as I was getting weird behavior due to tortoise git's libgit dll being loaded over the bin deps dll I thought was being used.

@vtjnash
Copy link
Member Author

vtjnash commented Oct 2, 2018

er, I guess not, since we haven't done anything about this in more than 4 years

@vtjnash vtjnash closed this Oct 2, 2018
@DilumAluthge DilumAluthge deleted the jn/warn_dllist branch January 12, 2021 21:26
petvana added a commit to petvana/julia that referenced this pull request Nov 4, 2021
petvana added a commit to petvana/julia that referenced this pull request Nov 4, 2021
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