Skip to content

sys.setrecursionlimit(3000) can cause stack overflows on Windows #1902

@ghost

Description

The sys.setrecursionlimit(3000) call in api/__init__.py can cause stack overflows on Windows, as this limit can exceed the default Windows stack size under some conditions.

Either this should be done on a more targeted section of code and reset afterwards, or another way to avoid hitting the default recursion limit should be used. I'm not sure where this is actually needed for jedi, though.

Please see dask/dask#9805 for an example of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions