Martin Panter added the comment: Yes you are probably right Antti. The input to compress would need 31 TB of memory, and is a text string, while Python 3’s zlib.compress() requires bytes. In other words, this will be the same problem of overallocating memory as Issue 27559.
Pablo: I suggest you carefully look at the code, try to understand what it is doing, eliminating the unnecessary parts, etc. Especially when so many of your reports today involve similar techniques. ---------- resolution: -> duplicate status: open -> closed superseder: -> Crash On bytearray() title: zlib.compress() crash and keyboard interrupt stops working -> Memory overallocation crash and keyboard interrupt stops working _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27560> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com