New submission from helgekraak <he...@kraak.info>: Hi,
I'm neither a Python nor a Unix specialist, so please understand that I can't give a very professional bug report. My issue seems to be related to issues 1092502 and 1389051. When I run archivemail with Python 2.6.2 after a couple of minutes the virtual memory in the activity monitor suddenly goes up to more than 2 GB and then the python process quits as it seems to have reached a limit of the virtual memory (the virtual memory available is about 10 GB). Most of the time the virtual memory is stable around 40 MB and only sporadically the memory suddenly increases to values between 100 MB and 2 GB but goes back to 40 MB again until the one time that it goes so high that the python process quits. The error happens much faster when I use a non secured imap connection compared to a secured connection. I get this error message: command: archivemail --date='23 April 2030' --include-flagged --output-dir=/temp --copy imaps://*****:**...@*****/inbox error message: Python(1238) malloc: *** vm_allocate(size=15396864) failed (error code=3) Python(1238) malloc: *** error: can't allocate region Python(1238) malloc: *** set a breakpoint in szone_error to debug Traceback (most recent call last): File "/opt/local/bin/archivemail", line 1603, in ? main() File "/opt/local/bin/archivemail", line 702, in main archive(mailbox_path) File "/opt/local/bin/archivemail", line 1145, in archive _archive_imap(mailbox_name, final_archive_name) File "/opt/local/bin/archivemail", line 1424, in _archive_imap result, response = imap_srv.fetch(msn, '(RFC822)') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 426, in fetch typ, dat = self._simple_command(name, message_set, message_parts) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 1028, in _simple_command return self._command_complete(name, self._command(name, *args)) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 858, in _command_complete typ, data = self._get_tagged_response(tag) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 959, in _get_tagged_response self._get_response() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 921, in _get_response data = self.read(size) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/imaplib.py", line 1123, in read data = self.sslobj.read(size-read) MemoryError Thanks for your time! Helge ---------- messages: 89520 nosy: helgekraak severity: normal status: open title: virtual memory error with archivemail versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6311> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com