New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ASAN, memory leak #79955
Comments
Hi Team, I have compiled cpython via clang using ASAN and memory leak was observed. After successful build of python,
==21461==ERROR: LeakSanitizer: detected memory leaks Direct leak of 257790 byte(s) in 93 object(s) allocated from: Direct leak of 1640 byte(s) in 3 object(s) allocated from: Direct leak of 663 byte(s) in 1 object(s) allocated from: Direct leak of 579 byte(s) in 1 object(s) allocated from: Direct leak of 536 byte(s) in 1 object(s) allocated from: Indirect leak of 15640 byte(s) in 17 object(s) allocated from: Indirect leak of 7440 byte(s) in 7 object(s) allocated from: Indirect leak of 2571 byte(s) in 2 object(s) allocated from: SUMMARY: AddressSanitizer: 286859 byte(s) leaked in 125 allocation(s). |
It seems like this scenario has recently been fixed in bpo-1635741: $ ./python -I -X showrefcount
Python 3.11.0a4+ (heads/main:18ea973c21, Jan 28 2022, 01:38:10) [GCC 11.2.1 20211203 (Red Hat 11.2.1-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
[-4 refs, 1 blocks] If you still see memory leaks in Python 3.11, please better describe what you do to "Run python" and open a new issue ;-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: