GH-96572: fix use after free in trace refs build mode#96618
Conversation
|
🤖 New build scheduled with the buildbot fleet by @pablogsal for commit d622e46 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
gvanrossum
left a comment
There was a problem hiding this comment.
Amazing. Needs a backport to unblock the release, right?
|
Thanks @kumaraditya303 for the PR, and @gvanrossum for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
|
GH-96621 is a backport of this pull request to the 3.11 branch. |
|
--with-trace-refsrequires objects to be explicitly removed from the global list before deallocation but ceval overrides thePy_DECREFfor speed and thus skipped this, hence we avoid this optimization in--with-trace-refsbuild mode.This optimization was introduced in 2f233fc by @gvanrossum.
Automerge-Triggered-By: GH:gvanrossum