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
[BUG] Crash due to duplicate __PYX_XCLEAR_MEMVIEW #5571
Labels
Milestone
Comments
So the double |
da-woods
added a commit
to da-woods/cython
that referenced
this issue
Jul 28, 2023
Fixes cython#5571. I believe this is to any function with a special signature (essentially most dunder methods of cdef classes). The specific report was about properties though.
da-woods
added a commit
to da-woods/cython
that referenced
this issue
Jul 28, 2023
Fixes cython#5571. I believe this is to any function with a special signature (essentially most dunder methods of cdef classes). The specific report was about properties though.
Thank you for debugging the code and creating a patch. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When using a property setter that accepts a memory view, Python crashes with the following error:
Code to reproduce the behaviour:
In the generated
foo.c
, I can see the following code where__PYX_XCLEAR_MEMVIEW
is called twice on the same variable which is likely the cause of the bug:Expected behaviour
The code is executed without crashing the Python interpreter.
OS
macOS
Python version
Python 3.11.4
Cython version
Cython version 3.0.0
Additional context
I can also reproduce the error on Debian 11 with Cython 3.0.0 and Python 3.9.2
The text was updated successfully, but these errors were encountered: