You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Py_REFCNT expands to the following in free-threaded Python, builds correctly and works as expected. If it didn't build, then I suspect there was something else wrong.
While I've only encountered it during development, it is protecting against a use-after-free. In the linked discussion I meantioned that I have encountered the error before, but I fixed the cause of that yesterday. Still, I think the check should be enabled in both normal and free-threaded.
The text was updated successfully, but these errors were encountered:
Can you isolate a piece of code which triggers this use-after free behavior, so we can come up with a regression test?
The times I had actually encountered it was during development and I have since isolated and fixed the problem. I don't currently know of a way to hit that code path. However, it is better to fail and raise the exception then continue to use an object that has been collected, or soon will be collected, by the garbage collector.
Small discussion: 7c31d02#r149329647
Py_REFCNT
expands to the following in free-threaded Python, builds correctly and works as expected. If it didn't build, then I suspect there was something else wrong.While I've only encountered it during development, it is protecting against a use-after-free. In the linked discussion I meantioned that I have encountered the error before, but I fixed the cause of that yesterday. Still, I think the check should be enabled in both normal and free-threaded.
The text was updated successfully, but these errors were encountered: