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

Guard deallocation with PyObject_GC_Untrack #1352

Closed
robertwb opened this issue Jan 2, 2013 · 2 comments
Closed

Guard deallocation with PyObject_GC_Untrack #1352

robertwb opened this issue Jan 2, 2013 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Jan 2, 2013

If a garbage collection occurs during a garbage-collected extension class's deallocation, it may get double-freed (which is not always fatal but can cause issues much later if side effects are involved).

See http://trac.sagemath.org/sage_trac/ticket/13896 and https://groups.google.com/forum/?hl=en&fromgroups=#!msg/sage-devel/Wt7uxbDkh_A/4qhfm2ukBR0J for more context.

Migrated from http://trac.cython.org/ticket/796

@robertwb
Copy link
Contributor Author

scoder changed milestone from wishlist to 0.17.4
owner from somebody to robertwb
commented

Implementation is here:

9a08ff2

@robertwb
Copy link
Contributor Author

scoder changed resolution to fixed
status from new to closed
commented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant