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

Update to pybind11 v2.3.0 which fixes 3.7-related GIL mismanagement #6

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

dmcguire81
Copy link
Collaborator

The root cause of this defect, which exists on Python 3.7 in the original project, and also on all subsequent versions in our fork, was this pybind11 defect related to the move from TLS to TSS in Python 3.7. Because the symptoms of the misbehaving software looked very much like GIL mismanagement when examining the system calls (stuck in a tight polling loop, presumable in deadlock), it was easy to make the connection with the above defect and try the proposed solution, which was to upgrade to pybind11 version 2.3 or higher. Another hint of where to look came from a other projects reporting similar issues on Github, and pointing to the root cause issue (e.g.: pytorch #11419).

@josecols josecols merged commit 5946b38 into master Nov 20, 2022
@dmcguire81 dmcguire81 deleted the bugfix/python37_hangs branch November 20, 2022 22:43
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

Successfully merging this pull request may close these issues.

2 participants