Skip to content

Don't release GIL in dealloc() #10

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

Merged
merged 1 commit into from
Oct 26, 2014
Merged

Don't release GIL in dealloc() #10

merged 1 commit into from
Oct 26, 2014

Conversation

methane
Copy link
Member

@methane methane commented Oct 24, 2014

@rmca
Copy link

rmca commented Oct 24, 2014

Seems to work.

BTW, I threw together a clumsy script to attempt to reproduce this. You may need to run it a few times to see it deadlock. Running it against a remote MySQL instance worked better for me but ymmv. Simulating some latency may do the trick as well.

https://gist.github.com/rmca/f6eb0c3bd33a632027dc

methane added a commit that referenced this pull request Oct 26, 2014
@methane methane merged commit 2e7a9e5 into master Oct 26, 2014
@methane methane deleted the fix/deadlock-in-dealloc branch October 26, 2014 14:06
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.

Deadlock on connection close triggered by interpreter clean up
2 participants