-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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] Segfault when __dealloc__ calls a non-existent method. #6022
Labels
Milestone
Comments
I think the basic issue is that |
I've moved away from |
da-woods
added a commit
to da-woods/cython
that referenced
this issue
Mar 16, 2024
I'm not 100% sure what causes the error, but I think it's that _PyErr_PrintEx stashes away some illicit references to invalid objects on sys.last_exc. There's no reason to do this, so just do the print without the stash. Fixes cython#6022
da-woods
added a commit
that referenced
this issue
May 21, 2024
I'm not 100% sure what causes the error, but I think it's that _PyErr_PrintEx stashes away some illicit references to invalid objects on sys.last_exc. There's no reason to do this, so just do the print without the stash. Fixes #6022
da-woods
added a commit
that referenced
this issue
May 21, 2024
I'm not 100% sure what causes the error, but I think it's that _PyErr_PrintEx stashes away some illicit references to invalid objects on sys.last_exc. There's no reason to do this, so just do the print without the stash. Fixes #6022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Segmentation fault at https://github.com/python/cpython/blob/3.11/Objects/dictobject.c#L5582
Reproducer in Dockerfile: https://github.com/iphydf/toktok-stack/tree/cython-example/third_party/python/cython/bug6022
Code to reproduce the behaviour:
helloworld.pyx:
main.py:
Expected behaviour
I expect python to not segfault.
OS
Linux
Python version
3.11
Cython version
53ff506
Additional context
If
ob
is not in a class but in a function, e.g.def Main(): ob = Derived()
, the segfault happens elsewhere:Reproducible on both 3.0.8 release and current master (53ff506).
The text was updated successfully, but these errors were encountered: