[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2021-12-03 Thread Ammar Askar
Ammar Askar added the comment: Looks like this got fixed somewhere along between 3.5 and 3.6 --- 3.5 --- ./python: can't open file 'id:000109': [Errno 2] No such file or directory = ==28078==ERROR: LeakSanitizer: detected memor

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread koobs
Changes by koobs : -- nosy: +koobs versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread geeknik
geeknik added the comment: Sure, 3.5 and/or 3.6 has memory leaks during compilation: https://bugs.python.org/issue27780 And I just compiled 3.5.2 and running that version of python against a non-existent file returns this from LeakSanitizer: ASAN_SYMBOLIZER_PATH=/usr/lib/llvm-3.5/bin/llvm-symb

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread R. David Murray
R. David Murray added the comment: I'm not saying there isn't a leak, rather I'm trying to understand what you are reporting, without any understanding of ASN. So I'm going to leave this to others to evaluate. Also, do you see the same thing in 3.5 or 3.6? We aren't patching 3.4 anymore (ex

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread geeknik
geeknik added the comment: Interesting that only Python exhibits this "leaky" behavior that generates a LeakSanitizer error. I don't see similar behavior in Perl, Ruby or PHP. Running a non-ASAN build under Valgrind reports that a leak is still occurring: LEAK SUMMARY: ==15496==definitely

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-23 Thread R. David Murray
R. David Murray added the comment: How are you defining "leak"? It isn't a leak if Python allocates memory that it doesn't free when doing a new operation. If you do that operation repeatedly and memory use continues to increase, that would be a leak. -- nosy: +r.david.murray __

[issue27831] Python 3.4.5 leaks memory when attempting to load non-existent file

2016-08-22 Thread geeknik
New submission from geeknik: While fuzzing Python 3.4.5 with AFL, ASAN and libdislocator, I fat fingered the keyboard ASAN pops up a LeakSanitizer error. Apparently trying to open a non-existent file causes Python 3.4.5 to leak >880KB of memory. ./python: can't open file 'id:000109': [Errno 2]