classification
Title: virtual memory error with archivemail
Type: Stage:
Components: Versions: Python 2.6
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: helgekraak, loewis
Priority: normal Keywords:

Created on 2009-06-19 10:15 by helgekraak, last changed 2009-06-19 19:14 by loewis. This issue is now closed.

Messages (2)
msg89520 - (view) Author: (helgekraak) Date: 2009-06-19 10:15
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
msg89527 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2009-06-19 19:14
Unfortunately, without a much more detailed analysis, I don't think
there is much we can do. I recommend to report this to the author of
archivemail first.
History
Date User Action Args
2009-06-19 19:14:10loewissetstatus: open -> closed

nosy: + loewis
messages: + msg89527

resolution: wont fix
2009-06-19 10:15:35helgekraakcreate