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

"jl_system_image_size" loaded incorrectly in function "jl_load_sysimg_so" #31326

Closed
zyeric opened this issue Mar 13, 2019 · 2 comments
Closed
Assignees

Comments

@zyeric
Copy link

zyeric commented Mar 13, 2019

jl_dlsym(jl_sysimg_handle, "jl_system_image_size", (void **)&len, 1);

Variable len stores the pointer to jl_system_image_size instead of the value we want.

@jpsamaroo
Copy link
Member

Can you be a bit more specific? What should it store, in your opinion? And have you run into an issue because of this line?

@zyeric
Copy link
Author

zyeric commented Mar 13, 2019

I think len shold store the value corresponding to the length of the array jl_symtem_image_data. Actually, I can successfully loading sys.so with current code. However, when I use gdb to check the detailed process, I find the value of len is strange.

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

3 participants