Skip to content

Conversation

kumaraditya303
Copy link
Contributor

@kumaraditya303 kumaraditya303 commented Oct 14, 2025

Fix memory leak in sub-interpreter creation caused by overwriting of the previously used _malloced field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.

(cherry picked from commit 59547a2)

ashm-dev and others added 2 commits October 14, 2025 20:17
…ythonGH-140111)

Fix memory leak in sub-interpreter creation caused by overwriting of the previously used `_malloced` field. Now the pointer is stored in the first word of the memory block to avoid it being overwritten accidentally.
(cherry picked from commit 59547a2)

Co-authored-by: Shamil <[email protected]>
Co-authored-by: Kumar Aditya <[email protected]>
@kumaraditya303 kumaraditya303 changed the title [3.14] gh-140067: Fix memory leak in sub-interpreter creation (GH-14… [3.14] gh-140067: Fix memory leak in sub-interpreter creation (GH-140111) Oct 14, 2025
@kumaraditya303
Copy link
Contributor Author

There's a somewhat surprising failing test on gil-enabled tsan CI, will investigate later marking draft for now

cc @ZeroIntensity

@kumaraditya303 kumaraditya303 marked this pull request as draft October 14, 2025 16:35
@ZeroIntensity
Copy link
Member

I think that's a known failure.

@ZeroIntensity
Copy link
Member

Oh, nevermind, #140111 was what caused that known failure.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants