-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
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
Bug report
Bug description:
LeakSanitizer detects memory leaks when running test_capi
with refleak detection. The leaks occur during subinterpreter creation via Py_NewInterpreterFromConfig()
.
Affected Versions
- Python 3.12
- Python 3.13
- Python 3.14
- CPython main branch
Steps to Reproduce
- Build CPython with AddressSanitizer and debug mode:
CC=clang CXX=clang++ ./configure --with-address-sanitizer --with-pydebug --with-undefined-behavior-sanitizer --disable-optimizations && make -j$(nproc)
- Run test_capi with refleak detection:
./python -X dev -X showrefcount -m test -R 5:5 test_capi -j$(nproc)
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
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
Status
Done