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

dlsym fails to load functions when using images #880

Closed
lubgr opened this issue Jan 3, 2023 · 1 comment
Closed

dlsym fails to load functions when using images #880

lubgr opened this issue Jan 3, 2023 · 1 comment

Comments

@lubgr
Copy link
Contributor

lubgr commented Jan 3, 2023

After building and installing current master, loading any of chibi.img, red.img, or snow.img using the -i flag results in the error message

dynamic function lookup failure: <static> (sexp_proc1)sexp_peek_u8_stub

This doesn't cause the process to terminate; running scripts or the REPL still works. The particular function failed to be dlsym-ed here differs.

Might this be an accidental regression from the static userlib or image generation changes? I'm happy to do further diagnostics on my end to make sure I haven't missed or misused something. I could reproduce this on up-to-date Archlinux and MacOS, both x86.

@ashinn
Copy link
Owner

ashinn commented Jan 4, 2023

I can't reproduce this for chibi.img, but can for the other images. Those are functions loaded from other dynamic libraries, not libchibi-scheme, so either they aren't being loaded yet when the image is mapped, or dlsym is failing to find them. I'll take a look when I find time.

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

2 participants