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

Imports for VECs Can't Happen in Threads #61

Open
insertinterestingnamehere opened this issue Apr 20, 2021 · 3 comments
Open

Imports for VECs Can't Happen in Threads #61

insertinterestingnamehere opened this issue Apr 20, 2021 · 3 comments
Labels
bug Something isn't working VECs Related to Virtual Execution Contexts

Comments

@insertinterestingnamehere
Copy link
Member

The following segfaults, but it should work fine:

from threading import Thread
from parla.multiload import multiload_contexts

if __name__ == '__main__':
    def f():
        with multiload_contexts[1]:
            import numpy
    t = Thread(target=f)
    t.start()
    t.join()
@insertinterestingnamehere
Copy link
Member Author

Maybe related? #12

@arthurp arthurp added the bug Something isn't working label Apr 30, 2021
@insertinterestingnamehere insertinterestingnamehere added the VECs Related to Virtual Execution Contexts label May 11, 2021
@insertinterestingnamehere
Copy link
Member Author

Probably also related: #12

@insertinterestingnamehere
Copy link
Member Author

Trace for this one:

0x7ff912225188: (handler+0x28)
0x7ff91252a830: (killpg+0x40)
0x7ff903cc7ece: (parse_iso_8601_datetime+0x44e)
0x100000001: -- error: unable to obtain symbol name for this frame

This points to https://github.com/numpy/numpy/blob/623bc1fae1d47df24e7f1e29321d0c0ba2771ce0/numpy/core/src/multiarray/datetime_strings.c#L221 as the issue. Offhand, I have no idea why that would be an issue though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working VECs Related to Virtual Execution Contexts
Projects
None yet
Development

No branches or pull requests

2 participants