-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG] gil_scoped_acquire fails with cpython 3.9 debug build #2681
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
Comments
Which version of pybind11 are you using? This seems familiar, somehow. |
I ran the tests from https://github.com/pybind/pybind11/tree/59a2ac2745d8a57ac94c6accced73620d59fb844 |
Thanks! It also seems very familiar, somehow, but I can't find another existing issue right now :-( |
From checking the code, |
It runs fine for now but there are other issues with debug build :/ I'll open an issue about it shortly and once I can actually get all the tests to pass without crashing I try and submit a patch. |
Thanks, that's very much appreciated! :-) |
Is this closable with the merged PR mentioned above? |
If I remember correctly, yes, this can be closed. |
Good enough. If someone else remembers differently, they can reopen. :) |
Issue description
Trying to use gil_scoped_acquire with a cpython 3.9 debug build fails with the following stack trace:
Checking the code, this part looks especially suspicious:
pybind11/include/pybind11/pybind11.h
Lines 2092 to 2100 in af8849f
Reproducible example code
This is the python side
And the cpp lib
The text was updated successfully, but these errors were encountered: