Repository navigation
Memory leak in test_capi with subinterpreter creation #140301
Copy link
Copy link
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-C-APItopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Activity
- addedtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
on Oct 18, 2025 - addedperformancePerformance or resource usagePerformance or resource usagetestsTests in the Lib/test dirTests in the Lib/test dir
on Oct 18, 2025 - removedperformancePerformance or resource usagePerformance or resource usage
on Oct 18, 2025 In the future, would you mind including locations (preferably a GitHub source link) in your reports? It's extra work for us when you just drop large log files.
Reacted by ShamilSure, I'll include GitHub source links in future reports. Thanks for the feedback!
I'll take a shot at fixing this, but no promises :)
- added a commit that references this issue
on Oct 20, 2025 - added a commit that references this issue
on Oct 27, 2025
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-C-APItopic-subinterpreterstype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Projects
- StatusShow more project fieldsDone
Bug report
Bug description:
LeakSanitizer detects memory leaks when running
test_capiwith refleak detection. The leaks occur during subinterpreter creation viaPy_NewInterpreterFromConfig().Affected Versions
Steps to Reproduce
Logs
312.log
313.log
314.log
main.log
CPython versions tested on:
3.15, CPython main branch, 3.14, 3.13, 3.12
Operating systems tested on:
Linux
Linked PRs
PyConfigcleanup (GH-140303) #140360