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

Segfault when using PTHREADS_INHERIT_NONE and anonymous class in run() #115

Open
dktapps opened this issue May 17, 2023 · 2 comments
Open

Comments

@dktapps
Copy link
Member

dktapps commented May 17, 2023

Any runnable class which declares anonymous classes inside its run() method will segfault when used, because the respective anonymous classes are not copied.

The only clear way to address this issue is to copy all classes whose declarations are in the same file as the as the Runnable class being copied. I'm not clear on how practical this is, though.

@dktapps
Copy link
Member Author

dktapps commented May 17, 2023

Related to #111, in that the solution appears to be the same: All classes and functions declared within a copied class's file must also be copied.

@dktapps
Copy link
Member Author

dktapps commented May 19, 2023

There doesn't seem to be any way to do this on the fly. There's no persisted script index in the main interpreter context.

It would seem that the only way to fix this is to implement #62.

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

1 participant