New submission from Thorsten Simons: hashlib seems to leak memory when used on a Linux box (whereas the same works fine when run under Windows 7) (tested w/ Python 3.2.1 and 3.2.3)
<snip file "mem.py"> import hashlib #file = 'B:\\video\\TEST\\01_file_10G' file = '/video/TEST/01_file_10G' myhash = hashlib.sha256() with open(file, "rb") as f: for buffer in f: myhash.update(buffer) print('hash =', myhash.hexdigest()) <snip> On Windows, 'python3 mem.py' occupies roundabout 7 MB memory, on Linux (OpenSuse 12.2), it quickly acquires all available memory, then all swap, than get's killed. ---------- components: Library (Lib) messages: 176907 nosy: Thorsten.Simons priority: normal severity: normal status: open title: hashlib memory leak type: resource usage versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16606> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com