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

[CLI] ensure error on not finding symbol #40748

Merged
merged 1 commit into from
May 10, 2021
Merged

Conversation

vtjnash
Copy link
Sponsor Member

@vtjnash vtjnash commented May 7, 2021

This sanity check was attempted in #38994, but dlsym is often also okay
with finding the trampoline, so we want to also check that it does not
use that to resolve the trampoline ad infinitum.

This sanity check was attempted in #38994, but dlsym is often also okay
with finding the trampoline, so we want to also check that it does not
use that to resolve the trampoline ad infinitum.
@staticfloat
Copy link
Sponsor Member

How can dlsym(lib, func) return a symbol from outside of lib?

@vtjnash
Copy link
Sponsor Member Author

vtjnash commented May 7, 2021

dlsym usually searches the dependency list too, which in this case includes libjulia, due to the way we link

@staticfloat
Copy link
Sponsor Member

The lookup is coming from libjulia itself; so you're saying that if I dlsym(lib, "foo") and "foo" is defined within the object that is doing the dlsym(), it can return the local foo?

@vtjnash vtjnash merged commit e4f79b7 into master May 10, 2021
@vtjnash vtjnash deleted the jn/load-dlsym-check branch May 10, 2021 15:38
@vtjnash
Copy link
Sponsor Member Author

vtjnash commented May 10, 2021

no, it has nothing to do with where the lookup happened from

shirodkara pushed a commit to shirodkara/julia that referenced this pull request Jun 9, 2021
This sanity check was attempted in JuliaLang#38994, but dlsym is often also okay
with finding the trampoline, so we want to also check that it does not
use that to resolve the trampoline ad infinitum.
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
This sanity check was attempted in JuliaLang#38994, but dlsym is often also okay
with finding the trampoline, so we want to also check that it does not
use that to resolve the trampoline ad infinitum.
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.

2 participants