ftp_server memory error

Bug #522230 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

branch-server 1902
branch-addons official 2580

although this service is actually NOT accessed by anyone this error occured - restart necesary

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/document/ftpserver/__init__.py", line 93, in run
    ftpd.serve_forever()
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/document/ftpserver/ftpserver.py", line 3001, in serve_forever
    asyncore.loop(timeout=1.0, use_poll=False)
  File "/usr/lib64/python2.5/asyncore.py", line 191, in loop
    poll_fun(timeout, map)
  File "/usr/lib64/python2.5/asyncore.py", line 116, in poll
    e.append(fd)
MemoryError

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Can you please write the steps to reproduce the error?
Thanks.

Changed in openobject-addons:
status: New → Incomplete
Revision history for this message
Amit Parik (amit-parik) wrote :

Can you please write the steps to reproduce the error. So i can proceed further in this bug. Hope you will cooperate with this.

Thanks.

Revision history for this message
xrg (xrg) wrote : Re: [Bug 522230] Re: ftp_server memory error

On Friday 31 December 2010, you wrote:
> Can you please write the steps to reproduce the error. So i can proceed
> further in this bug. Hope you will cooperate with this.
>
> Thanks.

Note: if that's a MemoryError[1], it may be caused by *any* memory leaks
within the python process (the server). And then, the memory error will just
appear at a random trace. In the code you mentioned, the "e" variable should
just need a few bytes, so it's highly unlikely that the poll() function
received bad arguments.

Although, I believe that FTP (in the v5.x series) suffers from heavy memory
usage itself, because it tries to load the whole data chunk in memory before
sending it. That, /may/ be linked to the MemoryError, but we cannot be sure it
is the real cause.
This has been improved in v6.0, for FTP and WebDAV (still, not for RPC
transfers of files). It is an API design issue so it _cannot_ be backported to
v5.0 .

[1]
http://docs.python.org/library/exceptions.html?highlight=memoryerror#exceptions.MemoryError

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello DR Ferdinand,

Let's close this bug, for the sake of clarity in Launchpad. If you still face the same problem, then you can reopen this.

Thanks.

Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.